Getting Moutned Volume Paths

There is program called mountvol which lists all the volumes in a systems
and all the paths (including dos names) a volume is mounted at.

In W2K3 this is done via two I/O controls:

IOCTL_MOUNTMGR_QUERY_POINTS - which gets all the mount points

IOCTL_MOUNTMGR_QUERY_DOS_VOLUME_PATHS - which gets all the paths a volume is
mounted at.

In W2K there is no I/O control IOCTL_MOUNTMGR_QUERY_DOS_VOLUME_PATHS, so
where does the program mountvol get all the paths a volume is mounted at
when running on W2K?

Thanks,

Ken

from a user-mode application mounts/Dos Device names are easily can be
recieved by the following functions :

GetLogicalDrives to recieve a 32-bit variable represent the logical drives.
each bit represent a drive bit 0 - A Drive bit 1 - B Drive.
QueryDosDevice recieve a drive letter and return the DosDevice
representation.

I think this is what you are trying to do.

hope thats help.

On 3/6/06, Ken Galipeau wrote:
>
> There is program called mountvol which lists all the volumes in a systems
> and all the paths (including dos names) a volume is mounted at.
>
> In W2K3 this is done via two I/O controls:
>
> IOCTL_MOUNTMGR_QUERY_POINTS ? which gets all the mount points
>
> IOCTL_MOUNTMGR_QUERY_DOS_VOLUME_PATHS ? which gets all the paths a volume
> is mounted at.
>
>
>
> In W2K there is no I/O control IOCTL_MOUNTMGR_QUERY_DOS_VOLUME_PATHS, so
> where does the program mountvol get all the paths a volume is mounted at
> when running on W2K?
>
>
>
> Thanks,
>
> Ken
>
> —
> Questions? First check the IFS FAQ at
> https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
>
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>

That is not what I need. I want to get this information in kernel mode NOT
user.

Given a volume guid

i.e. \?\Volume{6c384463-c2ca-11d9-bfe9-806d6172696f}\

I want to know what paths it is mounted too;
i.e. E:\

C:\MOUNTE

In the kernel it can be done with IOCTL
IOCTL_MOUNTMGR_QUERY_DOS_VOLUME_PATHS sent to the mount manger, however, it
is not available in W2K So how can I get the information in W2K.

Ken


From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Alex Green
Sent: Monday, March 06, 2006 4:02 PM
To: Windows File Systems Devs Interest List
Subject: Re: [ntfsd] Getting Moutned Volume Paths

from a user-mode application mounts/Dos Device names are easily can be
recieved by the following functions :

GetLogicalDrives to recieve a 32-bit variable represent the logical drives.
each bit represent a drive bit 0 - A Drive bit 1 - B Drive.

QueryDosDevice recieve a drive letter and return the DosDevice
representation.

I think this is what you are trying to do.

hope thats help.

On 3/6/06, Ken Galipeau
> wrote:

There is program called mountvol which lists all the volumes in a systems
and all the paths (including dos names) a volume is mounted at.

In W2K3 this is done via two I/O controls:

IOCTL_MOUNTMGR_QUERY_POINTS - which gets all the mount points

IOCTL_MOUNTMGR_QUERY_DOS_VOLUME_PATHS - which gets all the paths a volume is
mounted at.

In W2K there is no I/O control IOCTL_MOUNTMGR_QUERY_DOS_VOLUME_PATHS, so
where does the program mountvol get all the paths a volume is mounted at
when running on W2K?

Thanks,

Ken


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

You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com
mailto:xxxxx

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

You need to read list of reparse points from every volume in the system and
check the tag/target volume to select ones that you are interested in. List
of all repase points that are defined on a volume is recoded in the
$Extend$Reparse:$R:$INDEX_ALLOCATION and available via
IRP_MJ_DIRECTORY_CONTROL/IRP_MN_QUERY_DIRECTORY with
FileReparsePointInformation information class.

Alexei.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Ken Galipeau
Sent: Monday, March 06, 2006 1:29 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] Getting Moutned Volume Paths

That is not what I need. I want to get this information in kernel mode NOT
user.

Given a volume guid

i.e. \?\Volume{6c384463-c2ca-11d9-bfe9-806d6172696f}\

I want to know what paths it is mounted too;
i.e. E:\

C:\MOUNTE

In the kernel it can be done with IOCTL IOCTL_MOUNTMGR_QUERY_DOS_VOLUME_PATHS
sent to the mount manger, however, it is not available in W2K So how can I
get the information in W2K.

Ken


From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Alex Green
Sent: Monday, March 06, 2006 4:02 PM
To: Windows File Systems Devs Interest List
Subject: Re: [ntfsd] Getting Moutned Volume Paths

from a user-mode application mounts/Dos Device names are easily can be
recieved by the following functions :

GetLogicalDrives to recieve a 32-bit variable represent the logical drives.
each bit represent a drive bit 0 - A Drive bit 1 - B Drive.

QueryDosDevice recieve a drive letter and return the DosDevice
representation.

I think this is what you are trying to do.

hope thats help.

On 3/6/06, Ken Galipeau < xxxxx@emc.com> wrote:

There is program called mountvol which lists all the volumes in a systems and
all the paths (including dos names) a volume is mounted at.

In W2K3 this is done via two I/O controls:

IOCTL_MOUNTMGR_QUERY_POINTS - which gets all the mount points

IOCTL_MOUNTMGR_QUERY_DOS_VOLUME_PATHS - which gets all the paths a volume is
mounted at.

In W2K there is no I/O control IOCTL_MOUNTMGR_QUERY_DOS_VOLUME_PATHS, so
where does the program mountvol get all the paths a volume is mounted at when
running on W2K?

Thanks,

Ken


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

You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
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: unknown lmsubst tag argument: ‘’ 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: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com

> In W2K there is no I/O control

IOCTL_MOUNTMGR_QUERY_DOS_VOLUME_PATHS, so
where does the program mountvol get all the paths a volume is mounted at
when running on W2K?

I think Win32 provides a set of wrappers over these IOCTLs as FindFirstVolume
and related routines.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

You can use IOCTL_MOUNTMGR_QUERY_POINTS supplying the volume GUID as the
input. You will get back all symbolic link names including the volume GUID
and mounted paths.


From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Ken Galipeau
Sent: Monday, March 06, 2006 1:29 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] Getting Moutned Volume Paths

That is not what I need. I want to get this information in kernel mode NOT
user.

Given a volume guid

i.e. \?\Volume{6c384463-c2ca-11d9-bfe9-806d6172696f}\

I want to know what paths it is mounted too;
i.e. E:\

C:\MOUNTE

In the kernel it can be done with IOCTL
IOCTL_MOUNTMGR_QUERY_DOS_VOLUME_PATHS sent to the mount manger, however, it
is not available in W2K So how can I get the information in W2K.

Ken


From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Alex Green
Sent: Monday, March 06, 2006 4:02 PM
To: Windows File Systems Devs Interest List
Subject: Re: [ntfsd] Getting Moutned Volume Paths

from a user-mode application mounts/Dos Device names are easily can be
recieved by the following functions :

GetLogicalDrives to recieve a 32-bit variable represent the logical drives.
each bit represent a drive bit 0 - A Drive bit 1 - B Drive.

QueryDosDevice recieve a drive letter and return the DosDevice
representation.

I think this is what you are trying to do.

hope thats help.

On 3/6/06, Ken Galipeau
> wrote:

There is program called mountvol which lists all the volumes in a systems
and all the paths (including dos names) a volume is mounted at.

In W2K3 this is done via two I/O controls:

IOCTL_MOUNTMGR_QUERY_POINTS - which gets all the mount points

IOCTL_MOUNTMGR_QUERY_DOS_VOLUME_PATHS - which gets all the paths a volume is
mounted at.

In W2K there is no I/O control IOCTL_MOUNTMGR_QUERY_DOS_VOLUME_PATHS, so
where does the program mountvol get all the paths a volume is mounted at
when running on W2K?

Thanks,

Ken


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

You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com
mailto:xxxxx

— Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17 You are currently subscribed to
ntfsd as: unknown lmsubst tag argument: ‘’ 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: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com</mailto:xxxxx></https:>

>of all repase points that are defined on a volume is recoded in the

$Extend$Reparse:$R:$INDEX_ALLOCATION and available via

This is NTFS-only.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

You see, utilities like mountvol depend on this. So it is sort of de-facto
requirement for correct implementation of mount point support in 3-party FS.
If you don’t do this then mountvol will not show your mount points, Windows
explorer will not display correct icons and many other small glitches.

Alexei.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Maxim S. Shatskih
Sent: Monday, March 06, 2006 2:19 PM
To: Windows File Systems Devs Interest List
Subject: Re: [ntfsd] Getting Moutned Volume Paths

of all repase points that are defined on a volume is recoded in the
$Extend$Reparse:$R:$INDEX_ALLOCATION and available via

This is NTFS-only.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com


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

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

IIRC the MountedDevices registry is the main place to keep this info, am I
wrong?

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----
From: “Alexei Jelvis”
To: “Windows File Systems Devs Interest List”
Sent: Tuesday, March 07, 2006 3:55 AM
Subject: RE: [ntfsd] Getting Moutned Volume Paths

You see, utilities like mountvol depend on this. So it is sort of de-facto
requirement for correct implementation of mount point support in 3-party FS.
If you don’t do this then mountvol will not show your mount points, Windows
explorer will not display correct icons and many other small glitches.

Alexei.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Maxim S. Shatskih
Sent: Monday, March 06, 2006 2:19 PM
To: Windows File Systems Devs Interest List
Subject: Re: [ntfsd] Getting Moutned Volume Paths

>of all repase points that are defined on a volume is recoded in the
>$Extend$Reparse:$R:$INDEX_ALLOCATION and available via

This is NTFS-only.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com


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

You are currently subscribed to ntfsd as: xxxxx@vmware.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: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com

Hi Pashupati,

I tried using IOCTL_MOUNTMGR_QUERY_POINTS supplying the volume GUID as the
input as you said. However I don’t get back what I need. I get TWO entries
one with the “guid” I passed in the other with “\DosDevices\E:”, both
entries have the volume name \Device\HardiskVolume2

What I don’t get is an entry like C:\MountE which is one of the directories
the volume with that guid is mounted to.

I tried passing the guid in as the symbolic name and the device name,. If I
use the symbolic name I only get one entry back, if I use the DeviceName I
get two entries back.

Is there something I’m missing?

Thanks,

Ken


From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Pashupati Kumar
Sent: Monday, March 06, 2006 5:11 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] Getting Moutned Volume Paths

You can use IOCTL_MOUNTMGR_QUERY_POINTS supplying the volume GUID as the
input. You will get back all symbolic link names including the volume GUID
and mounted paths.


From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Ken Galipeau
Sent: Monday, March 06, 2006 1:29 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] Getting Moutned Volume Paths

That is not what I need. I want to get this information in kernel mode NOT
user.

Given a volume guid

i.e. \?\Volume{6c384463-c2ca-11d9-bfe9-806d6172696f}\

I want to know what paths it is mounted too;
i.e. E:\

C:\MOUNTE

In the kernel it can be done with IOCTL
IOCTL_MOUNTMGR_QUERY_DOS_VOLUME_PATHS sent to the mount manger, however, it
is not available in W2K So how can I get the information in W2K.

Ken


From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Alex Green
Sent: Monday, March 06, 2006 4:02 PM
To: Windows File Systems Devs Interest List
Subject: Re: [ntfsd] Getting Moutned Volume Paths

from a user-mode application mounts/Dos Device names are easily can be
recieved by the following functions :

GetLogicalDrives to recieve a 32-bit variable represent the logical drives.
each bit represent a drive bit 0 - A Drive bit 1 - B Drive.

QueryDosDevice recieve a drive letter and return the DosDevice
representation.

I think this is what you are trying to do.

hope thats help.

On 3/6/06, Ken Galipeau
> wrote:

There is program called mountvol which lists all the volumes in a systems
and all the paths (including dos names) a volume is mounted at.

In W2K3 this is done via two I/O controls:

IOCTL_MOUNTMGR_QUERY_POINTS - which gets all the mount points

IOCTL_MOUNTMGR_QUERY_DOS_VOLUME_PATHS - which gets all the paths a volume is
mounted at.

In W2K there is no I/O control IOCTL_MOUNTMGR_QUERY_DOS_VOLUME_PATHS, so
where does the program mountvol get all the paths a volume is mounted at
when running on W2K?

Thanks,

Ken


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

You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com
mailto:xxxxx

— Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17 You are currently subscribed to
ntfsd as: unknown lmsubst tag argument: ‘’ 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: unknown lmsubst tag argument: ‘’
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: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com</mailto:xxxxx></https:>

Alexei,

That query returns the fields FileReference and Tag, what are they and how
are they used to get the path information?

Ken


From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Alexei Jelvis
Sent: Monday, March 06, 2006 4:54 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] Getting Moutned Volume Paths

You need to read list of reparse points from every volume in the system and
check the tag/target volume to select ones that you are interested in. List
of all repase points that are defined on a volume is recoded in the
$Extend$Reparse:$R:$INDEX_ALLOCATION and available via
IRP_MJ_DIRECTORY_CONTROL/IRP_MN_QUERY_DIRECTORY with
FileReparsePointInformation information class.

Alexei.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Ken Galipeau
Sent: Monday, March 06, 2006 1:29 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] Getting Moutned Volume Paths

That is not what I need. I want to get this information in kernel mode NOT
user.

Given a volume guid

i.e. \?\Volume{6c384463-c2ca-11d9-bfe9-806d6172696f}\

I want to know what paths it is mounted too;
i.e. E:\

C:\MOUNTE

In the kernel it can be done with IOCTL
IOCTL_MOUNTMGR_QUERY_DOS_VOLUME_PATHS sent to the mount manger, however, it
is not available in W2K So how can I get the information in W2K.

Ken


From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Alex Green
Sent: Monday, March 06, 2006 4:02 PM
To: Windows File Systems Devs Interest List
Subject: Re: [ntfsd] Getting Moutned Volume Paths

from a user-mode application mounts/Dos Device names are easily can be
recieved by the following functions :

GetLogicalDrives to recieve a 32-bit variable represent the logical drives.
each bit represent a drive bit 0 - A Drive bit 1 - B Drive.

QueryDosDevice recieve a drive letter and return the DosDevice
representation.

I think this is what you are trying to do.

hope thats help.

On 3/6/06, Ken Galipeau
> wrote:

There is program called mountvol which lists all the volumes in a systems
and all the paths (including dos names) a volume is mounted at.

In W2K3 this is done via two I/O controls:

IOCTL_MOUNTMGR_QUERY_POINTS - which gets all the mount points

IOCTL_MOUNTMGR_QUERY_DOS_VOLUME_PATHS - which gets all the paths a volume is
mounted at.

In W2K there is no I/O control IOCTL_MOUNTMGR_QUERY_DOS_VOLUME_PATHS, so
where does the program mountvol get all the paths a volume is mounted at
when running on W2K?

Thanks,

Ken


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

You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com
mailto:xxxxx

— Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17 You are currently subscribed to
ntfsd as: unknown lmsubst tag argument: ‘’ 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: unknown lmsubst tag argument: ‘’
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: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com</mailto:xxxxx></https:>

Ken,

The tag is the reparse point tag which allows to distinguish between mount
points and other types of reparse points. FileReference is actually a 64-bit
unique ID that could be used to open file by file id. Then you can get mount
point info using FSCTL_GET_REPARSE_POINT.

Alexei.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Ken Galipeau
Sent: Tuesday, March 07, 2006 12:27 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] Getting Moutned Volume Paths

Alexei,

That query returns the fields FileReference and Tag, what are they and how
are they used to get the path information?

Ken


From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Alexei Jelvis
Sent: Monday, March 06, 2006 4:54 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] Getting Moutned Volume Paths

You need to read list of reparse points from every volume in the system and
check the tag/target volume to select ones that you are interested in. List
of all repase points that are defined on a volume is recoded in the
$Extend$Reparse:$R:$INDEX_ALLOCATION and available via
IRP_MJ_DIRECTORY_CONTROL/IRP_MN_QUERY_DIRECTORY with
FileReparsePointInformation information class.

Alexei.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Ken Galipeau
Sent: Monday, March 06, 2006 1:29 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] Getting Moutned Volume Paths

That is not what I need. I want to get this information in kernel mode NOT
user.

Given a volume guid

i.e. \?\Volume{6c384463-c2ca-11d9-bfe9-806d6172696f}\

I want to know what paths it is mounted too;
i.e. E:\

C:\MOUNTE

In the kernel it can be done with IOCTL IOCTL_MOUNTMGR_QUERY_DOS_VOLUME_PATHS
sent to the mount manger, however, it is not available in W2K So how can I
get the information in W2K.

Ken


From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Alex Green
Sent: Monday, March 06, 2006 4:02 PM
To: Windows File Systems Devs Interest List
Subject: Re: [ntfsd] Getting Moutned Volume Paths

from a user-mode application mounts/Dos Device names are easily can be
recieved by the following functions :

GetLogicalDrives to recieve a 32-bit variable represent the logical drives.
each bit represent a drive bit 0 - A Drive bit 1 - B Drive.

QueryDosDevice recieve a drive letter and return the DosDevice
representation.

I think this is what you are trying to do.

hope thats help.

On 3/6/06, Ken Galipeau < xxxxx@emc.com> wrote:

There is program called mountvol which lists all the volumes in a systems and
all the paths (including dos names) a volume is mounted at.

In W2K3 this is done via two I/O controls:

IOCTL_MOUNTMGR_QUERY_POINTS - which gets all the mount points

IOCTL_MOUNTMGR_QUERY_DOS_VOLUME_PATHS - which gets all the paths a volume is
mounted at.

In W2K there is no I/O control IOCTL_MOUNTMGR_QUERY_DOS_VOLUME_PATHS, so
where does the program mountvol get all the paths a volume is mounted at when
running on W2K?

Thanks,

Ken


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

You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
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: unknown lmsubst tag argument: ‘’ 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: unknown lmsubst tag argument: ‘’
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: unknown lmsubst tag argument: ‘’
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: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com

Hi Ken,
You are right. I just checked with my application it returns only the drive
letter and not the directory mount points.

thx


From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Ken Galipeau
Sent: Tuesday, March 07, 2006 11:21 AM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] Getting Moutned Volume Paths

Hi Pashupati,

I tried using IOCTL_MOUNTMGR_QUERY_POINTS supplying the volume GUID as the
input as you said. However I don’t get back what I need. I get TWO entries
one with the “guid” I passed in the other with “\DosDevices\E:”, both
entries have the volume name \Device\HardiskVolume2

What I don’t get is an entry like C:\MountE which is one of the directories
the volume with that guid is mounted to.

I tried passing the guid in as the symbolic name and the device name,. If I
use the symbolic name I only get one entry back, if I use the DeviceName I
get two entries back.

Is there something I’m missing?

Thanks,

Ken


From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Pashupati Kumar
Sent: Monday, March 06, 2006 5:11 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] Getting Moutned Volume Paths

You can use IOCTL_MOUNTMGR_QUERY_POINTS supplying the volume GUID as the
input. You will get back all symbolic link names including the volume GUID
and mounted paths.


From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Ken Galipeau
Sent: Monday, March 06, 2006 1:29 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] Getting Moutned Volume Paths

That is not what I need. I want to get this information in kernel mode NOT
user.

Given a volume guid

i.e. \?\Volume{6c384463-c2ca-11d9-bfe9-806d6172696f}\

I want to know what paths it is mounted too;
i.e. E:\

C:\MOUNTE

In the kernel it can be done with IOCTL
IOCTL_MOUNTMGR_QUERY_DOS_VOLUME_PATHS sent to the mount manger, however, it
is not available in W2K So how can I get the information in W2K.

Ken


From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Alex Green
Sent: Monday, March 06, 2006 4:02 PM
To: Windows File Systems Devs Interest List
Subject: Re: [ntfsd] Getting Moutned Volume Paths

from a user-mode application mounts/Dos Device names are easily can be
recieved by the following functions :

GetLogicalDrives to recieve a 32-bit variable represent the logical drives.
each bit represent a drive bit 0 - A Drive bit 1 - B Drive.

QueryDosDevice recieve a drive letter and return the DosDevice
representation.

I think this is what you are trying to do.

hope thats help.

On 3/6/06, Ken Galipeau
> wrote:

There is program called mountvol which lists all the volumes in a systems
and all the paths (including dos names) a volume is mounted at.

In W2K3 this is done via two I/O controls:

IOCTL_MOUNTMGR_QUERY_POINTS - which gets all the mount points

IOCTL_MOUNTMGR_QUERY_DOS_VOLUME_PATHS - which gets all the paths a volume is
mounted at.

In W2K there is no I/O control IOCTL_MOUNTMGR_QUERY_DOS_VOLUME_PATHS, so
where does the program mountvol get all the paths a volume is mounted at
when running on W2K?

Thanks,

Ken


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

You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com
mailto:xxxxx

— Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17 You are currently subscribed to
ntfsd as: unknown lmsubst tag argument: ‘’ 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: unknown lmsubst tag argument: ‘’
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: unknown lmsubst tag argument: ‘’
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: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com</mailto:xxxxx></https:>