Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 9067 - Wrong "File shrank by x bytes; padding with zeros" message
Wrong "File shrank by x bytes; padding with zeros" message
Product: Red Hat Raw Hide
Classification: Retired
Component: tar (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Bernhard Rosenkraenzer
Depends On:
  Show dependency treegraph
Reported: 2000-02-02 08:19 EST by Jonathan Kamens
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2000-02-02 08:19:32 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Jonathan Kamens 2000-02-02 08:19:32 EST
I've been getting errors like this regularly from the tar that's running my
nightly backup:

tar: /c/oldroot.tgz: File shrank by 182917781 bytes; padding with zeros

I'm using tar-1.13.17-1 with a local patch to ignore some additional failed
stat()s whtn when --ignore-failed-read is specified; I'm fairly certain
that patch doesn't have anything to do with the error shown above.

Until today, the error always happened with files on a read-only NTFS
partition, so I assumed that it was related to a bug in the NTFS filesystem
code, rather than a bug in tar.  But the file /c/oldroot.tgz shown above is
in fact on an ext2 partition, so I cannot help but suspect that there's a
bug in tar that is sometimes causing it to believe that a file has shrunk
when it hasn't.

The file /c/oldroot.tgz hasn't changed in a long time.

Note that I'm using --listed-incremental for my backups; that may or may
not be relevant to this bug.
Comment 1 Bernhard Rosenkraenzer 2000-08-02 07:52:53 EDT
This should be fixed in the current tar.

Note You need to log in before you can comment on or make changes to this bug.