summaryrefslogtreecommitdiff
path: root/sys/kern/subr_disk.c
AgeCommit message (Collapse)Author
2004-11-01check for malloc() in bufq_default_alloc(), ok tedu@Pedro Martelletto
2004-10-25remove dead 'ifdef tahoe' code, ok millert@ deraadt@Pedro Martelletto
2004-06-24This moves access to wall and uptime variables in MI code,Thorsten Lockert
encapsulating all such access into wall-defined functions that makes sure locking is done as needed. It also cleans up some uses of wall time vs. uptime some places, but there is sure to be more of these needed as well, particularily in MD code. Also, many current calls to microtime() should probably be changed to getmicrotime(), or to the {,get}microuptime() versions. ok art@ deraadt@ aaron@ matthieu@ beck@ sturm@ millert@ others "Oh, that is not your problem!" from miod@
2004-02-15new arg to disk_unbusy, to record separate read/write statistics.Ted Unangst
looked at by various, testing henning@ mcbride@ dan weeks mostly from netbsd via Pedro Martelletto <pbastos@rdc.puc-rio.br>
2004-01-21dynamic bufq support. basically a nullop. ok grange@Ted Unangst
2003-06-25implement new means of manipulating buf queues, bufq.Ted Unangst
accessed with BUFQ macros, bufq structs support extensible, potentially changable algorithms and queue formats. the current default scheme should support nice priority based queuing, but is missing some vfs_bio.c support. only on wd.c for now, other drivers are easy converts. as a side bonus, this makes the driver code look cleaner. idea for the name comes from netbsd, but this scheme is incompatible. thanks to various people for testing. ok grange@
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2002-03-14First round of __P removal in sysTodd C. Miller
2001-05-14Set a flag whenever a disk is added/removed, so sysctl knows when toAngelos D. Keromytis
update settings.
2000-11-07No need for extern struct proc *curproc.Artur Grabowski
2000-04-09Move a locking function that was spread throughout disk device drivers intoConstantine Sapuntzakis
the disk structure. The locking was mostly used in disk device drivers to prevent multiple disklabel operations from going on simultaneously against the device. Added disk_construct(), a constructor for the disk structure, that initializes the lock structure in disk. It is called by default in disk_attach() if it hasn't been called yet. Added disk_lock and disk_unlock
1999-11-17allow to compile without -DFFS. okay deraadt@David Leonard
1997-11-23nuke prehistoric disk statisticsMichael Shalayeff
1997-08-07I know u_short will always be 16 bits, call me a pedant..Niklas Hallqvist
1997-05-22missing crTheo de Raadt
1997-05-12for miniroot, translate swap to ffsTheo de Raadt
1997-04-06bad dkpart(), bad dkunit(), bad bad badTheo de Raadt
1997-02-24OpenBSD tagsNiklas Hallqvist
1997-01-05Remove lots of timer_state structs as they just ate memory and only a few wasNiklas Hallqvist
ever used. Now a single state is kept for net, tty and disk events resp. Also, call the randomness from disk_unbusy instead of biodone, as biodone gets a lot of virtual events (from virtual filesystems etc), and as a bonus: feed xfer time and size into the entropy pool too.
1996-11-06dk_mountroot() uses ioctl to read disklabelTheo de Raadt
1996-08-17do not panic for common driver bugsTheo de Raadt
1996-08-08approximate seeks; banshee@gabriella.abattoir.comTheo de Raadt
1996-07-23make printf/addlog return 0, for compat to userlandTheo de Raadt
1996-04-21partial sync with netbsd 960418, more to comeTheo de Raadt
1996-02-29From NetBSD: Merge with NetBSD 960217Niklas 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-30from netbsd:Theo de Raadt
Move the old-style disk instrumentation "structures" to a central location (sys/kern/subr_disk.c) and note that they should/will be deprecated.
1995-10-18initial import of NetBSD treeTheo de Raadt