Hi, all
I have found a strange behaviour of
IRP_MJ_QUERY_INFORMATION (FileNameInformation)
In my filter, I need to query the name after open.
Inside the create handler, after a successfull create
request (with FILE_OPEN), I call query info
for file name.
-
If I open local file (C:\FileNameWithUpperCase.txt),
I will query \FileNameWithUpperCase.txt.
-
If I open a network file on Windows 2000 server
I will query \Server\Share\FileNameWithUpperCase.txt.
-
But If I open a network file within offline folder,
I will query \Server\Share\FILENAMEWITHUPPERCASE.TXT.
Does anyone know why this is it ?
Or is it a bug in offline folders ?
L.
Ladislav,
In my experience if FILE_CASE_PRESERVED_NAMES is not set in
FileFsAttributeInformation within a volume info query, then you will
need be able to handle cases where files are referenced with differing
capitalization. MS Wordpad seemed to be rewriting relative filenames
to all caps until I set that in my fs.
-Jeff
On Tue, 4 Jan 2005 09:32:55 +0100, Ladislav Zezula wrote:
>
> Hi, all
>
> I have found a strange behaviour of
> IRP_MJ_QUERY_INFORMATION (FileNameInformation)
>
> In my filter, I need to query the name after open.
> Inside the create handler, after a successfull create
> request (with FILE_OPEN), I call query info
> for file name.
>
> - If I open local file (C:\FileNameWithUpperCase.txt),
> I will query \FileNameWithUpperCase.txt.
>
> - If I open a network file on Windows 2000 server
> I will query \Server\Share\FileNameWithUpperCase.txt.
>
> - But If I open a network file within offline folder,
> I will query \Server\Share\FILENAMEWITHUPPERCASE.TXT.
>
> Does anyone know why this is it ?
> Or is it a bug in offline folders ?
>
> L.
>
> —
> 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
>
> In my experience if FILE_CASE_PRESERVED_NAMES is not set in
FileFsAttributeInformation within a volume info query, then you will
need be able to handle cases where files are referenced with differing
capitalization. MS Wordpad seemed to be rewriting relative filenames
to all caps until I set that in my fs.
Hm, but it is the same redirector, the same network volume,
only the folder is different. And the name is not upcased by
an application, it is upcased by the redirector itself
L.