diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2011-06-20 19:10:42 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2011-06-20 19:10:42 +0000 |
commit | 7524ae50770c7f7b472558d9bfa36036d44ae25f (patch) | |
tree | dd07103a3e239beae6b34f0b77fe2fa9c546c042 /usr.bin/aucat | |
parent | 1997f5089949283305da3e710ffc85a38883e10f (diff) |
MBR_read() can be reading from a file as well as a raw partition.
And files can be smaller (e.g. 512 bytes like /usr/mdec/mbr) than
a disk sector (e.g. 4096 bytes on pirofti's external disk drive).
So relax the length test on the read() result to < DEV_BSIZE (the
amount of data we actually want) instead of < secsize (the minimum
size that read() will accept).
'fdisk -e' and 'fdisk -i' now work on devices with sector sizes
greater than DEV_BSIZE.
Diffstat (limited to 'usr.bin/aucat')
0 files changed, 0 insertions, 0 deletions