mount volume IRP

suppose there is a volume having ntfs format. When this volume is mounted,
Is the order of recieving (IRP_MJ_FILE_SYSTEM_CONTROL,IRP_MN_MOUNT_VOLUME)
IRP is same as the order in which devices attached to NTFS file system.

for ex suppose devices attached to ntfs in this order

DEV ntfs
Attached /FileSystem/a
Attached FileSystem/b

suppose this is the output of DeviceTree

suppose there are two FSFD driver attached to ntfs file system. then what
will be the order, I mean which filter driver recieve the
(IRP_MJ_FILE_SYSTEM_CONTROL,IRP_MN_MOUNT_VOLUME) IRP first, a or b

It will be b because it is the top of the stack.

Regards,
Razvan

— Rohit wrote:

> suppose there is a volume having ntfs format. When
> this volume is mounted,
> Is the order of recieving
> (IRP_MJ_FILE_SYSTEM_CONTROL,IRP_MN_MOUNT_VOLUME)
> IRP is same as the order in which devices attached
> to NTFS file system.
>
> for ex suppose devices attached to ntfs in this
> order
>
> DEV ntfs
> Attached /FileSystem/a
> Attached FileSystem/b
>
> suppose this is the output of DeviceTree
>
> suppose there are two FSFD driver attached to ntfs
> file system. then what
> will be the order, I mean which filter driver
> recieve the
> (IRP_MJ_FILE_SYSTEM_CONTROL,IRP_MN_MOUNT_VOLUME) IRP
> first, a or b
>
> —
> Questions? First check the IFS FAQ at
> https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to ntfsd as:
> xxxxx@yahoo.com
> To unsubscribe send a blank email to
xxxxx@lists.osr.com

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

if b is the first driver to recieve the IRP for mount volume than it should
be the first driver that will attach with the volumes. but if you see the
driver stack for any volume, b is still on the top of the stack. why is it
so

On 8/3/06, Razvan Hobeanu wrote:
>
> It will be b because it is the top of the stack.
>
> Regards,
> Razvan
>
> — Rohit wrote:
>
> > suppose there is a volume having ntfs format. When
> > this volume is mounted,
> > Is the order of recieving
> > (IRP_MJ_FILE_SYSTEM_CONTROL,IRP_MN_MOUNT_VOLUME)
> > IRP is same as the order in which devices attached
> > to NTFS file system.
> >
> > for ex suppose devices attached to ntfs in this
> > order
> >
> > DEV ntfs
> > Attached /FileSystem/a
> > Attached FileSystem/b
> >
> > suppose this is the output of DeviceTree
> >
> > suppose there are two FSFD driver attached to ntfs
> > file system. then what
> > will be the order, I mean which filter driver
> > recieve the
> > (IRP_MJ_FILE_SYSTEM_CONTROL,IRP_MN_MOUNT_VOLUME) IRP
> > first, a or b
> >
> > —
> > Questions? First check the IFS FAQ at
> > https://www.osronline.com/article.cfm?id=17
> >
> > You are currently subscribed to ntfsd as:
> > xxxxx@yahoo.com
> > To unsubscribe send a blank email to
> xxxxx@lists.osr.com
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> —
> Questions? First check the IFS FAQ at
> https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to ntfsd as: xxxxx@gmail.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>

I think the driver will attach to the volume stack in IRP completition
that’s why b is still on the top
Please correct me if i am wrong

On 8/3/06, Rohit wrote:
>
> if b is the first driver to recieve the IRP for mount volume than it
> should be the first driver that will attach with the volumes. but if you see
> the driver stack for any volume, b is still on the top of the stack. why is
> it so
>
>
> On 8/3/06, Razvan Hobeanu wrote:
> >
> > It will be b because it is the top of the stack.
> >
> > Regards,
> > Razvan
> >
> > — Rohit wrote:
> >
> > > suppose there is a volume having ntfs format. When
> > > this volume is mounted,
> > > Is the order of recieving
> > > (IRP_MJ_FILE_SYSTEM_CONTROL,IRP_MN_MOUNT_VOLUME)
> > > IRP is same as the order in which devices attached
> > > to NTFS file system.
> > >
> > > for ex suppose devices attached to ntfs in this
> > > order
> > >
> > > DEV ntfs
> > > Attached /FileSystem/a
> > > Attached FileSystem/b
> > >
> > > suppose this is the output of DeviceTree
> > >
> > > suppose there are two FSFD driver attached to ntfs
> > > file system. then what
> > > will be the order, I mean which filter driver
> > > recieve the
> > > (IRP_MJ_FILE_SYSTEM_CONTROL,IRP_MN_MOUNT_VOLUME) IRP
> > > first, a or b
> > >
> > > —
> > > Questions? First check the IFS FAQ at
> > > https://www.osronline.com/article.cfm?id=17
> > >
> > > You are currently subscribed to ntfsd as:
> > > xxxxx@yahoo.com
> > > To unsubscribe send a blank email to
> > xxxxx@lists.osr.com
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam? Yahoo! Mail has the best spam protection around
> > http://mail.yahoo.com
> >
> > —
> > Questions? First check the IFS FAQ at
> > https://www.osronline.com/article.cfm?id=17
> >
> > You are currently subscribed to ntfsd as: xxxxx@gmail.com
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
> >
>
>

Correct, you are performing the attachment processing on the completion side
of mount processing. Thus in your example, if the order is \ntfs
<file:> ->A->B then this will be the order that devices will attach
during mount processing.

Pete

Kernel Drivers
Windows Filesystem and Device Driver Consulting
www.KernelDrivers.com
(303)546-0300



From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Rohit
Sent: Thursday, August 03, 2006 1:50 AM
To: Windows File Systems Devs Interest List
Subject: Re: [ntfsd] mount volume IRP

I think the driver will attach to the volume stack in IRP completition
that’s why b is still on the top
Please correct me if i am wrong

On 8/3/06, Rohit wrote:

if b is the first driver to recieve the IRP for mount volume than it should
be the first driver that will attach with the volumes. but if you see the
driver stack for any volume, b is still on the top of the stack. why is it
so

On 8/3/06, Razvan Hobeanu < mailto:xxxxx
xxxxx@yahoo.com> wrote:

It will be b because it is the top of the stack.

Regards,
Razvan

— Rohit wrote:

> suppose there is a volume having ntfs format. When
> this volume is mounted,
> Is the order of recieving
> (IRP_MJ_FILE_SYSTEM_CONTROL,IRP_MN_MOUNT_VOLUME)
> IRP is same as the order in which devices attached
> to NTFS file system.
>
> for ex suppose devices attached to ntfs in this
> order
>
> DEV ntfs
> Attached /FileSystem/a
> Attached FileSystem/b
>
> suppose this is the output of DeviceTree
>
> suppose there are two FSFD driver attached to ntfs
> file system. then what
> will be the order, I mean which filter driver
> recieve the
> (IRP_MJ_FILE_SYSTEM_CONTROL,IRP_MN_MOUNT_VOLUME) IRP
> first, a or b
>
> —
> Questions? First check the IFS FAQ at
> https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to ntfsd as:
> xxxxx@yahoo.com
> To unsubscribe send a blank email to
xxxxx@lists.osr.com

_____________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com


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

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

— Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17 You are currently subscribed to
ntfsd as: xxxxx@kerneldrivers.com To unsubscribe send a blank email to
xxxxx@lists.osr.com</mailto:xxxxx></file:>