freebsd-skq/sys/i386
phk ef82a51634 Here follows the new kernel dumping infrastructure.
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
2002-03-31 22:37:00 +00:00
..
acpica Fix typo in function name. 2002-01-10 03:26:46 +00:00
apm Remove __P. 2002-03-20 05:48:58 +00:00
bios Remove __P. 2002-03-20 05:48:58 +00:00
compile
conf A couple of bits survived Dans nukage of CV_DEBUG in favour of INVARIANTS, 2002-03-31 07:23:31 +00:00
i386 Here follows the new kernel dumping infrastructure. 2002-03-31 22:37:00 +00:00
ibcs2 Remove __P. 2002-03-20 05:48:58 +00:00
include GC #if 0'd assembly mutex micro operations. If someone wants to bring 2002-03-28 15:14:23 +00:00
isa Remove abuse of intr_disable/restore in MI code by moving the loop in ast() 2002-03-29 16:35:26 +00:00
linux Fixed some style bugs in the removal of __P(()). Continuation lines 2002-03-24 04:09:05 +00:00
pci Major rework of the iicbus/smbus framework: 2002-03-23 15:49:15 +00:00
svr4 Remove __P. 2002-03-20 07:51:46 +00:00
Makefile