From owner-freebsd-hackers@FreeBSD.ORG Fri Dec 26 03:17:48 2008 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B3A2E1065670 for ; Fri, 26 Dec 2008 03:17:48 +0000 (UTC) (envelope-from bruce@cran.org.uk) Received: from muon.cran.org.uk (muon.cran.org.uk [66.246.138.153]) by mx1.freebsd.org (Postfix) with ESMTP id 8430A8FC0C for ; Fri, 26 Dec 2008 03:17:48 +0000 (UTC) (envelope-from bruce@cran.org.uk) Received: from muon.cran.org.uk (localhost [127.0.0.1]) by muon.cran.org.uk (Postfix) with ESMTP id 1E16C192D5; Thu, 25 Dec 2008 22:00:39 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on muon X-Spam-Level: X-Spam-Status: No, score=-1.9 required=8.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from gluon (tau.demon.co.uk [80.177.26.208]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by muon.cran.org.uk (Postfix) with ESMTPSA; Thu, 25 Dec 2008 22:00:38 -0500 (EST) Date: Fri, 26 Dec 2008 03:00:35 +0000 From: Bruce Cran To: David Wolfskill Message-ID: <20081226030035.24154a3d@gluon> In-Reply-To: <20081226014956.GR4100@albert.catwhisker.org> References: <20081226011402.GP4100@albert.catwhisker.org> <20081226012224.2fbd579a@gluon> <20081226014956.GR4100@albert.catwhisker.org> X-Mailer: Claws Mail 3.3.1 (GTK+ 2.12.9; i486-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: hackers@freebsd.org Subject: Re: How to quickly determine if UFS2 FS is "clean" from command line? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Dec 2008 03:17:48 -0000 On Thu, 25 Dec 2008 17:49:56 -0800 David Wolfskill wrote: > A reality check later, I find that for the file systems in question, > dumpfs(8) produces the wanted information (and quite a bit more) > nearly instantly, then spends about 33 seconds dumping cylinder group > information that I have no interest in. I only ran it on a 2GB filesystem so I didn't see how slow it is! It looks like ffsinfo(8) can also display the superblock: by specifying only level 0x001 it should be fast, though the flags are combined into a single value in the output. -- Bruce Cran