summaryrefslogtreecommitdiff
path: root/sys/dev/vnd.c
AgeCommit message (Expand)Author
2021-11-21correct the vnd-on-vnd dev_t test, and avoid leaking a cred in anTheo de Raadt
2021-11-18vndsetcred: don't a reference to credentials in error path.Theo Buehler
2021-10-09placing the same vnd underneath a vnd (with VNDIOCSET) is a lock violation,Theo de Raadt
2019-11-27Re-enable IO_NOCACHE, and use is in vnd.Bob Beck
2019-11-03Correctly re-initialize the nameinfo struct that is re-used forBob Beck
2019-10-06Fix vn_open to require an op of 0, and 0 or KERNELPATH only as flags.Bob Beck
2018-04-28Clean up the parameters of VOP_LOCK() and VOP_UNLOCK(). It is alwaysVisa Hankala
2018-02-19Remove almost unused `flags' argument of suser().Martin Pieuchot
2017-12-30Don't pull in <sys/file.h> just to get fcntl.hPhilip Guenther
2017-07-19Avoid additional div0 in case both ntracks & nsectors passed inTheo de Raadt
2017-07-19Avoid division by zero of vnd_secsizeTheo de Raadt
2017-01-21p_comm is the process's command and isn't per thread, so move it fromPhilip Guenther
2016-12-14Kill compat for old VNDIOCSET; ok deraadt@Jeremie Courreges-Anglas
2016-11-12Revert unrelated bits that snuck in previous.Jeremie Courreges-Anglas
2016-11-12Bump VNDNLEN from 90 to 1024 bytes, to avoid "VNDIOCSET: File name too long"Jeremie Courreges-Anglas
2016-10-08Various printf claim to report the PID, so actually report that and not the TIDPhilip Guenther
2016-03-19Remove the unused flags argument from VOP_UNLOCK().natano
2015-08-26Simple size for free(). These are a pleasure to convert when theTheo de Raadt
2015-08-25obvious sizes for free()Theo de Raadt
2014-12-13yet more mallocarray() changes.Doug Hogan
2014-10-17convert old b functions to mem functionsTed Unangst
2014-07-12add a size argument to free. will be used soon, but for now default to 0.Ted Unangst
2013-11-12Use %llu+DL_GETPSIZE() to show partition size. Replace %li+(long) withKenneth R Westerback
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