summaryrefslogtreecommitdiffstats
path: root/usr.bin/diff/diffdir.c
diff options
context:
space:
mode:
authorkrw <krw@openbsd.org>2005-06-15 03:06:47 +0000
committerkrw <krw@openbsd.org>2005-06-15 03:06:47 +0000
commit74052c9b293e0dfccdcb1307d157515ec71da21e (patch)
tree8678ccb357cf84ce58122efdbab153dd08be557a /usr.bin/diff/diffdir.c
parentTypo. 'dp->cyls' -> 'dp->sectors'. (diff)
downloadwireguard-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