freebsd-skq/sys/geom
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
..
geom_bsd.c In the absense of any smarter way to do this, cast various printf 2002-03-28 10:09:24 +00:00
geom_ccd.c Remove bogus ccddump() function in favour of the standard nodump. 2002-03-29 21:12:11 +00:00
geom_dev.c In the absense of any smarter way to do this, cast various printf 2002-03-28 10:09:24 +00:00
geom_disk.c Here follows the new kernel dumping infrastructure. 2002-03-31 22:37:00 +00:00
geom_dump.c In the absense of any smarter way to do this, cast various printf 2002-03-28 10:09:24 +00:00
geom_enc.c Eliminate some thread pointers which do not make sense anymore. 2002-03-26 22:07:38 +00:00
geom_event.c Eliminate some thread pointers which do not make sense anymore. 2002-03-26 22:07:38 +00:00
geom_int.h Eliminate some thread pointers which do not make sense anymore. 2002-03-26 22:07:38 +00:00
geom_io.c Eliminate some thread pointers which do not make sense anymore. 2002-03-26 22:07:38 +00:00
geom_kern.c Eliminate some thread pointers which do not make sense anymore. 2002-03-26 22:07:38 +00:00
geom_mbr.c In the absense of any smarter way to do this, cast various printf 2002-03-28 10:09:24 +00:00
geom_pc98.c Add preliminary PC98 class to GEOM. 2002-03-28 21:38:38 +00:00
geom_slice.c In the absense of any smarter way to do this, cast various printf 2002-03-28 10:09:24 +00:00
geom_slice.h Eliminate some thread pointers which do not make sense anymore. 2002-03-26 22:07:38 +00:00
geom_subr.c In the absense of any smarter way to do this, cast various printf 2002-03-28 10:09:24 +00:00
geom_sunlabel.c Complete an incomplete cut&paste operation. 2002-03-28 22:00:24 +00:00
geom.h Eliminate some thread pointers which do not make sense anymore. 2002-03-26 22:07:38 +00:00