Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 31 Mar 2002 14:37:00 -0800 (PST)
From:      Poul-Henning Kamp <phk@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/dev/ata ata-disk.c src/sys/dev/ida ida_disk.c src/sys/dev/null null.c src/sys/dev/twe twe_freebsd.c src/sys/geom geom_disk.c src/sys/i386/i386 i386dump.c src/sys/kern kern_shutdown.c subr_disk.c subr_xxx.c src/sys/sys conf.h disk.h ...
Message-ID:  <200203312237.g2VMb0X24580@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
phk         2002/03/31 14:37:00 PST

  Modified files:
    sys/dev/ata          ata-disk.c 
    sys/dev/ida          ida_disk.c 
    sys/dev/null         null.c 
    sys/dev/twe          twe_freebsd.c 
    sys/geom             geom_disk.c 
    sys/kern             kern_shutdown.c subr_disk.c subr_xxx.c 
    sys/sys              conf.h disk.h disklabel.h sysctl.h 
                         systm.h 
  Added files:
    sys/i386/i386        i386dump.c 
  Log:
  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
  
  Revision  Changes    Path
  1.129     +16 -44    src/sys/dev/ata/ata-disk.c
  1.32      +6 -1      src/sys/dev/ida/ida_disk.c
  1.7       +18 -2     src/sys/dev/null/null.c
  1.13      +6 -1      src/sys/dev/twe/twe_freebsd.c
  1.4       +0 -7      src/sys/geom/geom_disk.c
  1.1       +121 -0    src/sys/i386/i386/i386dump.c (new)
  1.122     +30 -173   src/sys/kern/kern_shutdown.c
  1.53      +19 -19    src/sys/kern/subr_disk.c
  1.19      +1 -2      src/sys/kern/subr_xxx.c
  1.145     +20 -1     src/sys/sys/conf.h
  1.20      +0 -1      src/sys/sys/disk.h
  1.74      +1 -0      src/sys/sys/disklabel.h
  1.104     +0 -1      src/sys/sys/sysctl.h
  1.168     +0 -3      src/sys/sys/systm.h

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200203312237.g2VMb0X24580>