Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 May 1999 07:34:55 +0800
From:      Peter Wemm <peter@netplex.com.au>
To:        Luoqi Chen <luoqi@watermarkgroup.com>
Cc:        cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org
Subject:   Re: cvs commit: src/sbin/savecore savecore.c 
Message-ID:  <19990517233500.CC6AB1F72@spinner.netplex.com.au>
In-Reply-To: Your message of "Mon, 17 May 1999 12:47:52 -0400." <199905171647.MAA19874@lor.watermarkgroup.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
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




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