freebsd-skq/sys
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
..
alpha Centralize the "bootdev" and "dumpdev" variables. They are still pretty 2002-03-31 07:15:28 +00:00
amd64 Here follows the new kernel dumping infrastructure. 2002-03-31 22:37:00 +00:00
arm Guard against redefining __gnuc_va_list. 2002-03-24 11:25:46 +00:00
boot Only install the help file if we can find it. Use ${BASE}.help 2002-03-31 20:48:13 +00:00
cam DA (scsi) and AD (ata) diskdrivers: 2002-03-31 22:28:03 +00:00
coda
compat Protect proc struct (p_args and p_comm) when doing procfs IO that pulls 2002-03-29 19:12:40 +00:00
conf Add the i386dump.c dumpsys() source file. 2002-03-31 22:28:28 +00:00
contrib We don't need ip_ipsec_pxy.c in userland. 2002-03-26 13:42:09 +00:00
crypto
ddb Fixed some style bugs in the removal of __P(()). Continuation lines 2002-03-23 11:53:03 +00:00
dev Here follows the new kernel dumping infrastructure. 2002-03-31 22:37:00 +00:00
fs In ffs_mountffs(), set mnt_iosize_max to si_iosize_max unconditionally 2002-03-30 15:12:57 +00:00
geom Here follows the new kernel dumping infrastructure. 2002-03-31 22:37:00 +00:00
gnu In ffs_mountffs(), set mnt_iosize_max to si_iosize_max unconditionally 2002-03-30 15:12:57 +00:00
i4b Add support for Q.931 subaddresses. 2002-03-26 15:13:54 +00:00
i386 Here follows the new kernel dumping infrastructure. 2002-03-31 22:37:00 +00:00
ia64 Centralize the "bootdev" and "dumpdev" variables. They are still pretty 2002-03-31 07:15:28 +00:00
isa Compromise for critical*()/cpu_critical*() recommit. Cleanup the interrupt 2002-03-27 05:39:23 +00:00
isofs/cd9660 In ffs_mountffs(), set mnt_iosize_max to si_iosize_max unconditionally 2002-03-30 15:12:57 +00:00
kern Here follows the new kernel dumping infrastructure. 2002-03-31 22:37:00 +00:00
libkern
modules Fix kernel build. 2002-03-25 08:02:54 +00:00
net - Merge the pdq driver (if_fpa and if_fea) from NetBSD. 2002-03-29 11:22:22 +00:00
netatalk
netatm
netgraph
netinet Fixed some style bugs in the removal of __P(()). Continuation lines 2002-03-24 10:19:10 +00:00
netinet6 Fix cached route problem. 2002-03-29 15:42:44 +00:00
netipx
netkey
netnatm
netncp
netns
netsmb
nfs
nfsclient
nfsserver
pc98 MFi386: revision 1.508. 2002-03-31 08:00:35 +00:00
pccard
pci smbus_alloc_bus is not part of the smbus interface anymore 2002-03-23 18:27:16 +00:00
posix4
powerpc Centralize the "bootdev" and "dumpdev" variables. They are still pretty 2002-03-31 07:15:28 +00:00
rpc
security/lomac
sparc64 Centralize the "bootdev" and "dumpdev" variables. They are still pretty 2002-03-31 07:15:28 +00:00
svr4
sys Here follows the new kernel dumping infrastructure. 2002-03-31 22:37:00 +00:00
tools
ufs In ffs_mountffs(), set mnt_iosize_max to si_iosize_max unconditionally 2002-03-30 15:12:57 +00:00
vm Add a new mtx_init option "MTX_DUPOK" which allows duplicate acquires of locks 2002-03-27 09:23:41 +00:00
Makefile