summaryrefslogtreecommitdiff
path: root/sys/scsi/sd.c
AgeCommit message (Expand)Author
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
2003-05-18constify the quirck tables and fix the scsi_inqmatch() proto accordingly; krw...Michael Shalayeff
2003-05-16Provide most if not all the support required for the usb changes NateKenneth R Westerback
2003-05-06sprintf -> snprintf. strncpy -> bcopy since d_packname is not really aKenneth R Westerback
2003-04-06The disklabel fields d_packname and d_typename are not null terminated stringsKenneth R Westerback
2002-12-30Add new parameter to scsi_test_unit_ready(): retries number.Alexander Yurchenko
2002-09-04Add support for RBC (simplified direct) devices.Thierry Deval
2002-08-12initialize part earlier in case of debugging.Federico G. Schwindt
2002-06-09More (the last round?) of splasserts and splbio around biodone.Artur Grabowski
2002-03-14First round of __P removal in sysTodd C. Miller
2001-10-08Add a new quirk type, SDEV_NOCDB6, some USB devices like ATAPIDale Rahn
2001-08-26remove useless INUSE references from scsi_xfer->flags; art@ miod@ ok.Federico G. Schwindt
2001-08-06Remove legacy __BDEVSW_DUMP_OLD_TYPE code.Miod Vallat
2001-06-22KNFTheo de Raadt
2000-12-13move back to unlimitted openingsMichael Shalayeff
2000-10-13Matthew Jacob <mjacob@feral.com>:Michael Shalayeff
2000-09-21do not limit openings to defined SDOUTSTANDING value of 4, since many control...Michael Shalayeff
2000-09-20make SDOUTSTANDING redefinable, since some controller can handle more than 4 ...Michael Shalayeff