Sorry about this question, I just realised that getxattr gets the name of the extended attribute as a parameter... So that is what I should put on the attrList. Carefully reading man is useful :/

Le 27 janv. 08 à 15:38, Vitorio Machado a écrit :

First of all, thanks to Matt for all this help. It makes my job much easier :)

So I've started trying to put some code on sysxattrs.c. I've created another case as suggested by Matt:

#elif HAVE_PRE_TIGER_OSX_ATTRS

And I'm trying to convert getxattr system calls to getattrlist. But I have some doubts, hope you can help me. As I understood the getxattr system call gives you ALL the extended attributes (in the limit of the size of the buffer that you given).
In getattrlist you provides a list of which attributes you want...
Well, should I put in this list all the attributes or only ressource fork related? I also see attributes like creation, modification, access date that can be retrieved by a stat call. Do rsync do this stat call for other attributes or do I have to copy this data to?
In other words, which extended attributes are important to preserve?

My preoccupation is with doing 2 times the same job, but also with compatibility with newer versions. I would like to patch it the best way possible (if there is no significant coding difference).

Best regards,

Vitorio

PS: man pages for getxattr and getattrlist are http:// developer.apple.com/documentation/Darwin/Reference/Manpages/man2/ getxattr.2.html and http://developer.apple.com/documentation/Darwin/ Reference/ManPages/man2/getattrlist.2.html
--
To unsubscribe or change options: https://lists.samba.org/mailman/ listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart- questions.html

--
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Reply via email to