diff options
author | 2005-06-15 03:06:47 +0000 | |
---|---|---|
committer | 2005-06-15 03:06:47 +0000 | |
commit | 74052c9b293e0dfccdcb1307d157515ec71da21e (patch) | |
tree | 8678ccb357cf84ce58122efdbab153dd08be557a /usr.bin/diff/diffdir.c | |
parent | Typo. 'dp->cyls' -> 'dp->sectors'. (diff) | |
download | wireguard-openbsd-74052c9b293e0dfccdcb1307d157515ec71da21e.tar.xz wireguard-openbsd-74052c9b293e0dfccdcb1307d157515ec71da21e.zip |
Use scsi_size() as preferred disk size in all cases. Allow devices
using FLEX GEOMETRY mode sense page to use the existing heads *
sectors * cyls calculation if scsi_size() fails.
Fixes jolan@'s iPod Shuffle, and presumably other devices lying or
confused about their geometry and it's relation to the number of
blocks.
Also save any supplied rpm and blocksize when faking, as previous
code tried to do.
ok jolan@ fgsch@ tdeval@
Diffstat (limited to 'usr.bin/diff/diffdir.c')
0 files changed, 0 insertions, 0 deletions