summaryrefslogtreecommitdiff
path: root/sys/scsi/sd.c
AgeCommit message (Expand)Author
2016-02-03When accessing the scsi link of a scsi disk, use a variable "sc_link"Alexander Bluhm
2015-06-07More damned eye searing whitespace.Kenneth R Westerback
2015-04-02use correct capitalization of 'BlackBerry'Jasper Lievisse Adriaanse
2015-03-08Fix some format specifiers in debug code.Kenneth R Westerback
2014-12-15convert bcopy to memcpy. ok dlg krwTed Unangst
2014-09-18Some disks, such as the Seagate Cheetah 73LP FC with Sun firmwareMark Kettenis
2014-09-14remove uneeded proc.h includesJonathan Gray
2014-07-12add a size argument to free. will be used soon, but for now default to 0.Ted Unangst
2014-07-10Now that sd(4) drives under softraid0 have their cache flushed whenMartin Pieuchot
2014-02-19If a disk returns a size of 0, treat it as an error to let theMartin Pieuchot
2014-02-13if an attached sd(4) is readonly, make sure it's noticable in theAlexander Hall
2013-11-01Sprinkle (long long) casts where %lld is being used to print daddr_tKenneth R Westerback
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