bug-ddrescue
[Top][All Lists]
Advanced

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

Re: [Bug-ddrescue] direct disk access will not read partial sector


From: Antonio Diaz Diaz
Subject: Re: [Bug-ddrescue] direct disk access will not read partial sector
Date: Wed, 28 Nov 2012 20:54:02 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.7.11) Gecko/20050905

Hello Scott,

Scott Dwyer wrote:
I do not know if this would be considered a bug, or just the nature of the direct disk access. When using the -d option, ddrescue will not attempt to read data that does not start or end on a sector boundary.

I thinh it is the nature of direct disk access. The kernel does not accept such partial sector reads.

Of course partial reads could be faked by reading the whole sector and writing only the requested part. AFAIK neither linux nor glibc implement this with direct disk access. I am not sure if it would be a good idea for ddrescue to implement it or not. It may mean reading the same sector more than once in extreme cases of domain fragmentation. But I guess such domains are even less normal that what you are doing. :-)


Regards,
Antonio.



reply via email to

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