Making rsync compile under Mac OS X 10.3.9 with extended attributes

Matt McCutchen matt at mattmccutchen.net
Sat Jan 26 21:45:24 GMT 2008


On Sat, 2008-01-26 at 16:43 -0500, Matt McCutchen wrote:
> if (mac && N == "com.apple.crtime96")
> 	getattrlist(ATTR_CMN_CRTIME);
> else if (mac < 10.4) {
> 	if (N == "com.apple.FinderInfo")
> 		getattrlist(ATTR_CMN_FNDRINFO);
> 	else if (N == "com.apple.ResourceFork")
> 		// I'm not sure of the API to access the resource fork.
> 	// More cases here?
> 	else
> 		// No other xattrs exist.
> } else
> 	getxattr(N);

Also, this would be a good opportunity to try to understand why the
current creation-time code slows rsync down considerably and avoid the
performance problem in the new code.

Matt



More information about the rsync mailing list