rsync 2.5.x doesn't like iso uploading with -z option

Joseph Cheek joseph at
Fri Sep 13 06:44:01 EST 2002

...but 2.4.3 worked fine.  this is linux 2.4.18 with glibc 2.2.5 and 
libz 1.1.4, if it matters, on both source and dest.

apparently something about trying to send a file ending with .iso gives 
rsync a fit if the -z [compress] option is used.

$ time rsync -Pzv --stats cd1_en_binary.iso
rsync: error writing 16385 unbuffered bytes - exiting: Connection reset 
by peer
rsync error: error in rsync protocol data stream (code 12) at io.c(463)
Command exited with non-zero status 12
0.30user 0.50system 0:39.23elapsed 2%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (254major+648minor)pagefaults 0swaps

if no -z, things go fine:

$ time rsync -Pv --stats cd1_en_binary.iso
   616431616 100%  190.94kB/s    0:52:32
rsync[8871] (sender) heap statistics:
  arena:          70552   (bytes from sbrk)
  ordblks:            3   (chunks not in use)
  smblks:             0
  hblks:              1   (chunks from mmap)
  hblkhd:        266240   (bytes from mmap)
  usmblks:            0
  fsmblks:            0
  uordblks:       58120   (bytes used)
  fordblks:       12432   (bytes free)
  keepcost:        8112   (bytes in releasable chunk)

Number of files: 1
Number of files transferred: 1
Total file size: 616431616 bytes
Total transferred file size: 616431616 bytes
Literal data: 85710848 bytes
Matched data: 530720768 bytes
File list size: 36
Total bytes written: 85851105
Total bytes read: 197935

wrote 85851105 bytes  read 197935 bytes  25499.79 bytes/sec
total size is 616431616  speedup is 7.16
76.71user 11.40system 56:13.93elapsed 2%CPU (0avgtext+0avgdata 
0inputs+0outputs (243major+599minor)pagefaults 0swaps

this has been verified on two different send/receive host combinations, 
using both 2.5.0 and 2.5.5, whether or not *.iso was listed in the "dont 
compress" section of rsyncd.conf.  renaming both source and dest files 
to *.is0 [zero] seems to work fine; i can sync *.is0 files just fine 
with -z [and it produces quite a speedup too vs. no compression!].

btw, thanks tridge and folks for such a handy util.


Joseph Cheek, CTO and Founder, Lycoris
Lycoris Desktop/LX: Familiar.  Powerful.  Open.
joseph at,
+1 425 413-9521 voice, +1 425 671-0504 fax

More information about the rsync mailing list