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

Reply via email to