freebsd-skq/sys/dev/ata
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
..
ata-all.c Remove debug output in last commit. 2002-03-30 16:51:47 +00:00
ata-all.h Add new support for locking an ATA channel and use that throughout 2002-03-11 21:04:32 +00:00
ata-card.c Major update of the ATA RAID code, part 1: 2002-02-04 19:23:40 +00:00
ata-disk.c Here follows the new kernel dumping infrastructure. 2002-03-31 22:37:00 +00:00
ata-disk.h Major update of the ATA RAID code, part 3: 2002-03-03 15:36:21 +00:00
ata-dma.c ATA100 is allowed on the HPT chips rev >= 3 2002-03-31 13:33:55 +00:00
ata-isa.c Major update of the ATA RAID code, part 1: 2002-02-04 19:23:40 +00:00
ata-pci.c Add AMD 768 support. 2002-03-24 12:44:23 +00:00
ata-raid.c Use the raid lun not the magic when writing Promise config. 2002-03-30 11:15:46 +00:00
ata-raid.h Add support for creating/deleting ATA RAID's. 2002-03-27 10:58:59 +00:00
atapi-all.c Misc little cleanups. 2002-03-26 09:31:22 +00:00
atapi-all.h Fix buglets in the ATAPI resume code. 2002-02-12 13:21:51 +00:00
atapi-cd.c Fix support for multi CD changers, it was as broken as my old NEC :) 2002-03-27 19:47:52 +00:00
atapi-cd.h Add more functionality to the CDIOCREADSUBCHANNEL ioctl. 2002-03-16 15:56:54 +00:00
atapi-fd.c Misc little cleanups. 2002-03-26 09:31:22 +00:00
atapi-fd.h Major update of the ATA RAID code, part 1: 2002-02-04 19:23:40 +00:00
atapi-tape.c Misc little cleanups. 2002-03-26 09:31:22 +00:00
atapi-tape.h Major update of the ATA RAID code, part 1: 2002-02-04 19:23:40 +00:00