Date: Thu, 22 Jun 2000 16:43:00 -0700 From: Peter Wemm <peter@netplex.com.au> To: Adrian Chadd <adrian@FreeBSD.ORG> Cc: Julian Elischer <julian@elischer.org>, Anders Andersson <anders@sanyusan.se>, cvs-all@FreeBSD.ORG, freebsd-current@FreeBSD.ORG Subject: Re: cvs commit: src/sys/contrib/softupdates softdep.h ffs_softdep.c Message-ID: <20000622234300.2BB821CD7@overcee.netplex.com.au> In-Reply-To: Message from Adrian Chadd <adrian@FreeBSD.ORG> of "Thu, 22 Jun 2000 18:57:43 %2B0200." <20000622185743.R29036@zoe.bastard.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000622234300.2BB821CD7>