Hi,
Can FltGetVolumeProperties() be called in PostMountCallback?
Although the volume is properly mounted by the underlying file system and
routine returns STATUS_SUCCESS, VolumeProperties->DeviceCharacteristics is
always 0. I have observed this with floppy diskette and cdrom.
Actually, I only need to read DeviceCharacteristics when PostMount is called
with Data->IoStatus.Status = STATUS_UNRECOGNIZED_VOLUME, but
DeviceCharacteristics is 0 too.
Thanks.
mK.
The new MSN 8: smart spam protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail
This is actually a bug in FltGetVolumeProperties. FltMgr was returning
the DeviceCharacteristics from the file system’s device object rather
than the disk’s device object. It was fixed in early March in our
source tree, but it’s pretty likely that the version of Filter Manager
you are running with does not have the fix.
To work around this, you can call FltGetDiskDeviceObject to get the disk
device object from the volume, then look at the Characteristics field in
the device object structure that is returned. Just remember that the
disk device object returned has a reference count on it which you need
to release by calling ObDereferenceObject once you are finished using
the device object.
Thanks,
Molly Brown
Microsoft Corporation
This posting is provided “AS IS” with no warranties and confers no
rights.
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Misha Karpin
Sent: Wednesday, May 05, 2004 4:06 AM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] Calling FltGetVolumeProperties() in PostMountCallback
Hi,
Can FltGetVolumeProperties() be called in PostMountCallback?
Although the volume is properly mounted by the underlying file system
and routine returns STATUS_SUCCESS,
VolumeProperties->DeviceCharacteristics is always 0. I have observed
this with floppy diskette and cdrom.
Actually, I only need to read DeviceCharacteristics when PostMount is
called with Data->IoStatus.Status = STATUS_UNRECOGNIZED_VOLUME, but
DeviceCharacteristics is 0 too.
Thanks.
mK.
The new MSN 8: smart spam protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail
Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
You are currently subscribed to ntfsd as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
Misha,
We'll be posting a new version of the filter manager pretty soon by early
next week which should have the fix in it. For the time being please use the
workaround Molly provided below.
Thanks very much.
Ravinder Thind
This posting is provided "AS IS" with no warranties, and confers no rights.
"Molly Brown" wrote in message
news:xxxxx@ntfsd...
This is actually a bug in FltGetVolumeProperties. FltMgr was returning
the DeviceCharacteristics from the file system's device object rather
than the disk's device object. It was fixed in early March in our
source tree, but it's pretty likely that the version of Filter Manager
you are running with does not have the fix.
To work around this, you can call FltGetDiskDeviceObject to get the disk
device object from the volume, then look at the Characteristics field in
the device object structure that is returned. Just remember that the
disk device object returned has a reference count on it which you need
to release by calling ObDereferenceObject once you are finished using
the device object.
Thanks,
Molly Brown
Microsoft Corporation
This posting is provided "AS IS" with no warranties and confers no
rights.
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Misha Karpin
Sent: Wednesday, May 05, 2004 4:06 AM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] Calling FltGetVolumeProperties() in PostMountCallback
Hi,
Can FltGetVolumeProperties() be called in PostMountCallback?
Although the volume is properly mounted by the underlying file system
and routine returns STATUS_SUCCESS,
VolumeProperties->DeviceCharacteristics is always 0. I have observed
this with floppy diskette and cdrom.
Actually, I only need to read DeviceCharacteristics when PostMount is
called with Data->IoStatus.Status = STATUS_UNRECOGNIZED_VOLUME, but
DeviceCharacteristics is 0 too.
Thanks.
mK.
_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail
---
Questions? First check the IFS FAQ at
The NT Insider:Windows NT Virtual Memory (Part I)
You are currently subscribed to ntfsd as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com