How to quickly determine if UFS2 FS is "clean" from command line?

David Wolfskill david at catwhisker.org
Thu Dec 25 17:14:02 PST 2008


At work, we have some machines we're setting up that have a fair amount
of UFS2 "scratch space."

While we would prefer to leave the file systems in question intact
iff they are "clean," we do not want to run fsck(8) against them
if they are not (because we expect that it would take too long);
rather, we want to merely recreate them (with newfs(8)).

While I might be able to hack something together by cribbing
appropriate bits of fsck_ffs(8), I'm a great deal more comfortable
cobbling up glue scripts and the like -- I don't fancy myself all
that much of a C coder.

Anyone know of a reasonable way to quickly determine whether or not
a UFS2 file system is clean from the command line?

Thanks!

Peace,
david
-- 
David H. Wolfskill				david at catwhisker.org
Depriving a girl or boy of an opportunity for education is evil.

See http://www.catwhisker.org/~david/publickey.gpg for my public key.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20081226/58243a0d/attachment.pgp


More information about the freebsd-hackers mailing list