summaryrefslogtreecommitdiff
path: root/sys/dev/vnd.c
AgeCommit message (Collapse)Author
1998-08-04make b_resid size_tTodd C. Miller
1998-03-10Clear dependcy list so we don't panic a soft updates kernel.Todd C. Miller
1997-11-06Updates for VFS Lite 2 + soft update.Constantine Sapuntzakis
1997-10-18avoid "no disklabel" error messagesTheo de Raadt
1997-10-06back out vfs lite2 till after 2.2Theo de Raadt
1997-10-06VFS Lite2 ChangesConstantine Sapuntzakis
1997-08-08Change the bounds_check_with_label API to also take a cpu_disklabelNiklas Hallqvist
reference for making transferral of meta-information possible from readdisklabel to bounds_check_with_label. The first (and maybe only) thing that will use this is the multi-disklabel-format code on the alpha where the labelsector is passed via cpu_disklabel so the label write-protection can work correctly no matter what label was found. Also use a new macro DKBAD to get at the dkbad field of the cpu_disklabel implementations that contain it. This too is for multi-disklabel architectures where the "bad" field can be inside a union. Use this macro as a means for a driver to check if an architecture supports dkbad constructs. Remove proto of bounds_check_with_label from all MD disklabel.h as it is in sys/disklabel.h. I have not been able to test the changes everywhere, if I break anything I apologize, and promise to fix it as soon as I become aware of it.
1997-06-09zone and constrain according to disklabel partition slots; part by ↵Theo de Raadt
gson@araneus.fi
1997-06-08init d_secperunit nicelyTheo de Raadt
1997-05-18null uio_procpTheo de Raadt
1997-05-17Make comment reflect reality and fix a typoTodd C. Miller
1997-05-17&proc0 should never be usedTheo de Raadt
1997-05-16Some buffers have NULL in b_proc when passed to vndstrategy,Niklas Hallqvist
however ffs_write needs a proc pointer in the uio structure, so fill in &proc0 to avoid a NULL deref
1997-05-14Add a new mode of operation: "safe" vnd, aka svnd, which goesNiklas Hallqvist
through the buffercache thus maintaining cache-coherency after unmount of a mounted vnd. This is good for diskimage creation, you should still use the old vnds for swapping on, though
1997-01-04readdisklabel() with correct dev_tTheo de Raadt
1996-12-21add disklabel supportTheo de Raadt
1996-04-21partial sync with netbsd 960418, more to comeTheo de Raadt
1996-03-02From NetBSD: sync with 960217 sourcesNiklas Hallqvist
1996-02-27From NetBSD: update to 960217 sourcesNiklas Hallqvist
1996-01-12from netbsd;Theo de Raadt
New generic disk framework. Highlights: New metrics handling. Metrics are now kept in the new `struct disk'. Busy time is now stored as a timeval, and transfer count in bytes. Storage for disklabels is now dynamically allocated, so that the size of the disk structure is not machine-dependent. Several new functions for attaching and detaching disks, and handling metrics calculation. Old-style instrumentation is still supported in drivers that did it before. However, old-style instrumentation is being deprecated, and will go away once the userland utilities are updated for the new framework. For usage and architectural details, see the forthcoming disk(9) manual page.
1995-12-14from netbsd:Theo de Raadt
Bring in several changes from the ccd: * Be a bit better with prototypes * Use struct dkdevice in vnd_softc. * Prevent the unit from being unconfigured while open. * Implement a simple locking mechanism and use it for sanity's sake. Still needs more work; needs to support disklabels and the like.
1995-10-18initial import of NetBSD treeTheo de Raadt