Is there any function or way to do the reverse job of RtlGenerate8dot3Name?

in the filter driver, if the file is accessed through
8dot3 filename,I can not catch it.

Regards,
Ming

There is no simple routine in the system today to normalize a file name.
Search the archives especially for responses from Molly Brown; she has
discussed how to do this.

This is my 2nd plug of the day for the filter manager. It provides name
normalization support.

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 Ming
Sent: Thursday, December 25, 2003 12:59 AM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] Is there any function or way to do the reverse job of
RtlGenerate8dot3Name?

in the filter driver, if the file is accessed through
8dot3 filename,I can not catch it.

Regards,
Ming


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

I’ve searched the archieve of ntdev. and I’ve got it. Querying the parent
dir one by one.
But I wonder whether it will make the system slow.


No one knows what tomorrow would be,
but I’ll do my best.
“Neal Christiansen” дÈëÏûÏ¢ÐÂÎÅ
:xxxxx@ntfsd…

There is no simple routine in the system today to normalize a file name.
Search the archives especially for responses from Molly Brown; she has
discussed how to do this.

This is my 2nd plug of the day for the filter manager. It provides name
normalization support.

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 Ming
Sent: Thursday, December 25, 2003 12:59 AM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] Is there any function or way to do the reverse job of
RtlGenerate8dot3Name?

in the filter driver, if the file is accessed through
8dot3 filename,I can not catch it.

Regards,
Ming


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, expanding all the short names in a path can be quite slow, but that’s your only choice.

To minimize the impact of this extra work folks generally try to cache this information - either the normalized name itself or information as to whether your filter should be interested in further actions on this data stream.

There are caveats here as well – if the data stream is renamed, you need to take the appropriate action to invalidate your cached context. You also need to consider how hardlinks affect your filter’s behavior since a single data stream can have multiple names due to hardlinks.

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 Ming
Sent: Sunday, December 28, 2003 7:45 AM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] Re: Is there any function or way to do the reverse job of RtlGenerate8dot3Name?

I’ve searched the archieve of ntdev. and I’ve got it. Querying the parent dir one by one.
But I wonder whether it will make the system slow.


No one knows what tomorrow would be,
but I’ll do my best.
“Neal Christiansen” д???Ϣ??? :xxxxx@ntfsd…

There is no simple routine in the system today to normalize a file name.
Search the archives especially for responses from Molly Brown; she has discussed how to do this.

This is my 2nd plug of the day for the filter manager. It provides name normalization support.

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 Ming
Sent: Thursday, December 25, 2003 12:59 AM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] Is there any function or way to do the reverse job of RtlGenerate8dot3Name?

in the filter driver, if the file is accessed through
8dot3 filename,I can not catch it.

Regards,
Ming


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

A decent way to do this type of caching is by MFT File ID (assuming you only care about NTFS). Create a cache using the FILEID as the key and keep recently accessed directories and their full normalized path names in the cache. You can also keep the files there if you want. Then as Molly suggests, invalidate the cache entries when you see a specific FILEID get renamed or removed. The tough part is dealing with the hierarchy here - because you not only have to deal with a file or directory being renamed - you also have to deal with any one of its parents being renamed - since this changes the effective name of all the children. This will require you to thread your cache by parents and deal with reference counting etc. during cache purge (i.e. you can’t remove an entry in your cache that has child nodes referencing it). It is a bit involved - but can provide a very effective cache that is easy to locate paths in. Finding the file ID of the parent is still a small hit in performance - but much faster than recursion down through all of your parent nodes. While you are getting your parent’s ID, you can also do name normalization of the file itself - that is why I don’t recommend keeping the files themselves in the cache.

-----Original Message-----
From: Molly Brown [mailto:xxxxx@windows.microsoft.com]
Sent: Monday, December 29, 2003 11:42 AM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] Re: Is there any function or way to do the reverse job of RtlGenerate8dot3Name?

Yes, expanding all the short names in a path can be quite slow, but that’s your only choice.

To minimize the impact of this extra work folks generally try to cache this information - either the normalized name itself or information as to whether your filter should be interested in further actions on this data stream.

There are caveats here as well – if the data stream is renamed, you need to take the appropriate action to invalidate your cached context. You also need to consider how hardlinks affect your filter’s behavior since a single data stream can have multiple names due to hardlinks.

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 Ming
Sent: Sunday, December 28, 2003 7:45 AM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] Re: Is there any function or way to do the reverse job of RtlGenerate8dot3Name?

I’ve searched the archieve of ntdev. and I’ve got it. Querying the parent dir one by one.
But I wonder whether it will make the system slow.


No one knows what tomorrow would be,
but I’ll do my best.
“Neal Christiansen” д???Ϣ??? :xxxxx@ntfsd…

There is no simple routine in the system today to normalize a file name.
Search the archives especially for responses from Molly Brown; she has discussed how to do this.

This is my 2nd plug of the day for the filter manager. It provides name normalization support.

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 Ming
Sent: Thursday, December 25, 2003 12:59 AM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] Is there any function or way to do the reverse job of RtlGenerate8dot3Name?

in the filter driver, if the file is accessed through
8dot3 filename,I can not catch it.

Regards,
Ming


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


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

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

Neal, Are you having an informal plugfest :wink:

On a related note … its most excellent news that filterman will be
supported in Windows 2000 SP5 and Windows 2003 SP1. I need to make the case
to management to take account of filterman in work plans. The technical side
of that is trivial for all the obvious reasons that make filterman such a
GoodThing. (Is that a third party plug?) The schedule side is difficult
without at least an indication of when Windows 200 SP5, and as a second
priority Windows 2003 SP1, should be expected. Can you help out at all with
that kind of information please?

Thanks
Lyndon

“Neal Christiansen” wrote in message
news:xxxxx@ntfsd…
There is no simple routine in the system today to normalize a file name.
Search the archives especially for responses from Molly Brown; she has
discussed how to do this.

This is my 2nd plug of the day for the filter manager. It provides name
normalization support.

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 Ming
Sent: Thursday, December 25, 2003 12:59 AM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] Is there any function or way to do the reverse job of
RtlGenerate8dot3Name?

in the filter driver, if the file is accessed through
8dot3 filename,I can not catch it.

Regards,
Ming


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

Lyndon,

I am glad you are taking a serious look at the filter manager. Getting
everyone to migrate to the new environment will help all filter
developers.

Unfortunately, I do not have any dates yet for Server 2003 SP1 or
Windows 2000 SP5 that I am allowed to publicly disclose. All I can say
is that they will be in a reasonable time frame after XP SP2 is
released.

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 Lyndon J Clarke
Sent: Monday, January 19, 2004 8:30 AM
To: Windows File Systems Devs Interest List
Subject: Re:[ntfsd] Is there any function or way to do the reverse job
of RtlGenerate8dot3Name?

Neal, Are you having an informal plugfest :wink:

On a related note … its most excellent news that filterman will be
supported in Windows 2000 SP5 and Windows 2003 SP1. I need to make the
case
to management to take account of filterman in work plans. The technical
side
of that is trivial for all the obvious reasons that make filterman such
a
GoodThing. (Is that a third party plug?) The schedule side is difficult
without at least an indication of when Windows 200 SP5, and as a second
priority Windows 2003 SP1, should be expected. Can you help out at all
with
that kind of information please?

Thanks
Lyndon

“Neal Christiansen” wrote in message
news:xxxxx@ntfsd…
There is no simple routine in the system today to normalize a file name.
Search the archives especially for responses from Molly Brown; she has
discussed how to do this.

This is my 2nd plug of the day for the filter manager. It provides name
normalization support.

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 Ming
Sent: Thursday, December 25, 2003 12:59 AM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] Is there any function or way to do the reverse job of
RtlGenerate8dot3Name?

in the filter driver, if the file is accessed through
8dot3 filename,I can not catch it.

Regards,
Ming


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