summaryrefslogtreecommitdiff
path: root/sys/dev/vnd.c
AgeCommit message (Expand)Author
2013-11-01Sprinkle (long long) casts where %lld is being used to print daddr_tKenneth R Westerback
2013-06-11final removal of daddr64_t. daddr_t has been 64 bit for a long enoughTheo de Raadt
2011-08-26Add a dmesg warning about sloppy disk I/O to vnd(4) devices to helpMatthew Dempsky
2011-07-18Revert vnd(4) to its older less strict behavior.Matthew Dempsky
2011-07-12Range check vnd_secsize, vnd_ntracks, and vnd_nsectors so that later onTheo de Raadt
2011-07-08Ack, my last change used size_t for file offsets, but size_t is onlyMatthew Dempsky
2011-07-08Refactor vnd(4) to use vn_rdwr() instead of setting up the uio/iovecMatthew Dempsky
2011-07-08Validate DISKUNIT(dev) in vndstrategy() like we do in otherMatthew Dempsky
2011-07-08Add a vndencryptbuf() function, and refactor vndstrategy() slightly toMatthew Dempsky
2011-07-06vndsize() can just return -1; we don't support swapping to vndMatthew Dempsky
2011-07-06Compact the vnd sc_flags bits.Matthew Dempsky
2011-07-06Eliminate some sanity checks in vndstrategy() that are now handled byMatthew Dempsky
2011-07-06vndstrategy() should fail if VNF_HAVELABEL isn't set. This simplifiesMatthew Dempsky
2011-07-06Eliminate redundant buf validation checks in xxstrategy() methods nowMatthew Dempsky
2011-07-04move the specfs code to a place people can see it; ok guenther thib krwTheo de Raadt
2011-07-03Cleanup vnd(4) a bit now that it only has one mode of operation andMatthew Dempsky
2011-07-03Fix vnd(4) support for read-only files. We can't clear sc_flagsMatthew Dempsky
2011-06-30Refactor some common open/close/detach disk driver code intoMatthew Dempsky
2011-06-21looks like the disk_lock method actually does workTheo de Raadt
2011-06-20explicit_bzero for the crypto keyTed Unangst
2011-06-20for now, move back to a private rw_lock rather than the disk_lock.Theo de Raadt
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-19and in debug code, tooTheo de Raadt
2011-06-19stop trying to be clever with the softc nameTheo de Raadt
2011-06-09shorted code with a lovely gotoTheo 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-06-02No need to set error to 0, when it is still 0 from the start of the function.Theo de Raadt
2011-06-02The vndbufpl is no longer used.Theo de Raadt
2011-06-02Initialize the dv_xname at attach time, so that we don't have to doTheo de Raadt
2011-06-02In vndclear(), clear all the flag bits. Leaving around a VNF_WLABEL bitTheo de Raadt
2011-06-02Initialize the dv_unit, because disk_attach will want it later. BeforeTheo de Raadt
2011-06-02Do not bzero the softc when doing VNDIOCCLR, because that trashes theTheo de Raadt
2011-06-02device_ref() by hand, since this is a pseudo-device and was not attachedTheo de Raadt
2011-05-31Change a few of the more common disk drivers (sd, cd, wd, rd, and vnd)Matthew Dempsky
2011-05-30Remove vndshutdown. It is unused.Owain Ainsworth
2011-04-25Remove backwards compatibility for svnd. All new operations must use theTheo de Raadt
2011-04-23Remove now unused vndiodone(). ok deraadt@Miod Vallat
2011-04-23The previous code only prevented the vnd from being opened for write inJoel Sing
2011-04-23backout the miod change since it is wrongTheo de Raadt
2011-04-22Fix regression in vndopen() behaviour introduced in previous commit.Miod Vallat
2011-04-18remove the old style by-pass-the-buffer-cache vnd code.Thordur I. Bjornsson
2011-04-02Remove bufqs from vnds, as the disk that houses the imageThordur I. Bjornsson
2011-02-15A vnd buf doesn't only go through the vnd bufq but also the bufqThordur I. Bjornsson
2011-01-06init and destory the bufq in the ioctl handler, asThordur I. Bjornsson
2011-01-05cut vnd over to using bufq's again.Thordur I. Bjornsson
2010-12-22When configuring a vnd(4) disk, populate the disk name based on the modeJoel Sing
2010-09-22All users of physio(9) now pass NULL as the buf pointer argument, soMatthew Dempsky
2010-09-08Store a struct device pointer within struct disk and populate this whenJoel Sing