Age | Commit message (Collapse) | Author |
|
not being used in the tree for anything obviously useful. Get it done
early so we can find if there are non-obvious uses out there.
ok deraadt@ beck@
|
|
set d_secsize instead of 1 << DEV_BSHIFT. Just for textual consistency in
setting d_secsize.
No functional change.
|
|
setting RAW_PART's p_size to d_secperunit * (d_secsize / DEV_BSIZE) is
a waste of a few ops. And p_size should be in sectors anyway.
Just set RAW_PART's p_size to d_secperunit to make usage consistant
across the tree.
Should be a no-op.
|
|
saves roughly 512 bytes.
|
|
friends compile again.
ok tdeval@.
|
|
while there.
ok tdeval@ (long ago)
|
|
necessary. No functional change.
|
|
|
|
(remember: d_[type|pack]name do not need terminating null).
Take the opportunity to introduce some paranoia and check the device
name lengths to make sure they fit, with appropriate errors if not.
ok tedu@ tdeval@
|
|
ok deraadt@
|
|
|
|
|
|
(Look ma, I might have broken the tree)
|
|
different (and thus confusing) semantics.
|
|
|
|
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.
|
|
|
|
|