summaryrefslogtreecommitdiff
path: root/sys/scsi/sd.c
AgeCommit message (Expand)Author
2013-10-03Print daddr_t variables with %lld, u_int64_t variables with %llu.Kenneth R Westerback
2013-10-02Use u_int64_t instead of daddr_t parameters to sd_cmd_rw*() functions.Kenneth R Westerback
2013-09-19Tweak types to keep daddr_t address and sector address separate.Kenneth R Westerback
2013-09-15Use DL_SECTOBLK() and DL_BLKTOSEC() to clarify code and removeKenneth R Westerback
2013-06-11final removal of daddr64_t. daddr_t has been 64 bit for a long enoughTheo de Raadt
2012-12-19Temporarily bring back the shutdown hook, but only use it to flush the diskMark Kettenis
2012-10-15In DVACT_SUSPEND, do a flush of the disk. We do this in DVACT_POWERDOWNTheo de Raadt
2012-10-08Revamp the sequences for suspend/hibernate -> resume so that the codeTheo de Raadt
2012-07-09Revert previous.Kenneth R Westerback
2012-07-08Return EROFS when a read-write mount of a read-only sd(4) deviceKenneth R Westerback
2012-06-10Do NOT make all check condition results report EIO. Only use EIOKenneth R Westerback
2011-10-10Put the drive in standby mode when we're powering down the machine.Mark Kettenis
2011-07-18Fix an off-by-1 error and a 32-bit integer arithmetic overflow bugMatthew Dempsky
2011-07-12fix some notyet codeDavid Gwynne
2011-07-12now that we know if a disk is thin provisioned (or an ssd), we can chooseDavid Gwynne
2011-07-11ask the disk about unmap (read trim) parameters. check if we have theDavid Gwynne
2011-07-11disks report trim^Wunmap^Wif theyre thin provisioned via a bit inDavid Gwynne
2011-07-06Eliminate redundant buf validation checks in xxstrategy() methods nowMatthew Dempsky
2011-07-03Remove config_activate() and DVACT_ACTIVATE. PCMCIA's the only thingMatthew Dempsky
2011-06-30Refactor some common open/close/detach disk driver code intoMatthew Dempsky
2011-06-19Use disk_lock_nointr() in the xxclose() routines so that they cannotTheo de Raadt
2011-06-19Use disk_lock/disk_unlock directly and in the same way in these drivers,Theo de Raadt
2011-06-05Drop kernel support for the useless DIOCWLABEL ioctl and prune a lotMatthew Dempsky
2011-06-03Get rid of the wlabel argument to bounds_check_with_label(). It'sMatthew Dempsky
2011-05-31Change a few of the more common disk drivers (sd, cd, wd, rd, and vnd)Matthew Dempsky
2011-04-08Since we don't print "drive offline" anymore, there is no need toKenneth R Westerback
2011-04-07Do not use NULL in integer comparisons. No functional change.Miod Vallat
2011-04-07'disk offline' is not helpful. Silence is golden.Kenneth R Westerback
2011-03-31- use nitems(); no binary change.Jasper Lievisse Adriaanse
2011-03-17use dma_alloc/dma_free instead of malloc to allocate buffers which needTheo de Raadt
2011-02-21If a spin up command can't be started becaause of a lack of openings,Kenneth R Westerback
2010-12-24Have sd(4) devices check for and respect read-only information theKenneth R Westerback
2010-09-24init err to 0 in sd_get_parms to avoid confusion when checking rigidDavid Gwynne
2010-09-22All users of physio(9) now pass NULL as the buf pointer argument, soMatthew Dempsky
2010-09-21Add a real DIOCGPDINFO, allowing access to the physical informationKenneth R Westerback
2010-09-20bufq_drain() does not need to be done in deactivate; we only needTheo de Raadt
2010-09-12Garbage collect rot_rate from disk_parms. No longer in disk label so noKenneth R Westerback
2010-09-11Be more ruthlessly consistent in variable names for blk/block ==Kenneth R Westerback
2010-09-10scsi_xsh_del the io handler in deactivate to prevent it from being run onDavid Gwynne
2010-09-08Introduce a disk_lookup() function which calls device_lookup(), beforeJoel Sing
2010-09-08Store a struct device pointer within struct disk and populate this whenJoel Sing
2010-09-01Restore compilability after bufq changesMiod Vallat
2010-09-01make struct bufq a member of the softc for devices that use it,David Gwynne
2010-08-31in the activate function, order the DVACT_ functions in the order theyTheo de Raadt
2010-08-28Garbage collect struct dkdriver.Matthew Dempsky
2010-08-03Don't attempt to set the read or write caches on usb disks. ItKenneth R Westerback
2010-07-07Pull out disk sort. I committed the wrong version of the diff and itMarco Peereboom
2010-07-06Enable FIFO IO for sd devices. This time committed against the actual tree.Marco Peereboom
2010-07-03Stop disk on suspend and start it again upon resume. Gets rid of the loudMark Kettenis
2010-07-01Die struct scsi_device! Die! Instead, save a pointer to the routineKenneth R Westerback