On Friday 26 August 2005 03:17 pm, Mauro Tortonesi wrote: > On Wednesday 24 August 2005 08:30 pm, Anjan Samanta wrote: > > Not much response on this patch so far; so I'm wondering whether it fell > > into a hole... Is this kind of feature in principle a thumbs-up, a > > thumbs-down, or a needs-thinking-about? I can repost to the general > > mailing list, if that would be better... > > --anjansamanta > > hi anjan, > > hrvoje and i have been talking about your patch. it seems very interesting > to me, but i have a couple of questions about it. > > first, it seems that your patch is platform-dependent. i guess you wrote it > for linux, since setxattr has a different interface on osx: > > http://developer.apple.com/documentation/Darwin/Reference/ManPages/man2/set >xattr.2.html > > i also couldn't find setxattr for freebsd. it seems the closest thing is: > > http://www.freebsd.org/cgi/man.cgi?query=extattr_get_fd&sektion=2&apropos=0 >&manpath=FreeBSD+5.4-RELEASE+and+Ports > > what about solaris and windows? does your patch have any chance to work on > those operating systems? > > second, your patch seems to be also filesystem dependent. from man attr(5): > > Currently, support for extended attributes is implemented on Linux > by the ext2, ext3 and XFS filesystem patches, which can be > downloaded from http://acl.bestbits.at/ and > http://oss.sgi.com/projects/xfs/ respectively. > > this means that it won't work on, e.g., linux/reiserfs. and i guess there > is a significant chance to encounter similar issues on other operating > systems as well.
i have to admit i am not an expert of win32 programming, but i can't find any setxattr equivalent on windows: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/file_management_functions.asp hrvoje pointed out that this could work on solaris: http://docs.sun.com/app/docs/doc/816-5167/6mbb2jaiu?a=view -- Aequam memento rebus in arduis servare mentem... Mauro Tortonesi http://www.tortonesi.com University of Ferrara - Dept. of Eng. http://www.ing.unife.it Institute for Human & Machine Cognition http://www.ihmc.us GNU Wget - HTTP/FTP file retrieval tool http://www.gnu.org/software/wget Deep Space 6 - IPv6 for Linux http://www.deepspace6.net Ferrara Linux User Group http://www.ferrara.linux.it
