Incorrect Total File Size

Wayne Davison wayned at samba.org
Mon Apr 28 02:08:42 GMT 2008


On Fri, Apr 18, 2008 at 08:42:28AM -0700, Nittany Jim wrote:
> The source file is 36412008 bytes (I confirmed this), yet rsync thinks
> it is 38595728 bytes.

The total file size comes from the sum of all the st_size values
returned by stat().  If it is inaccurate, I'd suggest checking if the
value is wrong by checking what stat() returns.  e.g.:

    perl -e 'print((stat("/some/file"))[7], "\n")'

..wayne..


More information about the rsync mailing list