snowcrash+rsync
2006-Nov-23 17:28 UTC
questions about extended attributes support across *nix & osx (hfs+) filesys
i've built up rsync on both opensuse & osx from src. on osx, it's v2.6.3 w/ both apple's "Extended Attributes" patches: http://www.opensource.apple.com/darwinsource/10.4.8.ppc/rsync-24/patches/EA.diff http://www.opensource.apple.com/darwinsource/10.4.8.ppc/rsync-24/patches/PR-3945747-endian.diff and the 'lartmaker' fix (iteself, slightly fixed ...): wget http://www.lartmaker.nl/rsync/rsync-tiger-fixes.diff applied. these patches don't currently apply as-is to rsync v2.6.9. using the patched bins, mac-to-mac -- or more correctly, hfs+-to-hfs+ -- rsync seems to correctly preserve file attributes. to my understanding, most if not all, anyway ... and, of course, linux-TO-mac rsync -- without extended attributes enabled -- also works fine. but, iiuc (and i know i may not!), backing up extended attributes FROM mac TO a linux store is not yet reliable. i've been somewhat following the disscussion(s) here about acl & xattr support being built into latest rsync. i can readily build v2.6.9 on opensuse with these options enabled. but, as i've been told to keep rsync versions across boxes/platform in-sync, i'm using v2.6.3 on opensuse without the acl/xattr support. given all that, i have a couple of questions: (1) i note that the 'new' xattr/acl support applies to osx as well. is this intended to replace apple's patched support? (2) at least on v2.6.9-release, the build w/ xattr/acl patches applied seems to require a number of header files from non-osx bundled sources, including but not necessarily limited to ... glibc-2.5.90-6.src.rpm attr-2.4.32-1.1.cpio acl-2.2.39-1.1.src.rpm which i extract tarballs from w/ 'rpm2cpio' & 'cpio -idm', as usual ... i'm guessing that these dependencies are provided for in available pkg systems (darwinports, fink, etc). will these dependencies be resolved -- either by bundling req'd headers with the distro, or by finding/using osx equivalents? thanks.
snowcrash+rsync
2006-Nov-24 15:12 UTC
questions about extended attributes support across *nix & osx (hfs+) filesys
>> and the 'lartmaker' fix (iteself, slightly fixed ...): >applied.> What exactly did you have to fix ?after applying, http://www.opensource.apple.com/darwinsource/10.4.8.ppc/rsync-24/patches/EA.diff http://www.opensource.apple.com/darwinsource/10.4.8.ppc/rsync-24/patches/PR-3945747-endian.diff an attempt to apply, http://www.lartmaker.nl/rsync/rsync-tiger-fixes.diff with, patch -p0 < ../rsync-tiger-fixes.diff reports, patching file flist.c Reversed (or previously applied) patch detected! Assume -R? [n] upon exam, i find that this 1st stanza @1 diff -udbrN flist.c flist.c --- flist.c 2005-11-28 00:28:22.000000000 +0100 +++ flist.c 2005-11-28 00:32:35.000000000 +0100 @@ -1017,6 +1017,7 @@ file2->length = 1; file2->mode = S_IFREG | S_IRUSR; + flist_expand(flist); flist->files[flist->count++] = file2; if (f != -1) seems (?) unnecessary, and REMOVING the complete stanza 'does the trick' ...> No. For me 2.6.3 is stable and does what I want, and I see no major > benefits to 2.6.9 that would warrant re-testing a backup solution.fair enough. for access to 2.6.9's 'native' xattr/acl extended-attributes support, i'll work directly with the list. thanks!
Wayne Davison
2006-Nov-25 03:12 UTC
questions about extended attributes support across *nix & osx (hfs+) filesys
On Thu, Nov 23, 2006 at 09:27:59AM -0800, snowcrash+rsync wrote:> (1) i note that the 'new' xattr/acl support applies to osx as well. > is this intended to replace apple's patched support?Eventually. The xattr patch still needs work to finish it up, but when it finally makes it into the main rsync release, it should hopefully work with OS X too at that point. Also, there is apparently some work needed to add support for the non-posix ACLs that OS X has.> will these dependencies be resolved -- either by bundling req'd > headers with the distro, or by finding/using osx equivalents?The main release should stick fairly close to the posix functions, and will not have any extra libraries bundled in. If someone has some simple code that would wrap up more native OS X functions into posix-like functions, that would be considered, but I doubt it would be a very simple wrapper. ..wayne..
Wesley W. Terpstra
2006-Nov-25 14:17 UTC
questions about extended attributes support across *nix & osx (hfs+) filesys
On Nov 23, 2006, at 6:27 PM, snowcrash+rsync wrote:> (1) i note that the 'new' xattr/acl support applies to osx as well. > is this intended to replace apple's patched support? > > (2) at least on v2.6.9-release, the build w/ xattr/acl patches applied > seems to require a number of header files from non-osx bundled > sources, including but not necessarily limited to ... > > glibc-2.5.90-6.src.rpm > attr-2.4.32-1.1.cpio > acl-2.2.39-1.1.src.rpm > > which i extract tarballs from w/ 'rpm2cpio' & 'cpio -idm', as > usual ... > > i'm guessing that these dependencies are provided for in available pkg > systems (darwinports, fink, etc). > > will these dependencies be resolved -- either by bundling req'd > headers with the distro, or by finding/using osx equivalents?What dependencies? The acl and xattr headers are simply part of a normal osx install with developer tools. No fink/etc needed.