Go to file
mycroft e873dbd7ad If READ CAPACITY fails, try a READ FORMAT CAPACITIES. Separate this into
another function, always doing a page 0 MODE SENSE to get the block
descriptor if we use READ CAPACITY, and use SMS_DBD on the page 4/5 MODE
SENSE.  This does one extra command in some cases, but it separates and
simplifies the code a little.

Why do we prefer READ CAPACITY over READ FORMAT CAPACITIES?  Two reasons:
1) It's much older and is much less likely to have had its command code
abused, and is thus "safer" to try first.  2) ALL of my USB flash readers
and pen drives screw up their capacity descriptors -- mostly off-by-one
errors in the size (they return the maximum LBA number instead, a la READ
CAPACITY, which has *never* been how READ FORMAT CAPACITIES was documented
in the MMC spec), and one returns the "no media" code on slots that have
media inserted (despite returning almost-correct data otherwise)!

F*** me with a chainsaw.
2003-09-17 23:33:43 +00:00
bin Drop equal signs from rule definitions; they cause problems with "bison -y". 2003-09-17 17:33:36 +00:00
crypto More buffer size adjusted before allocation succeeded fixes. Bump to 20030917. 2003-09-17 23:19:02 +00:00
dist identify 1.6Z[A-Z] files correctly. PR lib/22815 2003-09-17 00:41:39 +00:00
distrib fix 2nd occurrence of libc version number 2003-09-16 19:26:14 +00:00
doc postfix 2.0.16 released. 2003-09-16 04:41:11 +00:00
etc add ./usr/X11R6/include/X11/pixmaps 2003-09-14 06:39:11 +00:00
games M-x sort-paragraphs 2003-09-14 21:36:51 +00:00
gnu Bump version number after parse8.359.2.8 patch has been applied. 2003-09-17 20:23:00 +00:00
include fix SA/pthread pagefault failure: 2003-09-16 13:51:31 +00:00
lib fix pt_trapuc handling errors: 2003-09-17 20:08:07 +00:00
libexec downgrade the accept error to a warning so that we don't exit if we are being 2003-09-14 22:38:23 +00:00
regress Add a test for output when using context options and -z. 2003-09-14 15:10:49 +00:00
rescue Remove file "rescue.unstripped" in "cleandir" target. 2003-07-14 09:00:33 +00:00
sbin Need to write entire sector. 2003-09-17 21:09:18 +00:00
share Add MTU and fix lower case description on MTA and MUA. 2003-09-16 07:29:31 +00:00
sys If READ CAPACITY fails, try a READ FORMAT CAPACITIES. Separate this into 2003-09-17 23:33:43 +00:00
tools If SIZE_MAX is not defined, but SIZE_T_MAX is defined (e.g. FreeBSD), 2003-08-27 18:33:26 +00:00
usr.bin redo the previous in a different way; use vm_map_min/max macros. 2003-09-17 22:06:50 +00:00
usr.sbin Remove the names of arguments from function prototypes. 2003-09-17 13:27:42 +00:00
x11 Add more utils from config/*: 2003-09-15 08:31:01 +00:00
BUILDING Backout the previous commit 2003-08-19 12:53:30 +00:00
Makefile netbsd.org->NetBSD.org 2003-07-26 17:06:22 +00:00
Makefile.inc don't set KERNSRCDIR here; pull in <bsd.kernobj.mk> if you need it 2002-04-10 14:53:43 +00:00
UPDATING mention that you *need* COMPAT_16 before building. 2003-09-06 22:12:42 +00:00
build.sh Pass '-de' to make(1) to get the expected behavior ("failed target" and 2003-09-10 18:05:52 +00:00