From owner-cvs-all Mon May 17 16:35: 7 1999 Delivered-To: cvs-all@freebsd.org Received: from spinner.netplex.com.au (spinner.netplex.com.au [202.12.86.3]) by hub.freebsd.org (Postfix) with ESMTP id E0DDA1540E; Mon, 17 May 1999 16:35:02 -0700 (PDT) (envelope-from peter@netplex.com.au) Received: from netplex.com.au (localhost [127.0.0.1]) by spinner.netplex.com.au (Postfix) with ESMTP id CC6AB1F72; Tue, 18 May 1999 07:34:55 +0800 (WST) (envelope-from peter@netplex.com.au) X-Mailer: exmh version 2.0.2 2/24/98 To: Luoqi Chen Cc: cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org Subject: Re: cvs commit: src/sbin/savecore savecore.c In-reply-to: Your message of "Mon, 17 May 1999 12:47:52 -0400." <199905171647.MAA19874@lor.watermarkgroup.com> Date: Tue, 18 May 1999 07:34:55 +0800 From: Peter Wemm Message-Id: <19990517233500.CC6AB1F72@spinner.netplex.com.au> Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk Luoqi Chen wrote: > > Luoqi Chen wrote: > > > luoqi 1999/05/12 21:29:13 PDT > > > > > > Modified files: > > > sbin/savecore savecore.c > > > Log: > > > Read dumpdev using sysctl(3) interface. Now savecore should work again > > > after the dev_t changes. > > > > I looked at this before and was tempted to do the same, but there is a > > problem.. Using the sysctl() requires that the kernel that crashed is the > > current running kernel. [..] > savecore *always* gets dumpdev (and some other variables) from the live kerne l, > this makes sense because the value of dumpdev (in .data section of kernel) wi ll > be overwritten after a reboot. I realized this a while ago and nearly posted a self correction. IMHO, What savecore should be doing is: - savecore: usage: savecore [-cfvz] [-N system] directory + savecore: usage: savecore [-cfvz] [-M dumpdev] [-N system] directory or something like that. That way you can do a savecore from a specific device or before dumpon. > -lq Cheers, -Peter To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message