The FltGetFileName* APIs work with file names that are up to the file
system limit. A name of 306 characters should be no problem. I haven’t
seen any similar problems in our internal testing of the filter manager
or of minifilters we’ve written.
There is no ASSERT in filter manager that would check to ensure that a
name is less than MAX_PATH. There are assertions at various places to
check sure that the lengths of the FLT_FILE_NAME_INFORMATION structure
being build is consistent - i.e., the total name length >= the volume
name length, the total name length > the stream length, etc.
If you could send me the exact message you are seeing, it would help
figure out what is going on here.
Regards,
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 Ken Cross
Sent: Tuesday, March 29, 2005 11:40 AM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] FltGetFileNameInformationUnsafe assertion error
Tony:
Right. I’ve not seen a problem in my mini-filter – only in the Windows
API stuff I mentioned. I’m not sure where Mark is getting clobbered but
I haven’t used the specific routine he referenced
(FltGetFileNameInformationUnsafe – sounds scary, huh?)
Ken
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Tony Mason
Sent: Tuesday, March 29, 2005 2:27 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] FltGetFileNameInformationUnsafe assertion error
If this limitation is present in the mini filter manager, that would be
a bug, however, because filter drivers have to be able to handle things
that might not work in the Win32 layer. For example, a system running
SFU with a number of NFS clients would not be aware of this
implementation decision within Win32. A product that breaks in such an
environment would be unacceptable as a commercial application (at least
as far as I’m concerned).
I have no idea if this IS an issue with the mini-filter, but if so it
needs to be reported and fixed. Filters MUST be able to work with full
sized path names, and names that are presented in other subsystems
besides Win32.
Regards,
Tony
Tony Mason
Consulting Partner
OSR Open Systems Resources, Inc.
http://www.osr.com
Looking forward to seeing you at the Next OSR File Systems Class April
4, 2005 in Boston!
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Ken Cross
Sent: Tuesday, March 29, 2005 2:14 PM
To: ntfsd redirect
Subject: RE: [ntfsd] FltGetFileNameInformationUnsafe assertion error
Mark:
In general, Windows chokes on any path > MAX_PATH (260) characters. The
Windows API has “several functions” where you can specify
“\?\C:\path…”
and get up to 32K characters. It also states that it’s possible to
create paths (e.g., using relative paths) that cannot be accessed
because their full path names would be too long.
My experience has been that you’re stuck with the 260 character maximum
length path.
HTH,
Ken
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Mark Hahn
Sent: Tuesday, March 29, 2005 2:00 PM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] FltGetFileNameInformationUnsafe assertion error
I got an assertion in a call to FltGetFileNameInformationUnsafe that
said the name was too long (unfortunately I forgot to save the error
message).
The length of the name in the file object was 306 characters so the
total length was probably 323 chars. FltGetFileNameInformationUnsafe
allocates it’s own memory for the structure so I cannot see anything I
can do to fix this.
Has anyone else had this problem? Does this mean I can’t use
FltGetFileNameInformationUnsafe?
Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
You are currently subscribed to ntfsd as: xxxxx@comcast.net
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@osr.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
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