Hi,
I rebased rw-devices patch for rsync last weekend. Seems to me it works
"incrementally". Attached are
* six git commits, or
* one complete patch
on top of current development rsync branch (master branch commit
60ef39705797c9df7069297eb4ed5feab5e88f29).
bobek:/data/soft/rsync/rsync# dd if=/dev/urandom of=/dev/mapper/vg-pokus1
dd: writing to `/dev/mapper/vg-pokus1': No space left on device
65537+0 records in
65536+0 records out
33554432 bytes (34 MB) copied, 6.53098 s, 5.1 MB/s
bobek:/data/soft/rsync/rsync# dd if=/dev/mapper/vg-pokus1
of=/dev/mapper/vg-pokus2
65536+0 records in
65536+0 records out
33554432 bytes (34 MB) copied, 2.58308 s, 13.0 MB/s
bobek:/data/soft/rsync/rsync# dd if=/dev/urandom bs=1M seek=16 count=1
of=/dev/mapper/vg-pokus2
1+0 records in
1+0 records out
1048576 bytes (1.0 MB) copied, 0.147337 s, 7.1 MB/s
bobek:/data/soft/rsync/rsync# ./rsync --rsync-path\="$PWD/rsync" -v
--bwlimit=100 --progress --rw-devices /dev/mapper/vg-pokus1 root at
localhost:/dev/mapper/vg-pokus2
vg-pokus1
33,554,432 100% 3.14MB/s 0:00:10 (xfr#1, to-chk=0/1)
sent 1,076,932 bytes received 40,593 bytes 89,402.00 bytes/sec
total size is 33,554,432 speedup is 30.03
Have this patch any chance to get between rsync-patches?
I just looked into http://gitweb.samba.org/?p=rsync-patches.git;a=tree
and copy-devices.diff and write-devices.diff are in it.
Maybe rw-devices patch can replace these two.
I think a group of users want to use rsync to copy disk images.
Scenario: I want to virtualize some physical machine:
* dd a physical dirty disk image from live system to target system,
* stop the machine and boot into live system (r.g. System Rescue CD)
* rsync disk changes from unmounted clean filesystems to target
system,
* mabe make some changes (fstab,...)?
* start a new virtual machine
I think rsync can be interesting in similar scenarios.
Regards
--
Zito
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-The-patch-copy-devices.diff-applied.patch
Type: text/x-diff
Size: 4547 bytes
Desc: not available
URL:
<http://lists.samba.org/pipermail/rsync/attachments/20111128/8e24b3ea/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-The-patch-write-devices.diff-applied.patch
Type: text/x-diff
Size: 5969 bytes
Desc: not available
URL:
<http://lists.samba.org/pipermail/rsync/attachments/20111128/8e24b3ea/attachment-0001.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-write-devices.diff-fix-device-size-determination.patch
Type: text/x-diff
Size: 1262 bytes
Desc: not available
URL:
<http://lists.samba.org/pipermail/rsync/attachments/20111128/8e24b3ea/attachment-0002.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-Joined-copy-write-devices-into-rw-devices.patch
Type: text/x-diff
Size: 5996 bytes
Desc: not available
URL:
<http://lists.samba.org/pipermail/rsync/attachments/20111128/8e24b3ea/attachment-0003.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-Fixed-handling-of-block-dev-size-everywhere.patch
Type: text/x-diff
Size: 7080 bytes
Desc: not available
URL:
<http://lists.samba.org/pipermail/rsync/attachments/20111128/8e24b3ea/attachment-0004.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0006-Handle-symlink-on-source-device.patch
Type: text/x-diff
Size: 743 bytes
Desc: not available
URL:
<http://lists.samba.org/pipermail/rsync/attachments/20111128/8e24b3ea/attachment-0005.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rw-devices-60ef397.diff
Type: text/x-diff
Size: 13080 bytes
Desc: not available
URL:
<http://lists.samba.org/pipermail/rsync/attachments/20111128/8e24b3ea/attachment.diff>