diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2014-05-27 12:35:41 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2014-05-27 12:35:41 +0000 |
commit | b7b1ca954f89620ce5c230f140665dbf9972a99d (patch) | |
tree | ea7a3035762e014a6250bc10614176d28c347fe6 /sys | |
parent | 71b26a1862c8d198de2b156acafe9aaa07266227 (diff) |
Where trying to pread() a single disk sector, the i/o must be for the
actual disk sector size and not DEV_BSIZE. The sector size must be
obtained via the disklabel. Larger i/o's must be multiple sectors,
so when retrying with a smaller size shrink the attempt by one sector
and not DEV_BSIZE.
Of course if your d_secsize is DEV_BSIZE, this will all be a no-op.
This does not make non-512-byte sectors work, but puts in place the
logic to get and use the disklabel info. Which makes the next diffs
bite sized and focused.
ok guenther@
Diffstat (limited to 'sys')
0 files changed, 0 insertions, 0 deletions