FS unmount

Hi,

Is there a way for a volume filter driver to know that a file system has
been unmounted? IoRegisterPlugPlayNotification and event
GUID_IO_VOLUME_DISMOUNT just indicate that a FS unmount is attempted. Event
GUID_IO_VOLUME_DISMOUNT_FAILED indicates that attempt failed but there is
nothing that indicates that the attempt succeeded.

Thanks,
Sunil

If GUID_IO_VOLUME_DISMOUNT does not come by it should mean the operation
succeeded. According to the documentation, user mode applications that
register for these device events should register their actions and make sure
they are equipped with undo information to restore the situation in case the
dismount fails. I suppose that’s the same for drivers which use
IoRegisterPlugPlayNotification.

If that is not enough you have the option of creating a fs or minifilter and
register for InstanceTearDownStart/Complete callbacks. You might get better
replies on ntfsd.

//Daniel

“Sunil Patil” wrote in message news:xxxxx@ntdev…
> Hi,
>
> Is there a way for a volume filter driver to know that a file system has
> been unmounted? IoRegisterPlugPlayNotification and event
> GUID_IO_VOLUME_DISMOUNT just indicate that a FS unmount is attempted.
> Event
> GUID_IO_VOLUME_DISMOUNT_FAILED indicates that attempt failed but there is
> nothing that indicates that the attempt succeeded.
>
> Thanks,
> Sunil
>