On Mon, Apr 28, 2008 at 07:18:05AM +0300, Shachar Shemesh wrote: > Robin Lee Powell wrote: > > On Mon, Apr 28, 2008 at 12:44:10AM +0300, Shachar Shemesh wrote: > > > >> o Using the later, I find it hard to believe that it > >> actually provides rsync friendliness. In particular, > >> does it provide rsync friendliness if the change (not at > >> the end of the file) caused a modification to the file > >> size? > >> > > > > OK, here's what I did: > > > > dd if=/dev/zero of=test_long1 bs=1M count=16 > > dd if=/dev/urandom of=test_rand_1m bs=1M count=1 > > cat test_long1 test_rand_1m >test_long2 > > cat test_rand_1m test_long1 >test_long3 > > cat test_rand_1m test_long1 test_rand_1m >test_long4 > > > > > > > So yeah, it appears to work. If you want me to test something else, > > let me know. > > > Your change is block aligned. Try a change that is one byte long.
How about 73? Surely not a block aligment. :D dd if=/dev/urandom of=test_rand_wierd bs=1 count=73 cat test_rand_wierd test_long1 >test_wierd1 cat test_rand_wierd test_long1 >test_wierd2 cat test_rand_wierd test_long1 test_rand_wierd >test_wierd3 -rw-r--r-- 1 rlpowell users 16777216 Apr 27 17:06 SfNM,dlfBajg2NiV0YzRJQz4 -rw-r--r-- 1 root root 16777289 Apr 27 22:29 PBSDF8bMYicaImaAyx5XmPZc -rw-r--r-- 1 root root 16777289 Apr 27 22:29 1m3WqxLQu5JtWXHswzHwKeRI -rw-r--r-- 1 root root 16777362 Apr 27 22:29 I8DD-PtO14RhUyy6CBB5rWtj cp SfNM,dlfBajg2NiV0YzRJQz4 /tmp/target rsync --stats --no-whole-file PBSDF8bMYicaImaAyx5XmPZc /tmp/target [snip] sent 16546 bytes received 24607 bytes 82306.00 bytes/sec total size is 16777289 speedup is 407.68 For 1m3WqxLQu5JtWXHswzHwKeRI: sent 20642 bytes received 24607 bytes 90498.00 bytes/sec total size is 16777289 speedup is 370.78 For I8DD-PtO14RhUyy6CBB5rWtj: sent 20715 bytes received 24607 bytes 90644.00 bytes/sec total size is 16777362 speedup is 370.18 -Robin ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Rsyncrypto-devel mailing list Rsyncrypto-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rsyncrypto-devel