freebsd-dev/sys
Warner Losh 76ddd31f5a Some USB mass storage devices return the number of sectors in response
to a READ_CAPACITY request rather than the maximum sector (off by one
problem).  This causes a huge cascade of errors as the geom tasting
code tries to read the last sector (which isn't really there in the
face of this error).  automated tools that manipulate disk labels and
such also have issues.

Create a new quirk READ_CAPACITY_OFFBY1 and add a quirk for the
SanDISK ImageMate that I have that suffers from this problem (the
SDDR-31).  It intercepts the READ_CAPACITY response and adjusts it
from number of sectors to max sector for devices with this quirk.

Reading the Linux source suggests that there are a host of
other devices with this issue, including iPods and some popular
cameras.  I've not added quirks for them, since I don't have the
devices in front of me to test.
2007-02-27 22:33:50 +00:00
..
amd64 MFP4: 115094 2007-02-27 02:08:01 +00:00
arm Use tsleep() rather than msleep() with a NULL mtx. 2007-02-27 17:15:39 +00:00
boot Fix the cdboot twiddle display. 2007-02-23 21:07:44 +00:00
bsm Merge OpenBSM 1.0 alpha 12 import changes into src/sys/bsm. New events 2006-09-25 12:22:07 +00:00
cam Use tsleep() rather than msleep() with a NULL mtx. 2007-02-27 17:15:39 +00:00
coda coda_vptofh is never defined nor used. 2007-02-02 15:47:28 +00:00
compat MFp4 (110541): 2007-02-25 12:43:07 +00:00
conf Add GEOM_MULTIPATH so LINT will build. 2007-02-27 12:05:25 +00:00
contrib o break newbus api: add a new argument of type driver_filter_t to 2007-02-23 12:19:07 +00:00
crypto Initialize T1 to silent gcc warning. 2006-10-22 02:19:33 +00:00
ddb Use FOREACH_PROC_IN_SYSTEM instead of using its unrolled form. 2007-01-17 15:05:52 +00:00
dev Some USB mass storage devices return the number of sectors in response 2007-02-27 22:33:50 +00:00
fs Use pause() rather than tsleep() on stack variables and function pointers. 2007-02-27 17:23:29 +00:00
gdb
geom Use pause() rather than tsleep() on stack variables and function pointers. 2007-02-27 17:23:29 +00:00
gnu Move vnode-to-file-handle translation from vfs_vptofh to vop_vptofh method. 2007-02-15 22:08:35 +00:00
i4b o break newbus api: add a new argument of type driver_filter_t to 2007-02-24 02:28:07 +00:00
i386 Use pause() rather than tsleep() on stack variables and function pointers. 2007-02-27 17:23:29 +00:00
ia64 Updated ia64 isa support with the new bus_setup_intr() syntax. 2007-02-24 16:56:22 +00:00
isa Use pause() rather than tsleep() on explicit global dummy variables. 2007-02-27 17:22:30 +00:00
kern Print tid's rather than thread pointers in KTR_PROC traces. 2007-02-27 18:46:07 +00:00
libkern Add strstr() function to the libkern. 2006-08-12 15:28:39 +00:00
modules First cut at GEOM based multipath. This is an active/passive{/passive...} 2007-02-27 04:01:58 +00:00
net Add three new ioctl(2) commands for bpf(4). 2007-02-26 22:24:14 +00:00
net80211 clear/reclaim challenge text when switching auth mode and operating as an ap 2007-02-04 05:49:16 +00:00
netatalk Use privilege PRIV_NET_ADDIFADDR rather than suser() to authorize 2007-02-19 22:40:02 +00:00
netatm Sweep kernel replacing suser(9) calls with priv(9) calls, assigning 2006-11-06 13:42:10 +00:00
netgraph o break newbus api: add a new argument of type driver_filter_t to 2007-02-23 12:19:07 +00:00
netinet Add INADDR_ALLRPTS_GROUP define for 224.0.0.22 for future IGMPv3 support. 2007-02-27 14:45:37 +00:00
netinet6 Fix tinderbox. ip6_mrouter should be defined in raw_ip6.c as it is 2007-02-24 21:09:35 +00:00
netipsec s,#if INET6,#ifdef INET6, 2006-12-14 17:33:46 +00:00
netipx Build ipx_ip.c only if options IPXIP is defined. No functional change. 2007-02-26 11:55:34 +00:00
netkey With exception of the if_name() macro, all definitions in net_osdep.h 2006-08-04 21:27:40 +00:00
netnatm Factor out my copyrights + licenses from Charles D. Cranor and 2007-01-08 22:30:39 +00:00
netncp Use pause() rather than tsleep() on stack variables and function pointers. 2007-02-27 17:23:29 +00:00
netsmb Backing out the wrong fix which could possibly trash the memory if devfs 2007-02-09 17:22:10 +00:00
nfs NFSv4 client: 2006-11-28 19:33:28 +00:00
nfs4client Rename some functions and variables from nfs_* to nfs4_* to avoid 2007-01-25 14:33:13 +00:00
nfsclient Use pause() rather than tsleep() on stack variables and function pointers. 2007-02-27 17:23:29 +00:00
nfsserver Move vnode-to-file-handle translation from vfs_vptofh to vop_vptofh method. 2007-02-15 22:08:35 +00:00
opencrypto
pc98 Use pause() rather than tsleep() on explicit global dummy variables. 2007-02-27 17:22:30 +00:00
pccard
pci Convert sis(4) to use its own watchdog procedure. 2007-02-24 14:27:36 +00:00
powerpc Catch up with bus_setup_intr() modification and garbage collect a 2007-02-25 15:04:08 +00:00
rpc
security More unnecessary include reduction. 2007-02-23 14:39:04 +00:00
sparc64 Use uma_set_align(). 2007-02-25 10:52:47 +00:00
sun4v o break newbus api: add a new argument of type driver_filter_t to 2007-02-23 12:19:07 +00:00
sys KASSERT fails when the condition is false, not when it is true. 2007-02-27 07:34:28 +00:00
tools Fix obvious typo (use long name if short name isn't provided). 2007-02-27 16:52:27 +00:00
ufs Account for di_blocks allocations when IN_SPACECOUNTED is set in an 2007-02-23 20:23:35 +00:00
vm Use pause() in vm_object_deallocate() to yield the CPU to the lock holder 2007-02-27 19:40:26 +00:00
Makefile o Add cam to a list of cscope dirs. 2006-11-26 18:27:16 +00:00