From owner-cvs-all Wed Apr 10 19:38:34 2002 Delivered-To: cvs-all@freebsd.org Received: from 12-234-96-171.client.attbi.com (12-234-96-171.client.attbi.com [12.234.96.171]) by hub.freebsd.org (Postfix) with ESMTP id A3C3937B417; Wed, 10 Apr 2002 19:38:20 -0700 (PDT) Received: by 12-234-96-171.client.attbi.com (Postfix, from userid 1000) id 6C8A98B; Wed, 10 Apr 2002 19:37:11 -0700 (PDT) Date: Wed, 10 Apr 2002 19:37:11 -0700 From: Jonathan Mini To: Andrzej Bialecki Cc: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: Re: Feature removal without replacement (was: cvs commit: src/sys/alpha/alpha machdep.c src/sys/conf NOTES) Message-ID: <20020410193711.C34704@stylus.haikugeek.com> Mail-Followup-To: Andrzej Bialecki , cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG References: <4868.1018415500@critter.freebsd.dk> <3CB4A9CC.B5D46293@webgiro.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <3CB4A9CC.B5D46293@webgiro.com>; from abial@webgiro.com on Wed, Apr 10, 2002 at 11:08:28PM +0200 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Andrzej Bialecki [abial@webgiro.com] wrote : > > I wonder also how to retrieve later the hints settings from running > kernel, in order to save them into a file (a la kget, or dset before > that)... Are hints preserved and exported anywhere to userland? > Well, there are a few ways that this information can be retained between boots. You can set it up so that it is passed from the loader to the kernel to userland and back to disk. This sounds like a hack, but it might be useful in some cases (like to know when a particular boot actually worked). Alternatively, ficl scripts can write to file already allocated on a ufs partition. They can't create, remove, extend, truncate, or rename files. They can't modify directories. This is a somewhat limited interface to the disk, but it is enough to make nextboot(8) like functionality, and I've seen it used to implement a reliable failover system. We should be able to lay down device hints as well, though some hacks may be required to make it pretty. -- Jonathan Mini mini@haikugeek.com desolation... despair... plastic forks... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message