Re: Tar error code
- From: Nix <nix-razor-pit@xxxxxxxxxxxxx>
- Date: Sun, 22 Apr 2007 00:06:36 +0100
On 21 Apr 2007, Martin Gregorie said:
I've noticed over the last few days that GNU tar 1.15.1 is returning termination code 141 after my nightly backup run.
Code 141 isn't listed in either the man page or the info documentation
set.
This is WIFSIGNALED(); to determine the signal, logical-and with 0x7f.
This process has caught a signal 13, SIGPIPE. I'd guess your tar is
piping something into a pipe that is being severed?
and there seem to be no Linux definitions for error codes above 131 and I can't find anything in the tar documentation about the
error code.
Exit codes above 128 being signals are a Unix de-facto standard
(although POSIX doesn't guarantee it, merely that the WIFSIGNALED() and
WTERMSIG() macros return appropriately).
All backups since the 17th have been omitting everything in the last
several files (like everything I back up from /var) and all have the
same size - 4294967295 bytes (2^32-1), so it looks like I've hit some
fundamental tar limit.
Failure in write() should cause tar to print info saying how far it
wrote and then abort().
I'm running standard 32 bit FC6 and backing up to a VFAT USB drive
Ah. The maximum length of a file on a FAT-class filesystem is 2^32-1
bytes (the actual code implementing this in fs/fat/ is rather hard
to find but the restriction is real and unfixable).
I'm surprised to see tar getting hit with an EPIPE here, though. Are
you writing a archive to stdout and then redirecting it to the
filesystem, or something like that? I'd expect to see EINVAL or EFBIG
or ENOSPC or even ERANGE, but not EPIPE, at least if tar were writing
directly to the FAT fs.
Have I hit a backup FS limitation or some internal tar limitation?
The former.
What is the best workaround for this problem?
Don't use VFAT, or split your tarballs before 4Gb.
--
`In the future, company names will be a 32-character hex string.'
--- Bruce Schneier on the shortage of company names
.
- Follow-Ups:
- Re: Tar error code
- From: Martin Gregorie
- Re: Tar error code
- References:
- Tar error code
- From: Martin Gregorie
- Tar error code
- Prev by Date: Re: NTP losing sync
- Next by Date: Re: Barclays online banking
- Previous by thread: Re: Tar error code
- Next by thread: Re: Tar error code
- Index(es):
Relevant Pages
|
|