Date: Fri, 19 Feb 1999 12:38:20 -0800 (PST) From: Matthew Dillon <dillon@apollo.backplane.com> To: Curt Sampson <cjs@cynic.net> Cc: Peter Edwards <peter.edwards@isocor.ie>, freebsd-hackers@FreeBSD.ORG Subject: Re: savecore before swapon? Message-ID: <199902192038.MAA02782@apollo.backplane.com> References: <Pine.NEB.4.02.9902191216130.19341-100000@epistolic.cynic.net>
next in thread | previous in thread | raw e-mail | index | archive | help
:> Matthew Dillon wrote:
:> >
:> > :Or start allocating swap 'backwards' from the high block# on the disk
:> > :downwards.
:>
:> How about _dumping_ to the end of the swap device, rather than hacking
:> on the swap code.
:
:Not hard. See NetBSD's code to set dumplo and call the dump function in
:src/sys/arch/i386/i386/machdep.c. (I notice you have a dumplo variable
:in that FreeBSD file, too, but it's never set.)
:
:dev/scsipi/sd.c's sddump function starts the dump at offset dumplo
:(FreeBSD's old scsi/sd.c does the same. I don't know where the code
:in this file has gone to under CAM.)
:
:cjs
:--
:Curt Sampson <cjs@cynic.net> 604 801 5335 De gustibus, aut bene aut nihil.
Don'tcha love solutions that are staring you in the face? dumplo is the
obvious solution.
-Matt
Matthew Dillon
<dillon@backplane.com>
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199902192038.MAA02782>
