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

Bruce Cran bruce at cran.org.uk
Thu Dec 25 19:17:48 PST 2008


On Thu, 25 Dec 2008 17:49:56 -0800
David Wolfskill <david at catwhisker.org> 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


More information about the freebsd-hackers mailing list