Re: 1.6.12: works; disk full handling

Boris Goldowsky <boris-FrUbXkNCsVf2fBVCVOL8/[email protected]>
Newsgroups gmane.comp.sysutils.backup.hdup.general
Message-ID <[email protected]>
On Wednesday, April 30, 2003, at 07:47  AM, Miek Gieben wrote:

> This is what tar does on a full disk:
> $ tar cvf trailer_final_1000_dl.mov.tar trailer_final_1000_dl.mov
> trailer_final_1000_dl.mov
> tar: trailer_final_1000_dl.mov.tar: Wrote only 2048 of 10240 bytes
> tar: Error is not recoverable: exiting now
>
>> In case it matters, I was running a local, monthly backup with -V.
>
> it's a tar thing - and difficult to detect.

I don't working on a patch, but could use some guidance on the design.

Do you currently have anything in place that looks at the output of tar 
and could detect that message?  Or could the message simply be passed 
along to hdup's standard error?

How about exit status - I assume tar exits with a non-zero status when 
it hits this unrecoverable error.  Could that be detected?

And what is the correct behavior is in this case?  It seems to require 
some manual intervention no matter what, so perhaps leaving the partial 
file there is fine as long as a loud warning is generated.  Possibly it 
should be renamed in such a way that it wouldn't be considered a 
successful run by future invocations of hdup?  What do others think it 
ought to do?

Bng
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.