rsync 3.0.2 with --fileflags on FreeBSD: cannot rsync hardlinked immutable files

Raphael Becker rabe at uugrn.org
Sat Jun 7 22:55:07 GMT 2008


On Sat, May 31, 2008 at 09:16:43PM +0200, I wrote:
> Hi *,
> 
> it seems rsync with --fileflags isn't able to work on (already)
> hardlinked and immutable ("schg") files on FreeBSD. The following
> scripts will create a simple example for this behaviour:

I forgot to check --force-change but this didn't help either.

I googled around and found http://rsync.samba.org/ftp/rsync/patches/fileflags.diff

... which doesn't seem to work on the current(?) sources:

root at daemon:/usr/ports/net/rsync# make extract
===>  Vulnerability check disabled, database not found
===>  Found saved configuration for rsync-3.0.2_1
=> rsync-3.0.2.tar.gz doesn't seem to exist in
/data/ftp/pub/FreeBSD/distfiles//.
=> Attempting to fetch from http://ftp2.de.freebsd.org/FreeBSD/distfiles//.
fetch: http://ftp2.de.freebsd.org/FreeBSD/distfiles//rsync-3.0.2.tar.gz: Not Found
=> Attempting to fetch from http://rsync.samba.org/ftp/rsync/.
rsync-3.0.2.tar.gz                            100% of  747 kB   21 MBps
=> rsync-patches-3.0.2.tar.gz doesn't seem to exist in /data/ftp/pub/FreeBSD/distfiles//.
=> Attempting to fetch from http://ftp2.de.freebsd.org/FreeBSD/distfiles//.
fetch: http://ftp2.de.freebsd.org/FreeBSD/distfiles//rsync-patches-3.0.2.tar.gz: Not Found
=> Attempting to fetch from http://rsync.samba.org/ftp/rsync/.
rsync-patches-3.0.2.tar.gz                    100% of  150 kB   17 MBps
===>  Extracting for rsync-3.0.2_1
=> MD5 Checksum OK for rsync-3.0.2.tar.gz.
=> SHA256 Checksum OK for rsync-3.0.2.tar.gz.
=> MD5 Checksum OK for rsync-patches-3.0.2.tar.gz.
=> SHA256 Checksum OK for rsync-patches-3.0.2.tar.gz.
===>   rsync-3.0.2_1 depends on file: /usr/local/bin/perl5.8.8 - found

Overriding the patch from the distfile with the patch from the web:
root at daemon:/usr/ports/net/rsync# wget -O /data/tmp/usr/ports/net/rsync/work/rsync-3.0.2/patches/fileflags.diff http://rsync.samba.org/ftp/rsync/patches/fileflags.diff

But this patch doesn't match the current(?) sources:

root at daemon:/usr/ports/net/rsync# make patch
===>  Patching for rsync-3.0.2_1
===>   rsync-3.0.2_1 depends on file: /usr/local/bin/perl5.8.8 - found
===>  Applying extra patch
/data/tmp/usr/ports/net/rsync/work/rsync-3.0.2/patches/fileflags.diff
1 out of 2 hunks failed--saving rejects to t_stub.c.rej
1 out of 4 hunks failed--saving rejects to util.c.rej
*** Error code 2

Stop in /usr/ports/net/rsync.
*** Error code 1

Stop in /usr/ports/net/rsync.

The two distfiles are
MD5 (rsync-3.0.2.tar.gz) = fd4c5d77d8cb7bb86ab209076fa214d9
MD5 (rsync-patches-3.0.2.tar.gz) = c076661c447ddc165f4ff427e7264a31

Does anyone know if there's a way to rsync hardlinks on immutable files?
Wayne Davison? Rolf Grossmann? Anyone else?

Help would be greatly appreciated.

Regards
Raphael Becker

-- 
Raphael Becker          <rabe at uugrn.org>          http://rabe.uugrn.org/
GnuPG:                E7B2 1D66 3AF2 EDC7 9828  6D7A 9CDA 3E7B 10CA 9F2D
.........|.........|.........|.........|.........|.........|.........|..
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.samba.org/archive/rsync/attachments/20080608/01a02f2f/attachment.bin


More information about the rsync mailing list