In fact the architecture of the system is such that the “file system
handle” to VPB association is persistent, even if you change the VPB in
the media device object.
Look at the file object - it has a Vpb pointer in it. The I/O Manager
uses that pointer, not the one in the device object, if it is present.
That’s what ensures file objects are handed to the right file system
(think about removable media, where FO->Vpb refers to the file system
that controlled the media when the file was opened. If we handed that
FO to a different file system it probably wouldn’t be able to handle
it.) Thus, you can take a CD drive, mount a CDFS volume, swap to a FAT
volume, and then to a UDFS volume and everything “just works right”.
So, what you see is a feature and is expected behavior.
Tony
Tony Mason
Consulting Partner
OSR Open Systems Resources, Inc.
http://www.osr.com http:</http:>
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Veilleux, Eric
Sent: Wednesday, May 02, 2007 6:37 AM
To: ntfsd redirect
Subject: [ntfsd] Dynamic VPB swap
I was wondering if it is possible to swap a VPB on the fly, to change
the underlying volume without affecting the file system handle owned by
an application. Some tests done so far seem to show that VPB is cached
somewhere and changes done to the structure does not reflect live.
Also, how does the IO Manager knows which volume to link to a file
system when it mounts it? Is that persistent information in the
registry?
Thanks
Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
You are currently subscribed to ntfsd as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com