summaryrefslogtreecommitdiff
path: root/sys/scsi/sd.c
AgeCommit message (Expand)Author
2007-02-21Don't unconditionally spin up SDEV_UMASS devices. They almostKenneth R Westerback
2007-02-12Don't need a 'return' just before exiting a function.Kenneth R Westerback
2007-02-03Make comment match code. ok pedroAlexander Bluhm
2006-12-21Fix some comment typos. 'immediatly' -> 'immediately', 'tranfer' ->Kenneth R Westerback
2006-12-12Give the SCSI layer the ability to requeue i/o's rejected by a driverKenneth R Westerback
2006-11-28rename scsibus_attach_args to scsi_attach_args. this can help avoidDavid Gwynne
2006-11-27more magic removalBob Beck
2006-11-27get rid of the rest of the asc/ascq magic codes in scsiBob Beck
2006-10-07make cd-roms retry forever while the device indicates that it isBob Beck
2006-07-29The version field of scsi_inquiry_data is not a simple numeric valueKenneth R Westerback
2006-07-23remove some scsi ioctls, most importantly the ones that can reprobe theDavid Gwynne
2006-07-13Eliminate scsi_link field 'scsi_version' and just use the INQUIRY dataKenneth R Westerback
2006-07-11the scsi_link structure contained a copy of the inquiry flags and the wholeDavid Gwynne
2006-05-18Test the state of a disk *after* spinning it up and not before. ThisKenneth R Westerback
2006-05-11Zap trailing whitespace.Kenneth R Westerback
2006-03-15Nuke dk_establish(), no longer used.Miod Vallat
2006-03-05Remove NetBSDism NRND. Pointed out by Mickey.Kenneth R Westerback
2006-03-04Typos grab bag of the month, eyeballed by jmc@Miod Vallat
2006-01-21Invoke disk_detach() and related cleanup work in detach(), rather thanMiod Vallat
2005-11-17Don't forget to device_unref() in sdclose() if sdlock() fails; ok krw@Miod Vallat
2005-11-17Use sectors as the size units for the RAW_PART (i.e. 'c') partition inKenneth R Westerback
2005-11-13Allow removable disks to be spun up if they ask for initializationKenneth R Westerback
2005-11-13Use scsi_delay() instead of delay() when waiting for scsi disk toKenneth R Westerback
2005-11-07Death to superfluous verbiage. Suppress errors when getting the parametersKenneth R Westerback
2005-10-10Make some panic messages more useful.Kenneth R Westerback
2005-09-19Use variable to eliminate repeated calculation. More readable. NoKenneth R Westerback
2005-09-11Simplify code by changing struct scsi_mode_sense_buf{ union {}Kenneth R Westerback
2005-09-11Some UMASS devices blow up if MODE SENSE buffer length is 0 (aka 256).Kenneth R Westerback
2005-09-08free(NULL, ...) is not safe in the kernel. So check for NULL'nessKenneth R Westerback
2005-08-27Put in missing parenthesis and thus always passKenneth R Westerback
2005-08-24Test xs->bp before de-referencing it. Initialize it to NULL, not 0.Kenneth R Westerback
2005-08-23Move uses of struct scsi_mode_sense_buf (255 bytes each) from theKenneth R Westerback
2005-08-23Spin up sd units even if TEST_UNIT_READY says they're ready.Kenneth R Westerback
2005-08-21Some devices go berserk when asked for mode sense pages they don'tKenneth R Westerback
2005-08-18Only allow blocksizes that are powers of 2 between 512 and 64K. An sdKenneth R Westerback
2005-08-17Use defines for disk mode page codes. Check returned mode pages toKenneth R Westerback
2005-08-12Move disk mode page structure declarations out of scsi_disk_pagesKenneth R Westerback
2005-07-30Use the blocksize returned from scsi_size() in preference to allKenneth R Westerback
2005-07-05Since scsi_link now includes a copy of the INQUIRY data, don't keep aKenneth R Westerback
2005-07-02Remove unused cd_softc.name field. Use the saved INQUIRY data inKenneth R Westerback
2005-07-02Remove unused struct sd_ops.Kenneth R Westerback
2005-07-02Don't use READ FORMAT CAPACITIES to determine the size of ATAPI sdKenneth R Westerback
2005-05-03sdstrategy() shouldn't use values in disklabel until SDEV_MEDIA_LOADEDKenneth R Westerback
2005-05-01Allow RAW_PART+S_IFCHR device opens to succeed even if media notKenneth R Westerback
2005-04-06De-register scsi.Kenneth R Westerback
2005-04-05Clean up some logic. Use better error handling for sd devices. BeKenneth R Westerback
2005-03-30Comment typo, minor knf. No code change.Kenneth R Westerback
2005-03-25Since START_STOP is an optional command that a device need notKenneth R Westerback
2005-02-27If test_unit_ready() in sdattach() returns EIO, try to spin up unitKenneth R Westerback
2004-05-28Clean up sense error logic and printing a bit, partly inspired byKenneth R Westerback