This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: Extended attributes
- From: Pavel Fedin <p dot fedin at samsung dot com>
- To: cygwin at cygwin dot com
- Date: Mon, 20 Jan 2014 09:21:55 +0400
- Subject: RE: Extended attributes
- Authentication-results: sourceware.org; auth=none
- References: <006e01cf1066$c5f0e080$51d2a180$%fedin at samsung dot com> <20140113141041 dot GC21977 at calimero dot vinschen dot de> <002f01cf11ba$df28b550$9d7a1ff0$%fedin at samsung dot com> <20140115091530 dot GH10212 at calimero dot vinschen dot de> <001701cf1281$5fc57150$1f5053f0$%fedin at samsung dot com> <20140116091600 dot GC26205 at calimero dot vinschen dot de>
Hello!
> I'm really not inclined to add this. As it is, the NTFS xattr are
> always treated as user attributes. An NTFS attr "foo.bar" is returned
> as "user.foo.bar" and when writing, a "user.foo.bar" is written as
> "foo.bar". Adding other attribute types requires to add some special
> casing and parsing code to differ user attributes from other attributes
> without breaking backward compatibility.
>
> Also, it will never work correctly on a Samba share, because Samba will
> always treat the incoming attribute as above. So, if you write an
> attribute "trusted.md5sum" on a samba share, it will actually be
> converted to "user.trusted.md5sum" by Samba.
Sorry for late reply, too busy at work now... The same about NFS-related packages - no time ATM to make them... :(
You know, i got your point, and perhaps this can be rethought. Perhaps this can be done on SquashFS side. For example, we could tell it to store 'security.foo' attribute as 'user.squashfs.security.foo'. This could be also useful on Linux, because in this case you don't have to be root any more to be able to prepare a rootfs for your embedded device.
I think i'll consider that after i finish up with NFS.
Kind regards,
Pavel Fedin
Expert Engineer
Samsung Electronics Research center Russia
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple