[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-ddrescue] Appending zeroes by seek is not working
From: |
Antonio Diaz Diaz |
Subject: |
Re: [Bug-ddrescue] Appending zeroes by seek is not working |
Date: |
Mon, 15 Dec 2014 19:32:37 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.7.11) Gecko/20050905 |
Hello Pavel,
Pavel Roskin wrote:
I tried adding zeroes to the end of a file using ddrescue, but it failed.
Just like 'seek', ddrescue does not add zeros unless it writes at least
one byte. Writing at least one byte is probably the only portable way of
extending a file.
"Empty domain" sounds more cryptic than "Nothing to do". I think it's a
regression.
"Empty domain" is the reason why there is nothing to do. So I guess I
could change the message to something like "Nothing to do; domain is
empty.".
Here's a related but different issue.
rm foo
ddrescue -o 2048 -s 1 /dev/null foo
ls -l foo
The resulting file "foo" is 0 bytes long. Apparently, the seek is never
performed because /dev/null is empty. I believe the seek should be
performed if it's explicitly requested on the command line.
It is about the same issue. If nothing is copied, the file is not extended.
Regards,
Antonio.