Ok, how about this? I save the device object for that volume.
Then in my filter driver, I check all IRP_MJ_CREATE requestes on
directories which has STATUS_REPARSE return value. If the reparse
point to that volume, I can assume that this is ONE mount point
to that volume.
Now the problems are:
-
What should I check for mount point reparse information in the
return file object from lower level drivers?
-
What part directory entries in the whole path should consider
to be the real mount point? Like in my example, my driver see access
to C:\mount1\data1\file1.txt. It should reparse as \data1\file1.txt
to that volume device object. How can I find out the C:\mount1
is the actual mount point?
I am also interesting to how to enumerate all mount points in the
system. Do a IOCTL_MOUNTMGR_QUERY_POINTS call?
Thanks.
Guoqing
From: Ravisankar Pudipeddi[SMTP:xxxxx@windows.microsoft.com]
Reply To: File Systems Developers
Sent: Thursday, May 10, 2001 6:56 PM
To: File Systems Developers
Subject: [ntfsd] RE: Find mount points for a volume
There are no backlinks for a mounted volume.
You have to enumerate mount-points on all volumes in the system and
match up with your volume path name, to find all the places where it’s
mounted.
-----Original Message-----
From: Nate Bushman [mailto:xxxxx@Legato.com]
Sent: Thursday, May 10, 2001 3:01 PM
To: File Systems Developers
Subject: [ntfsd] RE: Find mount points for a volume
I don’t know, but I WOULD LOVE TO FIND OUT! Please let me
know if you figure out how this is done. Thanks!
Nate Bushman
Legato Systems
-----Original Message-----
From: Chendong Shan [mailto:xxxxx@usa.net]
Sent: Thursday, May 10, 2001 1:41 PM
To: File Systems Developers
Subject: [ntfsd] Find mount points for a volume
Hi, All,
I posted this message to NTDEV list, but didn’t get any reply. I guess
it fit better in this list, so here is the problem:
How can a filter driver find out the mount point(s) of a volume which do
not have any drive letter and only mounted to some NTFS mount points? Of
course, on 2K or Whistler OS.
For example, I have a NTFS volume which only mounts to C:\mount1. I want
to get C:\mount1 in my filter driver when a see the mount operation
completed for that volume. How can I get the information?
Thanks.
Chendong
Get free email and a permanent address at http://www.netaddress.com/?N=1
You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com