[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-ddrescue] bug on non-hardbs rounded start position or size!
From: |
koll |
Subject: |
Re: [Bug-ddrescue] bug on non-hardbs rounded start position or size! |
Date: |
Tue, 02 Jun 2015 21:55:44 +0200 |
User-agent: |
Externet webmail |
Well, read and write operations are working on intervals, and those
intervals have a lower and an upper endpoint.
If we simply rounded them both down to the nearest physical sector bounds,
everything would work perfectly:
Physical sectors:
[========][========][========][========][========][========][========]
Aligned (no change):
[--requested--------)
[--floor()-ed-------)
__________[========][========]________________________________________
|
[--requested--------)
[--floor()-ed-------)
______________________________[========][========]____________________
Not-aligned:
[--requested------)
[--floor()-ed-------) |
__________[========][========]________________________________________
|
[--requested-------)
[--floor()-ed-------)
______________________________[========][========]____________________
-------------------------------------------------
Externet Webmail: http://webmail.externet.hu