Checking the clean bit of a filesystem

Christian Laursen xi at borderworlds.dk
Wed Jun 11 13:42:42 PDT 2003


Justin Hopper <gus at gusalmighty.com> writes:

> Does anyone know the easiest way, besides running fsck, to check the
> clean bit on a filesystem?  I need to check if a filesystem is marked
> clean and I do not want to call fsck.  If there is not a way through
> userland commands to check the clean bit, can someone point me in the
> general direction of where this bit is set (variable name in some
> structure, etc).

dumpfs(8) prints a lot of stuff about the specified filesystem, including
the clean flag.

-- 
Best regards
    Christian Laursen


More information about the freebsd-questions mailing list