summaryrefslogtreecommitdiff
path: root/sys/scsi/sd.c
AgeCommit message (Expand)Author
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
2004-05-17Elminate SCSIRET_* synonyms for EJUSTRETURN and ERESTART by usingKenneth R Westerback
2004-05-09Add missing <cr>'s to various SC_DEBUG() calls, along with a few otherKenneth R Westerback
2004-02-21Eliminate the quirks SDEV_NOSTARTUNIT, UMASS_QUIRK_NO_START_STOP, andKenneth R Westerback
2004-02-15new arg to disk_unbusy, to record separate read/write statistics.Ted Unangst
2004-01-25Be less verbose in sdattach() by suppressing the display of detailedKenneth R Westerback
2004-01-25Use %lu to print u_long values, not %d or %ld. Fixes display ofKenneth R Westerback
2004-01-05Don't issue PREVENT_ALLOW commands to disk devices during sdopen() orKenneth R Westerback
2003-06-24try to devise drive's rpm and default to 3600 should we fail miserably.Michael Shalayeff
2003-05-21Make sure that the first scsi command issued to a device duringKenneth R Westerback