storing symlink in extended attribute (on ntfs)

egor duda deo@logos-m.ru
Mon May 14 07:07:00 GMT 2001


Hi!

Saturday, 12 May, 2001 egor duda deo@logos-m.ru wrote:

CF>> As a specific comment, I wonder if it would just make sense to store volume
CF>> information in the path_conv class to avoid going through the duplicate efforts
CF>> in symlink.

ed> i guess so. currently, GetVolumeInformation is called only when
ed> symlink is created, not resolved, but this will slow things down on
ed> file systems other than NTFS. to remove this penalty,
ed> GetVolumeInformation() should be called in symlink resolution code to, 
ed> and that's where volume information caching can save some cycles.

done. i think, however, that this patch should wait until 1.3.3

Egor.            mailto:deo@logos-m.ru ICQ 5165414 FidoNet 2:5020/496.19
symlink-in-ea-3.diff
symlink-in-ea-3.ChangeLog

-------------- next part --------------
2001-05-14  Egor Duda  <deo@logos-m.ru>

	* security.h (NTWriteEA): Change prototype.
	* ntea.cc (NTReadEA): Don't check for global ntea setting, now
	it's caller responsibility.
	(NTWriteEA): Ditto.
	* security.cc (get_file_attribute): Read attribute from EA only
	if 'ntea' is enabled.
	(set_file_attribute): Ditto.
	* path.h: (class path_conv): Add members to store file system
	information.
	* path.cc (path_conv::update_fs_info): New functions.
	(path_conv::check): Get file system information from device where
	file resides.
	(get_symlink_ea): New function.
	(set_symlink_ea): Ditto.
	(symlink): Store symlink in extended attribute, if possible.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: symlink-in-ea-3.diff
Type: text/x-diff
Size: 8645 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20010514/6b36db68/attachment.bin>


More information about the Cygwin-patches mailing list