Re: Tar error code



Nix wrote:

Failure in write() should cause tar to print info saying how far it
wrote and then abort().

Yes, that's what the documentation says and the absence of any diagnostic info is why I suspected a tar bug.

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.

Nope. Tar is writing to an absolute pathname based on the USB drive's mount point. So, no pipes involved unless the USB connection magic approximates some sort of pipe.

Don't use VFAT, or split your tarballs before 4Gb.

No problem. The drive shall be reformatted as ext3 now I know I can do that without breaking anything.


--
martin@ | Martin Gregorie
gregorie. | Essex, UK
org |
.



Relevant Pages

  • Re: [opensuse] Split command to burn DVD+R (file size)
    ... multi-volume tar to work in the same way as it would with a tape device ... DVD media as read write filestore but I have never suceeded with my ... Packet writing would be really nice, but again not all hardware has ... I do get an I/O error on retrieving data that looks like it is probably ...
    (SuSE)
  • Re: Request for Comments: libarchive, bsdtar
    ... In the case of GNU tar, it depends on where it is writing. ... hope that it pads when writing to a tape device, ... Removing leading `/' from member names ...
    (freebsd-arch)
  • Re: this is not a specific linux question but more of just UNIX - tar, dump, restore command questio
    ... The 2GiB issue is not a tar issue. ... Dittos for cpio. ... I think, GNU tar has some issues with long filenames, when reading non-GNU ... I am covered with pure vegetable oil and I am writing a best seller! ...
    (comp.os.linux.misc)
  • Re: Tar error code
    ... Code 141 isn't listed in either the man page or the info documentation ... Exit codes above 128 being signals are a Unix de-facto standard ... fundamental tar limit. ... or ENOSPC or even ERANGE, but not EPIPE, at least if tar were writing ...
    (uk.comp.os.linux)
  • Re: Creating a tar file with only files that have changed since a specified date
    ... Could you point me to a web site with examples? ... We have around 8gb in a compressed tar file generated last weekend. ... (using pipes to pipe through gzip) ... specified time stamp. ...
    (comp.unix.shell)