diff options
author | 2005-07-02 03:49:47 +0000 | |
---|---|---|
committer | 2005-07-02 03:49:47 +0000 | |
commit | c2e832f7131c104379a5c6042fff0eab141b4ec8 (patch) | |
tree | c860dd4f51359bab090175f506c6bfb6068532fc /sys/dev/pci/if_em.c | |
parent | sync (diff) | |
download | wireguard-openbsd-c2e832f7131c104379a5c6042fff0eab141b4ec8.tar.xz wireguard-openbsd-c2e832f7131c104379a5c6042fff0eab141b4ec8.zip |
Don't use READ FORMAT CAPACITIES to determine the size of ATAPI sd
devices. Use READ CAPACITY like NetBSD, FreeBSD, Linux and OpenSolaris
do. Well, NetBSD keeps READ FORMAT CAPACITIES as a backup. Fixes
problems with devices (such as my IBM USB Memory Key) which return
block counts that are off by one for READ FORMAT CAPACITIES.
This eliminates the significant difference between sd_atapi.c and
sd_scsi.c so merge sd_scsi.c into sd.c and just be careful to mark
ATAPI removable devices as both SDEV_NOSYNCCACHE and unable to return
MODE SENSE page 4 info.
All geometry faking is now in one place. Where it can be 'improved'.
sd_scsi.c, sd_atapi.c and atapi_disk.h will be removed as a result.
Diffstat (limited to 'sys/dev/pci/if_em.c')
0 files changed, 0 insertions, 0 deletions