diff options
author | phk <phk@FreeBSD.org> | 2002-03-31 22:37:00 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2002-03-31 22:37:00 +0000 |
commit | ef82a516346a59befd780764209cd79a53941758 (patch) | |
tree | 0962f06e2a2c422d89af486eb66e8e726fea13b7 /sys/dev/ida | |
parent | b19c49c220775864538a4c0608a821586b85eda2 (diff) | |
download | FreeBSD-src-ef82a516346a59befd780764209cd79a53941758.zip FreeBSD-src-ef82a516346a59befd780764209cd79a53941758.tar.gz |
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
Diffstat (limited to 'sys/dev/ida')
-rw-r--r-- | sys/dev/ida/ida_disk.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/dev/ida/ida_disk.c b/sys/dev/ida/ida_disk.c index 0a919d1..256b5aa 100644 --- a/sys/dev/ida/ida_disk.c +++ b/sys/dev/ida/ida_disk.c @@ -186,8 +186,12 @@ bad: } static int -idad_dump(dev_t dev) +idad_dump(dev_t dev, void *virtual, vm_offset_t physical, off_t offset, size_t length) { + + /* This needs modified to the new dump API */ + return (ENXIO); +#if 0 struct idad_softc *drv; u_int count, blkno, secsize; long blkcnt; @@ -231,6 +235,7 @@ idad_dump(dev_t dev) addr += PAGE_SIZE * dumppages; } return (0); +#endif } void |