Move File between volumes

I’m working on the development of a file system and I am using the IFS Test test suite to assert it’s correctness, currently i found a bit of a problem in the SimpleRenameOperationTest: http://msdn.microsoft.com/en-us/library/ff563405(v=vs.85).aspx . When I run it on the NTFS with a flash memory as the second volume it returns a STATUS_ACCESS_DENIED when it expects a success. But in the Test API it says that it indeed expects a Access Denied. So what is really the politic of NTFS about the rename operation between volumes? If it indeed should be access denied then this particular test is broken then?

Is it a valid question to ask if you have access rights to the volume for the file you are about to rename? I’m not knowledgable about IFS or NTFSD, but I have seen this as an issue several times.

Gary Little
H (952) 223-1349
C (952) 454-4629
xxxxx@comcast.net

On Mar 20, 2012, at 1:41 PM, xxxxx@gmail.com wrote:

I’m working on the development of a file system and I am using the IFS Test test suite to assert it’s correctness, currently i found a bit of a problem in the SimpleRenameOperationTest: http://msdn.microsoft.com/en-us/library/ff563405(v=vs.85).aspx . When I run it on the NTFS with a flash memory as the second volume it returns a STATUS_ACCESS_DENIED when it expects a success. But in the Test API it says that it indeed expects a Access Denied. So what is really the politic of NTFS about the rename operation between volumes? If it indeed should be access denied then this particular test is broken then?


NTFSD is sponsored by OSR

For our schedule of debugging and file system seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

Yes I Have Deletion Rights for both volumes

I also don’t know exact answer, but I thought renaming a file between
volumes is not “supported” (IO Manager returns STATUS_NOT_SAME_DEVICE and
MoveFile API performs copy operation instead rename). I don’t know how it’s
checked at file-system level (you can see fastfat sources), or see procmon
logs for NTFS volume (how are return codes different from your filesystem
driver?)

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@gmail.com
Sent: Tuesday, March 20, 2012 7:42 PM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] Move File between volumes

I’m working on the development of a file system and I am using the IFS Test
test suite to assert it’s correctness, currently i found a bit of a problem
in the SimpleRenameOperationTest:
http://msdn.microsoft.com/en-us/library/ff563405(v=vs.85).aspx . When I run
it on the NTFS with a flash memory as the second volume it returns a
STATUS_ACCESS_DENIED when it expects a success. But in the Test API it says
that it indeed expects a Access Denied. So what is really the politic of
NTFS about the rename operation between volumes? If it indeed should be
access denied then this particular test is broken then?


NTFSD is sponsored by OSR

For our schedule of debugging and file system seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

>about the rename operation between volumes?

Such an operation is failed in IO manager itself without even passing it to the FSD.


Maxim S. Shatskih
Windows DDK MVP
xxxxx@storagecraft.com
http://www.storagecraft.com

Ahh ? for my information only ? you rename WITHIN the volume and not ACROSS volumes?

Gary Little
H (952) 223-1349
C (952) 454-4629
xxxxx@comcast.net

On Mar 20, 2012, at 2:18 PM, Maxim S. Shatskih wrote:

> about the rename operation between volumes?

Such an operation is failed in IO manager itself without even passing it to the FSD.


Maxim S. Shatskih
Windows DDK MVP
xxxxx@storagecraft.com
http://www.storagecraft.com


NTFSD is sponsored by OSR

For our schedule of debugging and file system seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

Hmm?

“Maxim S. Shatskih” wrote:

>about the rename operation between volumes?

Such an operation is failed in IO manager itself without even passing it to the FSD.


Kind regards, Dejan (MSN support: xxxxx@alfasp.com)
http://www.alfasp.com
File system audit, security and encryption kits.

Yeah, in the Windows API and in the test API both say that you shouldn’t be
able to rename accross volumes, but the test result still expects a success

2012/3/20 Gary Little

> Ahh ? for my information only ? you rename WITHIN the volume and not
> ACROSS volumes?
>
> Gary Little
> H (952) 223-1349
> C (952) 454-4629
> xxxxx@comcast.net
>
>
> On Mar 20, 2012, at 2:18 PM, Maxim S. Shatskih wrote:
>
> about the rename operation between volumes?
>
>
> Such an operation is failed in IO manager itself without even passing it
> to the FSD.
>
> –
> Maxim S. Shatskih
> Windows DDK MVP
> xxxxx@storagecraft.com
> http://www.storagecraft.com
>
>
> —
> NTFSD is sponsored by OSR
>
> For our schedule of debugging and file system seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
>
>
> —
> NTFSD is sponsored by OSR
>
> For our schedule of debugging and file system seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>

Perhaps these blog posts will help:

http://fsfilters.blogspot.com/2011/06/rename-in-file-system-filters-part-i.html and
http://fsfilters.blogspot.com/2011/06/rename-in-file-system-filters-part-ii.html

Thanks,
Alex.

That indeed helped a lot. I’ll recheck the procmon entries to the
operations just to be sure though. Thank you all!

2012/3/20

> Perhaps these blog posts will help:
>
>
> http://fsfilters.blogspot.com/2011/06/rename-in-file-system-filters-part-i.htmland
>
> http://fsfilters.blogspot.com/2011/06/rename-in-file-system-filters-part-ii.html
>
> Thanks,
> Alex.
>
> —
> NTFSD is sponsored by OSR
>
> For our schedule of debugging and file system seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>