[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-tar] [tar 1.23] inconsistent error messages if no space on device
From: |
Hauke Laging |
Subject: |
[Bug-tar] [tar 1.23] inconsistent error messages if no space on device |
Date: |
Tue, 12 Oct 2010 18:27:10 +0200 |
User-agent: |
KMail/1.13.5 (Linux/2.6.34-12-default; KDE/4.4.4; x86_64; ; ) |
Hello,
if tar tries to write files (in nonexistent subdirectories) to a volume with
no free space then it says:
tar: etc/joe_os11.2/joerc: Cannot open: No such file or directory
From a technical point of view this error message is not really wrong as it is
the result of a failed open() call but it is IMHO easily misunderstood as "the
file you requested to be restored is not found in the archive". And this
ambigious error message occurs only because the previously failed mkdir() call
does not cause a program abortion.
Furthermore this is inconsistent with the error message if you try to extract
a top level file:
start cmd: # LC_ALL=C tar -xf /root/tmp/test.tar userfile
tar: userfile: Cannot write: No space left on device
In this case not the open() fails (because no directory has to be created
first) but the following write().
Best regards,
Hauke
--
PGP: D44C 6A5B 71B0 427C CED3 025C BD7D 6D27 ECCB 5814
- [Bug-tar] [tar 1.23] inconsistent error messages if no space on device,
Hauke Laging <=