bug-ddrescue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-ddrescue] Fill mode does not work if input_position is greater


From: Antonio Diaz Diaz
Subject: Re: [Bug-ddrescue] Fill mode does not work if input_position is greater than file size
Date: Sat, 05 Jan 2008 19:05:26 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.7.11) Gecko/20050905

Christian Franke wrote:
In fill mode, the input file reading already wraps around at EOF. Starting at (input_position % size) would be IMO consistent with this behaviour.

From ddrescue.info:
"In fill mode the input file may have any size. If it is too small,
the data will be duplicated as many times as necessary to fill the input
buffer. If it is too big, only the needed data will be read. Note that
you may specify a starting position for the input file."

The input file reading does not wrap around at EOF. There is a difference, because the file size may be unknown before reading it.


# ddrescue -F - fill_file file.img file.log

This does not work because file.log records the original offset from bad_disk, not the resulting offset in file.img.

Oops! You are right, but I can't use the -i option to solve this because it is already used as (surprise) a starting position for the input file. Storing the offset in the logfile isn't an option either, because the same files can be used several times with different offsets.

Just now I can't think out any elegant solution, but this need to be solved soon.


Regards,
Antonio.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]