Date: Fri, 26 Dec 2008 09:35:42 +0300 From: Sergey Zaharchenko <doublef-ctm@yandex.ru> To: David Wolfskill <david@catwhisker.org> Cc: hackers@freebsd.org Subject: Re: How to quickly determine if UFS2 FS is "clean" from command line? Message-ID: <20081226063542.GA20518@shark.localdomain> In-Reply-To: <20081226014956.GR4100@albert.catwhisker.org> References: <20081226011402.GP4100@albert.catwhisker.org> <20081226012224.2fbd579a@gluon> <20081226014956.GR4100@albert.catwhisker.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081226063542.GA20518>