rsync 3.0.9 compile --copy-devices --write-devices not working

Oliver Dzombic info at ip-interactive.de
Sat Feb 2 23:08:48 MST 2013


Hi Folks,

i recently try to use rsync on devices. The goal is to sync two logical
volumes without copy the whole.

According to

http://gitweb.samba.org/?p=rsync-patches.git;a=tree

write-devices.diff
copy-devices.diff

should do the job.

I downloaded

https://rsync.samba.org/ftp/rsync/rsync-3.0.9.tar.gz

and tried to apply the two .diff from your gitweb

resulting in:

write-devices.diff:

patch -p1 <patches/write-devices.diff
patching file generator.c
Hunk #1 FAILED at 39.
Hunk #2 succeeded at 1789 (offset 156 lines).
1 out of 2 hunks FAILED -- saving rejects to file generator.c.rej
patching file options.c
Hunk #1 FAILED at 48.
Hunk #2 FAILED at 703.
Hunk #3 FAILED at 883.
Hunk #4 succeeded at 1262 (offset -530 lines).
Hunk #5 succeeded at 2077 with fuzz 2 (offset -666 lines).
3 out of 5 hunks FAILED -- saving rejects to file options.c.rej
patching file receiver.c
Hunk #1 succeeded at 39 (offset 1 line).
Hunk #2 succeeded at 184 with fuzz 1 (offset -42 lines).
Hunk #3 FAILED at 276.
Hunk #4 FAILED at 284.
Hunk #5 FAILED at 298.
Hunk #6 FAILED at 374.
Hunk #7 succeeded at 337 (offset -68 lines).
Hunk #8 succeeded at 568 (offset -95 lines).
Hunk #9 FAILED at 675.
Hunk #10 succeeded at 668 (offset -103 lines).
Hunk #11 succeeded at 683 (offset -103 lines).
Hunk #12 succeeded at 739 (offset -103 lines).
Hunk #13 succeeded at 754 with fuzz 2 (offset -103 lines).
5 out of 13 hunks FAILED -- saving rejects to file receiver.c.rej


###############
###############

copy-devices.diff:

patching file b/generator.c
Hunk #1 FAILED at 39.
Hunk #2 FAILED at 1596.
2 out of 2 hunks FAILED -- saving rejects to file b/generator.c.rej
patching file b/options.c
Hunk #1 FAILED at 48.
Hunk #2 FAILED at 703.
Hunk #3 FAILED at 883.
Hunk #4 FAILED at 2743.
4 out of 4 hunks FAILED -- saving rejects to file b/options.c.rej
patching file b/rsync.c
Hunk #1 FAILED at 33.
Hunk #2 FAILED at 396.
2 out of 2 hunks FAILED -- saving rejects to file b/rsync.c.rej
patching file b/sender.c
Hunk #1 FAILED at 364.
1 out of 1 hunk FAILED -- saving rejects to file b/sender.c.rej



#####################
#####################

Ok, not working, while i wonder why there are in the git patches to
download which can not be applied to the source code ?!


Anyway, i tried not to give up.

And found

https://rsync.samba.org/ftp/rsync/rsync-patches-3.0.9.tar.gz

In there, i found copy-devices.diff, which could be applied successfully :-)
A write-devices.diff is missing :(

I compilied it, and run it. The result:

root at source:/usr/src/rsync# rsync -e ssh --copy-devices
/dev/storage1/snap-cdimages root at destination:/dev/storage1/cdimages
root at destination's password:
skipping non-regular file "snap-cdimages"


##########

So in the very end, one modul not being able to compile at all.

The other modul just seems not to work.

Does anyone have some hint how to make it working ? Also running an
older version of rsync would be ok.

Or also advices about other solutions on how to sync two devices without
need to copy the entire data again if just a part was changed.

Thank you very much

Greetings
Oliver









-- 
Mit freundlichen Gruessen / Best regards

Oliver Dzombic
IP-Interactive

mailto:info at ip-interactive.de

Anschrift:

IP Interactive UG
Zum Sonnenberg 1-3
63571 Gelnhausen

HRB 93402 beim Amtsgericht Hanau
Geschäftsführung: Oliver Dzombic

Steuer Nr.: 35 236 3622 1
UST ID: DE274086107




More information about the rsync mailing list