bug-ddrescue
[Top][All Lists]
Advanced

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

Re: [Bug-ddrescue] Feature request: --direct for output file in fill mod


From: Antonio Diaz Diaz
Subject: Re: [Bug-ddrescue] Feature request: --direct for output file in fill mode
Date: Thu, 10 Jan 2008 02:06:38 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.7.11) Gecko/20050905

Christian Franke wrote:
when using --fill=- to force reallocation of bad disk blocks, write behind buffering should be disabled.

Therefore, it would make sense to allow "-d, --direct" in fill mode. It should set O_DIRECT for the output file in this case.

I think buffered write is not a problem if followed by a call to fsync, as ddrescue does.

OTOH, Linus hates O_DIRECT for writing http://lkml.org/lkml/2007/1/11/129 , and I suppose he knows more about it than me.


Regards,
Antonio.




reply via email to

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