samba-bugs@samba.org
2005-Feb-25 00:01 UTC
[Bug 2389] New: block/character devices on Solaris yield wacky rsync stats
https://bugzilla.samba.org/show_bug.cgi?id=2389 Summary: block/character devices on Solaris yield wacky rsync stats Product: rsync Version: 2.6.4 Platform: All OS/Version: Solaris Status: NEW Severity: normal Priority: P3 Component: core AssignedTo: wayned@samba.org ReportedBy: woodd@deshaw.com QAContact: rsync-qa@samba.org The problem is easy to re-produce: bsqa1.nyc:/tmp/rsync/test # ls -al foo crw-r----- 1 root sys 85,16554 Oct 6 2003 foo bsqa1.nyc:/tmp/rsync/test # /tmp/rsync/bin/rsync --archive -v /tmp/rsync/test/ master:/tmp/rsync/test/ building file list ... done ./ foo sent 89 bytes received 32 bytes 80.67 bytes/sec total size is 2147483647 speedup is 17747798.74 Notice the absurdly large "total size". According to the Solaris stat() man page: st_size For regular files, this is the address of the end of the file. For block special or character special, this is not defined. See also pipe(2). I'll attach a patch I've been using for a while now; basically, I wrap stat() and set st_size to zero for block/character devices. David -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug, or are watching the QA contact.