From owner-cvs-all Thu Jun 22 16:43: 7 2000 Delivered-To: cvs-all@freebsd.org Received: from overcee.netplex.com.au (peter1.corp.yahoo.com [208.48.107.4]) by hub.freebsd.org (Postfix) with ESMTP id 6598B37B5F8; Thu, 22 Jun 2000 16:43:01 -0700 (PDT) (envelope-from peter@netplex.com.au) Received: from netplex.com.au (localhost [127.0.0.1]) by overcee.netplex.com.au (Postfix) with ESMTP id 2BB821CD7; Thu, 22 Jun 2000 16:43:00 -0700 (PDT) (envelope-from peter@netplex.com.au) X-Mailer: exmh version 2.1.1 10/15/1999 To: Adrian Chadd Cc: Julian Elischer , Anders Andersson , cvs-all@FreeBSD.ORG, freebsd-current@FreeBSD.ORG Subject: Re: cvs commit: src/sys/contrib/softupdates softdep.h ffs_softdep.c In-Reply-To: Message from Adrian Chadd of "Thu, 22 Jun 2000 18:57:43 +0200." <20000622185743.R29036@zoe.bastard.co.uk> Date: Thu, 22 Jun 2000 16:43:00 -0700 From: Peter Wemm Message-Id: <20000622234300.2BB821CD7@overcee.netplex.com.au> Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Adrian Chadd wrote: > On Thu, Jun 22, 2000, Julian Elischer wrote: > > [snip NetBSD making softupdates a mount option] > > > They obvioulsly DIDN'T discuss this with Kirk! > > > > this is not what he wants and for good reason.. > > see the long discussion son this topic in the archives. > > I've read the mail archives as to why. If these issues are still > valid, I'll withdrawl the idea :) Because fsck is supposed to be able to do things more intelligently when it knows the *previous* mount state, not the current state. ie: if a disk was last mounted in softupdates mode, fsck is supposed to do stuff differently (possibly doing as little as a superblock cleanup and deferring the lost-space recovery until much later). For the NetBSD version to work, what needs to happen is that the -osoftdep flag needs to be propagated to the superblock so that after reboot, fsck knows what to do. When it is next mounted, then update it to the new state. This gives us the ability to use the 'softdep' flag in fstab but without breaking fsck. Sure, fsck can look at what is *now* in fstab, but not what mode a given filesystem was in the last time it was mounted. Cheers, -Peter -- Peter Wemm - peter@FreeBSD.org; peter@yahoo-inc.com; peter@netplex.com.au "All of this is for nothing if we don't go to the stars" - JMS/B5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message