summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_disk.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Kill disk_find and disk_resetstat that noone uses. If you ever needart2007-05-051-45/+1
| | | | them, they are still in cvs.
* when we are in ramdisk mode, we must also disable any previous mountrootderaadt2007-05-041-1/+2
| | | | | setting that pre-setroot() code did (for instance a network boot) found by phessler, tested by reyk
* make findblkmajor() and findblkname() MI; ok miodderaadt2007-05-041-1/+26
|
* setroot() was a ugly mix of MI and MD code, with different bugs on differentderaadt2007-05-041-1/+266
| | | | | | machines. Instead -- build one solid clean MI version, and thenchange all the architectures to use it. ok various people, tested on almost all cases. (it is a 10094 line diff..)
* replace lockmgr locks with rwlocks. these are no longer recursive, but theydlg2007-03-301-5/+4
| | | | | | weren't used recursively anyway. tested by hsoexer@ fkr@ ok pedro@
* Remove an #ifdef LFS chunk from dk_mountroot();thib2007-03-271-9/+1
| | | | ok pedro@
* One more (!foo & BAR) bogus test.miod2006-05-111-2/+2
|
* ansi and deregister. No binary change.jsg2005-12-091-37/+20
|
* Remove unnecessary lockmgr() archaism that was costing too much in termspedro2005-11-191-5/+3
| | | | | | of panics and bugfixes. Access curproc directly, do not expect a process pointer as an argument. Should fix many "process context required" bugs. Incentive and okay millert@, okay marc@. Various testing, thanks.
* Use list and queue macros where applicable to make the code easier to read;miod2004-12-261-3/+2
| | | | no change in compiler assembly output.
* check for malloc() in bufq_default_alloc(), ok tedu@pedro2004-11-011-1/+4
|
* remove dead 'ifdef tahoe' code, ok millert@ deraadt@pedro2004-10-251-4/+1
|
* This moves access to wall and uptime variables in MI code,tholo2004-06-241-17/+6
| | | | | | | | | | | | | | 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@
* new arg to disk_unbusy, to record separate read/write statistics.tedu2004-02-151-8/+16
| | | | | looked at by various, testing henning@ mcbride@ dan weeks mostly from netbsd via Pedro Martelletto <pbastos@rdc.puc-rio.br>
* dynamic bufq support. basically a nullop. ok grange@tedu2004-01-211-1/+21
|
* implement new means of manipulating buf queues, bufq.tedu2003-06-251-1/+36
| | | | | | | | | | | | 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@
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-021-6/+2
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* First round of __P removal in sysmillert2002-03-141-8/+8
|
* Set a flag whenever a disk is added/removed, so sysctl knows when toangelos2001-05-141-2/+8
| | | | update settings.
* No need for extern struct proc *curproc.art2000-11-071-2/+1
|
* Move a locking function that was spread throughout disk device drivers intocsapuntz2000-04-091-1/+39
| | | | | | | | | | | | | 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
* allow to compile without -DFFS. okay deraadt@d1999-11-171-1/+6
|
* nuke prehistoric disk statisticsmickey1997-11-231-15/+1
|
* I know u_short will always be 16 bits, call me a pedant..niklas1997-08-071-5/+5
|
* missing crderaadt1997-05-221-2/+2
|
* for miniroot, translate swap to ffsderaadt1997-05-121-2/+7
|
* bad dkpart(), bad dkunit(), bad bad badderaadt1997-04-061-7/+2
|
* OpenBSD tagsniklas1997-02-241-0/+1
|
* Remove lots of timer_state structs as they just ate memory and only a few wasniklas1997-01-051-0/+4
| | | | | | | 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.
* dk_mountroot() uses ioctl to read disklabelderaadt1996-11-061-0/+78
|
* do not panic for common driver bugsderaadt1996-08-171-1/+1
|
* approximate seeks; banshee@gabriella.abattoir.comderaadt1996-08-081-0/+2
|
* make printf/addlog return 0, for compat to userlandderaadt1996-07-231-1/+1
|
* partial sync with netbsd 960418, more to comederaadt1996-04-211-2/+3
|
* From NetBSD: Merge with NetBSD 960217niklas1996-02-291-4/+4
|
* from netbsd;deraadt1996-01-121-3/+181
| | | | | | | | | | | | | | | | 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.
* from netbsd:deraadt1995-12-301-1/+15
| | | | | | Move the old-style disk instrumentation "structures" to a central location (sys/kern/subr_disk.c) and note that they should/will be deprecated.
* initial import of NetBSD treederaadt1995-10-181-0/+219