Age | Commit message (Collapse) | Author |
|
gson@araneus.fi
|
|
|
|
|
|
|
|
|
|
however ffs_write needs a proc pointer in the uio structure, so fill in
&proc0 to avoid a NULL deref
|
|
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
|
|
|
|
|
|
|
|
|
|
|
|
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.
|
|
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.
|
|
|