Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Nov 2003 19:57:10 -0600
From:      Dan Nelson <dnelson@allantgroup.com>
To:        Wes Peters <wes@softweyr.com>
Cc:        arch@freebsd.org
Subject:   Re: newfs and mount vs. half-baked disks
Message-ID:  <20031105015709.GC28915@dan.emsphone.com>
In-Reply-To: <200311041737.20467.wes@softweyr.com>
References:  <200311041737.20467.wes@softweyr.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Nov 04), Wes Peters said:
> I emailed Kirk about this state of affairs and he confirmed that
> newfs was developed with operator intervention in mind.  He suggested
> employing one of the unused flags in the filesystem header as a
> 'consistent' flag, setting it to 'not consistent' at the beginning of
> newfs, and then updating to 'is consistent' at the end.  The
> performance hit in updating all superblock copies at the end is small
> but noticable (< 1s on a rather slow 6GB filesystem).

Would writing a block of zeros to the first (or first n) superblock,
newfs'ing, then rewriting the correct data do the same thing without
affecting the filesystem itself?  I'm thinking about 4.x and cross-OS
portability here.

-- 
	Dan Nelson
	dnelson@allantgroup.com



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