storing symlink in extended attribute (on ntfs)
Thu May 10 14:23:00 GMT 2001
On Thu, May 10, 2001 at 08:15:21PM +0400, egor duda wrote:
> ed> i've modified cygwin slightly to store symlink value in shortcut's
> ed> extended attribute, and to try to get it from there. my (rough)
> ed> benchmarking shows 30%-50% speedup in symlink resolution code.
> here's ready-to-go patch.
> 2001-05-10 Egor Duda <email@example.com>
> * path.cc (symlink): If symlink is created on NTFS, store its
> value in EA.
Did you check that with a Samba drive as well? Samba drives
return NTFS as file system name in a call to GetVolumeInformation,
too. AFAICS, additionally a check if the flag FILE_NAMED_STREAMS
is returned would be good. Samba returns FALSE here. I'm not sure
if that would have real advantages. It would avoid a useless
write when creating a symlink on Samba...
Except for the above knit, I like the idea. It combines the
advantages of shortcuts with a faster read mechanism on NTFS.
I think it's worth a try.
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Developer mailto:firstname.lastname@example.org
Red Hat, Inc.
More information about the Cygwin-patches