aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/null
Commit message (Collapse)AuthorAgeFilesLines
...
* Here follows the new kernel dumping infrastructure.Poul-Henning Kamp2002-03-311-1/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Caveats: The new savecore program is not complete in the sense that it emulates enough of the old savecores features to do the job, but implements none of the options yet. I would appreciate if a userland hacker could help me out getting savecore to do what we want it to do from a users point of view, compression, email-notification, space reservation etc etc. (send me email if you are interested). Currently, savecore will scan all devices marked as "swap" or "dump" in /etc/fstab _or_ any devices specified on the command-line. All architectures but i386 lack an implementation of dumpsys(), but looking at the i386 version it should be trivial for anybody familiar with the platform(s) to provide this function. Documentation is quite sparse at this time, more to come. Details: ATA and SCSI drivers should work as the dump formatting code has been removed. The IDA, TWE and AAC have not yet been converted. Dumpon now opens the device and uses ioctl(DIOCGKERNELDUMP) to set the device as dumpdev. To implement the "off" argument, /dev/null is used as the device. Savecore will fail if handed any options since they are not (yet) implemented. All devices marked "dump" or "swap" in /etc/fstab will be scanned and dumps found will be saved to diskfiles named from the MD5 hash of the header record. The header record is dumped in readable format in the .info file. The kernel is not saved. Only complete dumps will be saved. All maintainer rights for this code are disclaimed: feel free to improve and extend. Sponsored by: DARPA, NAI Labs Notes: svn path=/head/; revision=93496
* Send the remains (such as I have located) of "block major numbers" toPoul-Henning Kamp2001-03-261-2/+0
| | | | | | | the bit-bucket. Notes: svn path=/head/; revision=74810
* Convert more malloc+bzero to malloc+M_ZERO.David Malone2000-12-081-2/+1
| | | | | | | | Submitted by: josh@zipperup.org Submitted by: Robert Drehmel <robd@gmx.net> Notes: svn path=/head/; revision=69781
* During a verbose boot, call the null device 'null' rather than 'null0' toJohn Baldwin2000-10-061-1/+1
| | | | | | | be more consistent with the rest of the kernel. Notes: svn path=/head/; revision=66709
* Move sys/dev/nulldev to sys/dev/null to be more consistent with namingJohn Baldwin2000-10-021-2/+2
| | | | | | | under sys/dev. Notes: svn path=/head/; revision=66560
* Small style change; make function names less likely to clash withMark Murray2000-07-091-7/+7
| | | | | | | existing names. "null" is too common a string; use "null_". Notes: svn path=/head/; revision=62843
* New machine independant /dev/null and /dev/zero driver. This device isMark Murray2000-06-251-0/+137
severely stripped down compared with its predecessor, and is measurably a _lot_ faster. Many thanks to Jeroen van Gelderen for lots of good ideas. There is still a problem with this; it is written as a mudule, and as such is theoretically unloadable. However, there is no refcounting done as I would prefer to do that a'la device_busy(9), rather than some "home-rolled" scheme. The point is pretty moot, as /dev/null is effectively compulsory. Reviewed by: dfr Notes: svn path=/head/; revision=62052