Age | Commit message (Collapse) | Author |
|
This only worked before by luck. Fixes floppy panic in -current.
Thanks to krw@ for the DDB traceback, it helped ;-)
|
|
|
|
|
|
|
|
|
|
|
|
implement an ioctl to get a spoofed label even for disks that have
a label on them.
|
|
|
|
This will require changes for each machine type.
changes to MAKEDEV, suggest treating rd like sd
---
sd*|vnd*|ccd*|rd*)
...
rd*) name=rd; blk=17; chr=17;;
---
Make certain that majors and minors are correct
conf.c
add a entry in cdevsw for rd (previously was only in bdev)
---
cdev_decl(rd);
...
struct cdevsw cdevsw[] = {
...
cdev_disk_init(NRD,rd), /* 17 ram disk driver*/
---
other changes to how rdconfig is called may be appropriate,
it must now be configured using the "raw" parition typically 'c'.
|
|
|
|
|
|
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.
|
|
|
|
|