Subject: CVS commit: [netbsd-3] src/sys/dev/scsipi
To: None <>
From: Jeff Rizzo <>
List: source-changes
Date: 12/29/2005 15:20:29
Module Name:	src
Committed By:	riz
Date:		Thu Dec 29 15:20:29 UTC 2005

Modified Files:
	src/sys/dev/scsipi [netbsd-3]: sd.c

Log Message:
Pull up following revision(s) (requested by bouyer in ticket #1045):
	sys/dev/scsipi/sd.c: revision 1.242
Some USB devices reports themselves as removable, but have no door and
so don't support the SCSI_PREVENT_ALLOW_MEDIUM_REMOVAL command.
When an "Illegal field in CDB" is reported for this command, mark the
device as non-removable (which is always true for USB keys from the SCSI
point of view), print a message and ignore the error.
For DIOCLOCK, return ENOTTY if the device is not removable instead of
trying a command which will fail.
Fix a problem reported by Hubert Feyrer for some USB umass devices, patch
tested by him.

To generate a diff of this commit:
cvs rdiff -r1.237.2.1 -r1.237.2.2 src/sys/dev/scsipi/sd.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.