Mount process questions

Hi All
I am going to develop a file system filter that will have to block access to
some volumes. Therefore, I have two questions about the volume mount
process:

  1. Is it possible for a file system to access the file system on the volume
    before IRP_MN_MOUNT_VOLUME call is completed? The file system filter will
    pass the IRP_MN_MOUNT_VOLUME Irp to the file system driver synchronously and
    then try to read from the volume using the file system (before returning the
    IRP_MN_MOUNT_VOLUME Irp to the Mount Manager).
  2. What will happen if the file system filter will fail the
    IRP_MN_MOUNT_VOLUME request after the file system driver has created the
    VDO?

Any help is appreciated.
Thank you,
Gregory

Thanks for the reply.
However, I found the following paragraph in the IFS help:
The file system mounts the volume by associating the VDO with the volume
parameter block (VPB) for the corresponding storage device object and sets
the VPB_MOUNTED flag on the VPB.
After the volume is mounted by the file system, file system filter drivers
can attach to the top of the new file system volume stack.

I think it means that the VPB_MOUNTED flag is set before the file system
filter attaches to the stack.

Regards,
Gregory



From: gaurav krishna [mailto:xxxxx@rediffmail.com]
Sent: Thursday, December 23, 2004 10:35 AM
To: Windows File Systems Devs Interest List
Cc: Gregory Dardyk
Subject: Re: [ntfsd] Mount process questions

Hi,

I think before completion of the mount operation , the VPB of lower device
object over which ur FSD resides will not have the flag VPB_MOUNTED set. So
no other IRP will directed to your driver by the I/O Manager until the VPB
flag is set.

Bye,
Gaurav

On Wed, 22 Dec 2004 Gregory Dardyk wrote :

Hi All
I am going to develop a file system filter that will have to block access
to
some volumes. Therefore, I have two questions about the volume mount
process:

  1. Is it possible for a file system to access the file system on the volume
    before IRP_MN_MOUNT_VOLUME call is completed? The file system filter will
    pass the IRP_MN_MOUNT_VOLUME Irp to the file system driver synchronously
    and
    then try to read from the volume using the file system (before returning
    the
    IRP_MN_MOUNT_VOLUME Irp to the Mount Manager).
  2. What will happen if the file system filter will fail the
    IRP_MN_MOUNT_VOLUME request after the file system driver has created the
    VDO?

Any help is appreciated.
Thank you,
Gregory


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: xxxxx@rediffmail.com
To unsubscribe send a blank email to xxxxx@lists.osr.com