#848348 tar: shows strange error message if there is no space left on device

Package:
tar
Source:
tar
Description:
GNU version of the tar archiving utility
Submitter:
Askar Safin
Date:
2024-01-02 04:00:08 UTC
Severity:
normal
#848348#5
Date:
2016-12-16 14:03:39 UTC
From:
To:
I wanted to create archive. I typed:

$ sudo tar --one-file-system --same-owner --numeric-owner -cpf /tmp/x.tar .

And I saw:

tar: /tmp/x.tar: Wrote only 8192 of 10240 bytes
tar: Error is not recoverable: exiting now

Then I discovered that tar filled all space on destination file system. So, error message is misleading. tar should say: no space left on device.