Odd attributes of a directory that is also a mount point
- From: "Bob K" <bobk123456@xxxxxxxxxxxxxxxx>
- Date: Mon, 19 Sep 2005 12:38:56 -0400
I'm seeing odd behavior when taking the attributes of a directory that is
also a mount point:
I mount a volume into an empty directory.
If I take the attributes of that directory (using either API:
GetFileAttributes or GetFileInformationByHandle), I get these attributes:
SYSTEM
HIDDEN
DIRECTORY
The actual directory is not marked as SYSTEM or HIDDEN.
Also, shouldn't REPARSE be set?
So, the question is - how do I get the ACTUAL attributes of a directory that
is a mount point?
The article below describes how to determine if a directory is a mount
point. This article doesn't match what I am seeing.
Thanks for any help,
Bob
Determining Whether a Directory is a Volume Mount Point
It is useful to determine whether a directory is a volume mount point when,
for example, you are using a backup utility or search utility that is
constrained to one volume. Such a utility can reach information on multiple
volumes if you mount all volumes to the one the utility addresses.
To determine if a specified directory is a volume mount point, first call
the GetFileAttributes function and inspect the FILE_ATTRIBUTE_REPARSE_POINT
flag in the return value to see if the directory has an associated reparse
point. If it does, use the FindFirstFile and FindNextFile functions to
obtain the reparse tag. To determine if the reparse point is a volume mount
point (and not some other form of reparse point), test whether the tag value
equals the value IO_REPARSE_TAG_MOUNT_POINT. For more information, see
Reparse Points.
To obtain the target volume of a volume mount point, use the
GetVolumeNameForVolumeMountPoint function.
.
- Follow-Ups:
- RE: Odd attributes of a directory that is also a mount point
- From: "Terry Fei[MSFT]"
- RE: Odd attributes of a directory that is also a mount point
- Prev by Date: Re: User Name
- Next by Date: Re: User Name
- Previous by thread: Re: User Name
- Next by thread: RE: Odd attributes of a directory that is also a mount point
- Index(es):
Relevant Pages
|