From owner-freebsd-hackers@FreeBSD.ORG Fri Dec 26 06:54:59 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 221911065670 for ; Fri, 26 Dec 2008 06:54:59 +0000 (UTC) (envelope-from doublef-ctm@yandex.ru) Received: from forwards4.yandex.ru (forwards4.yandex.ru [77.88.32.20]) by mx1.freebsd.org (Postfix) with ESMTP id 90C568FC13 for ; Fri, 26 Dec 2008 06:54:58 +0000 (UTC) (envelope-from doublef-ctm@yandex.ru) Received: from smtp5.yandex.ru (smtp5.yandex.ru [77.88.32.24]) by forwards4.yandex.ru (Yandex) with ESMTP id 66F3B193143; Fri, 26 Dec 2008 09:33:35 +0300 (MSK) Received: from coltel-gw-vpdn-p1497.coltel.ru ([83.167.77.232]:2892 "EHLO shark" smtp-auth: "doublef-ctm" TLS-CIPHER: TLS-PEER-CN1: ) by mail.yandex.ru with ESMTP id S6144104AbYLZGdY (ORCPT + 1 other); Fri, 26 Dec 2008 09:33:24 +0300 X-Yandex-Spam: 1 X-Yandex-Front: smtp5 X-Yandex-TimeMark: 1230273204 X-BornDate: 1161464400 X-Yandex-Karma: 0 X-Yandex-KarmaStatus: 0 X-MsgDayCount: 2 X-Comment: RFC 2476 MSA function at smtp5.yandex.ru logged sender identity as: doublef-ctm Received: by shark (Postfix, from userid 1000) id CD0FE1429CD; Fri, 26 Dec 2008 09:35:42 +0300 (MSK) Date: Fri, 26 Dec 2008 09:35:42 +0300 From: Sergey Zaharchenko To: David Wolfskill Message-ID: <20081226063542.GA20518@shark.localdomain> References: <20081226011402.GP4100@albert.catwhisker.org> <20081226012224.2fbd579a@gluon> <20081226014956.GR4100@albert.catwhisker.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="3V7upXqbjpZ4EhLz" Content-Disposition: inline In-Reply-To: <20081226014956.GR4100@albert.catwhisker.org> X-Listening-To: Silence User-Agent: Mutt/1.5.18 (2008-05-17) 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 06:54:59 -0000 --3V7upXqbjpZ4EhLz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello David! Thu, Dec 25, 2008 at 05:49:56PM -0800 you wrote: > Would anyone else be interested in a hack to dumpfs(8) in the form > of a command line flag (e.g., "-s" -- as in "short" or "super block > only") to tell it to just spit out the FS super block information > and skip the cylinder group stuff? Some of the stuff you want can be found here: root@shark:~# file -s /dev/ufs/home=20 /dev/ufs/home: Unix Fast File system [v2] (little-endian) last mounted on /= home, volume name home, last written at Fri Dec 26 06:33:07 2008, clean fla= g 0, readonly flag 0, number of blocks 13631488, number of data blocks 1320= 2246, number of cylinder groups 145, block size 16384, fragment size 2048, = average file size 16384, average number of files in dir 64, pending blocks = to free 4, pending inodes to free 0, system-wide uuid 0, minimum percentage= of free blocks 8, TIME optimization You probably want the clean flag (which is 0 for me because that device node is mounted). HTH, --=20 DoubleF No virus detected in this message. Ehrm, wait a minute... /kernel: pid 56921 (antivirus), uid 32000: exited on signal 9 Oh yes, no virus:) --3V7upXqbjpZ4EhLz Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAklUez4ACgkQwo7hT/9lVdyszwCbBsBQE4jSFPZuJYyB06RlONzo OqgAn0Ym4l/vs8Iv4afmfMT0CHVG6BD+ =EUrf -----END PGP SIGNATURE----- --3V7upXqbjpZ4EhLz--