Extended attributes in MacOS X

Wesley W. Terpstra wesley at terpstra.ca
Wed Oct 25 19:10:46 GMT 2006

On Oct 25, 2006, at 7:58 PM, Wayne Davison wrote:
> On Wed, Oct 25, 2006 at 05:57:38PM +0200, Wesley W. Terpstra wrote:
>> My question: is this useful? should I prefix all MacOS EAs with  
>> 'user.'?
> I'd love to see such a patch, as this is the direction that I'd  
> like to
> see rsync take in handling MacOS extended attributes.

I've attached the patch. You need to apply acls.diff and xattr.diff  
first, and run autoconf/autoheader after.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: rsync-2.6.8.mac_xattr.diff
Type: application/octet-stream
Size: 4630 bytes
Desc: not available
Url : http://lists.samba.org/archive/rsync/attachments/20061025/f8915d02/rsync-2.6.8.mac_xattr.obj
-------------- next part --------------

I've been trying to work up my nerve to try and backup ACLs, but  
that's a lot harder from the looks of it.

> As for prefixing all MacOS xattrs with "user.", we'd need to come up
> with some rules that would preserve the xattrs for all data paths:
> Mac -> Mac, Mac -> Posix -> Mac, and Posix -> Mac -> Posix.  So, a Mac
> receiver would need to be able to differentiate what entries needed  
> the
> extra prefix stripped, and which did not.  So, perhaps adding  
> something
> like "user.N0nP0s1%." to any non "user." data (that's NonPosix spelled
> with 2 zeros, a one, and a percent).  That would make the stripping
> rule pretty straight forward on the Mac side.

I just don't know enough about these issues to have an opinion;  
that's why I asked here.

More information about the rsync mailing list