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: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] QAContact: [EMAIL PROTECTED] 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. -- To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html