diff options
author | Poul-Henning Kamp <phk@FreeBSD.org> | 2002-03-31 22:37:00 +0000 |
---|---|---|
committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2002-03-31 22:37:00 +0000 |
commit | 81661c94b6a5a0b3b13048741a7e219300df81a9 (patch) | |
tree | 0962f06e2a2c422d89af486eb66e8e726fea13b7 /sys/geom | |
parent | 67cd130e592c3937634403d105c7c72ed20bd7f9 (diff) | |
download | src-81661c94b6a5a0b3b13048741a7e219300df81a9.tar.gz src-81661c94b6a5a0b3b13048741a7e219300df81a9.zip |
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
Notes
Notes:
svn path=/head/; revision=93496
Diffstat (limited to 'sys/geom')
-rw-r--r-- | sys/geom/geom_disk.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/sys/geom/geom_disk.c b/sys/geom/geom_disk.c index 11bbd608f1c2..c02e8a5399f2 100644 --- a/sys/geom/geom_disk.c +++ b/sys/geom/geom_disk.c @@ -228,13 +228,6 @@ disk_invalidate (struct disk *disk) { } -int -disk_dumpcheck(dev_t dev, u_int *count, u_int *blkno, u_int *secsize) -{ - - return (ENXIO); -} - SYSCTL_INT(_debug_sizeof, OID_AUTO, disklabel, CTLFLAG_RD, 0, sizeof(struct disklabel), "sizeof(struct disklabel)"); |