I am using FltGetFileNameInformationUnsafe with the FLT_FILE_NAME_NORMALIZED
option. The names coming back are not normalized completely. I will
usually see a name like: “??\C:\restofpath” but sometimes it looks like
“\systemroot\restofpath” or “\dosdevices\C:\restofpath”.
I need to be able to compare names but I’m not sure this is possible since
the name seems to appear in arbitrary formats.
Can someone tell me how to get a true normalized name for a file?
The filter manager never returns a name that begins with “??\c:” or
“\dosdevices\c:” because those names are not unique in the kernel. The
filter manager will never return a name that begins with “\systemroot”
because it isn’t a name known by the file system - it’s a link in the
object name space. You actually shouldn’t be seeing those names in the
file system stack at all since the Object Manager resolves them before
sending the request to the file system stack. Potentially, if the name
is malformed you could see such a request, but in that case the CREATE
will fail.
You will only get names like [remote file systems>]
back from the filter manager for either opened or normalized names.
will be something like
\Device\HarddiskVolume1 or \Device\LanmanRedirector.
For normalized names, all mount points will have been resolved in the
path, all short names in the path will be expanded, any “:$DATA” stream
names will be removed.
Molly Brown
Microsoft Corporation
This posting is provided “AS IS” with no warranties and confers no
rights.
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Mark Hahn
Sent: Friday, April 08, 2005 6:25 PM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] FLT_FILE_NAME_NORMALIZED not normalized
I am using FltGetFileNameInformationUnsafe with the
FLT_FILE_NAME_NORMALIZED option. The names coming back are not
normalized completely. I will usually see a name like:
“??\C:\restofpath” but sometimes it looks like “\systemroot\restofpath”
or “\dosdevices\C:\restofpath”.
I need to be able to compare names but I’m not sure this is possible
since the name seems to appear in arbitrary formats.
Can someone tell me how to get a true normalized name for a file?
—
Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
You are currently subscribed to ntfsd as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
Are you sure you specified the correct API? We would never return names
of this form from this API. You could get names of this kind when doing
destination name queries for renames and set hard links.
Neal Christiansen
Microsoft File System Filter Group Lead
This posting is provided “AS IS” with no warranties, and confers no
Rights
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Mark Hahn
Sent: Friday, April 08, 2005 6:25 PM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] FLT_FILE_NAME_NORMALIZED not normalized
I am using FltGetFileNameInformationUnsafe with the
FLT_FILE_NAME_NORMALIZED
option. The names coming back are not normalized completely. I will
usually see a name like: “??\C:\restofpath” but sometimes it looks like
“\systemroot\restofpath” or “\dosdevices\C:\restofpath”.
I need to be able to compare names but I’m not sure this is possible
since
the name seems to appear in arbitrary formats.
Can someone tell me how to get a true normalized name for a file?
Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
You are currently subscribed to ntfsd as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
Yes, I specifed the exact API and yes, this is a call to
FltGetFileNameInformationUnsafe for a destination name query for a rename.
Are you saying I cannot get a normalized name for a rename destination?
That would be a real drag.
“Neal Christiansen” wrote in message
news:xxxxx@ntfsd…
Are you sure you specified the correct API? We would never return names
of this form from this API. You could get names of this kind when doing
destination name queries for renames and set hard links.
Neal Christiansen
Microsoft File System Filter Group Lead
This posting is provided “AS IS” with no warranties, and confers no
Rights
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Mark Hahn
Sent: Friday, April 08, 2005 6:25 PM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] FLT_FILE_NAME_NORMALIZED not normalized
I am using FltGetFileNameInformationUnsafe with the
FLT_FILE_NAME_NORMALIZED
option. The names coming back are not normalized completely. I will
usually see a name like: “??\C:\restofpath” but sometimes it looks like
“\systemroot\restofpath” or “\dosdevices\C:\restofpath”.
I need to be able to compare names but I’m not sure this is possible
since
the name seems to appear in arbitrary formats.
Can someone tell me how to get a true normalized name for a file?
—
Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
You are currently subscribed to ntfsd as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
You can get the normalized name of a destination name, but you are using
the wrong API. You should use FltGetDestinationFileNameInformation().
Molly Brown
Microsoft Corporation
This posting is provided “AS IS” with no warranties and confers no
rights.
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Mark Hahn
Sent: Monday, April 11, 2005 12:49 PM
To: Windows File Systems Devs Interest List
Subject: Re:[ntfsd] FLT_FILE_NAME_NORMALIZED not normalized
Yes, I specifed the exact API and yes, this is a call to
FltGetFileNameInformationUnsafe for a destination name query for a
rename.
Are you saying I cannot get a normalized name for a rename destination?
That would be a real drag.
“Neal Christiansen” wrote in message
news:xxxxx@ntfsd…
Are you sure you specified the correct API? We would never return names
of this form from this API. You could get names of this kind when doing
destination name queries for renames and set hard links.
Neal Christiansen
Microsoft File System Filter Group Lead
This posting is provided “AS IS” with no warranties, and confers no
Rights
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Mark Hahn
Sent: Friday, April 08, 2005 6:25 PM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] FLT_FILE_NAME_NORMALIZED not normalized
I am using FltGetFileNameInformationUnsafe with the
FLT_FILE_NAME_NORMALIZED option. The names coming back are not
normalized completely. I will usually see a name like:
“??\C:\restofpath” but sometimes it looks like
“\systemroot\restofpath” or “\dosdevices\C:\restofpath”.
I need to be able to compare names but I’m not sure this is possible
since the name seems to appear in arbitrary formats.
Can someone tell me how to get a true normalized name for a file?
—
Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
You are currently subscribed to ntfsd as: xxxxx@windows.microsoft.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@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
Thanks! I missed that.
“Molly Brown” wrote in message
news:xxxxx@ntfsd…
You can get the normalized name of a destination name, but you are using
the wrong API. You should use FltGetDestinationFileNameInformation().
Molly Brown
Microsoft Corporation
This posting is provided “AS IS” with no warranties and confers no
rights.
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Mark Hahn
Sent: Monday, April 11, 2005 12:49 PM
To: Windows File Systems Devs Interest List
Subject: Re:[ntfsd] FLT_FILE_NAME_NORMALIZED not normalized
Yes, I specifed the exact API and yes, this is a call to
FltGetFileNameInformationUnsafe for a destination name query for a
rename.
Are you saying I cannot get a normalized name for a rename destination?
That would be a real drag.
“Neal Christiansen” wrote in message
news:xxxxx@ntfsd…
Are you sure you specified the correct API? We would never return names
of this form from this API. You could get names of this kind when doing
destination name queries for renames and set hard links.
Neal Christiansen
Microsoft File System Filter Group Lead
This posting is provided “AS IS” with no warranties, and confers no
Rights
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Mark Hahn
Sent: Friday, April 08, 2005 6:25 PM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] FLT_FILE_NAME_NORMALIZED not normalized
I am using FltGetFileNameInformationUnsafe with the
FLT_FILE_NAME_NORMALIZED option. The names coming back are not
normalized completely. I will usually see a name like:
“??\C:\restofpath” but sometimes it looks like
“\systemroot\restofpath” or “\dosdevices\C:\restofpath”.
I need to be able to compare names but I’m not sure this is possible
since the name seems to appear in arbitrary formats.
Can someone tell me how to get a true normalized name for a file?
—
Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
You are currently subscribed to ntfsd as: xxxxx@windows.microsoft.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@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com