Whamcloud - gitweb
e2fsck: Skip journal checks if the fs is mounted and doesn't need recovery
authorTheodore Ts'o <tytso@mit.edu>
Tue, 28 Apr 2009 13:09:44 +0000 (09:09 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 28 Apr 2009 13:09:44 +0000 (09:09 -0400)
commit47c1b8e16668daa6e74cee3c7b8bdf237ffefe70
treebb7f82f4f7a4868b051a1ff0875faf28b8fd12e8
parentb08c29131af0b0289e20042c8f2f29cb75e6415f
e2fsck: Skip journal checks if the fs is mounted and doesn't need recovery

If we are checking a mounted filesystem (typically the root
filesystem, mounted read/only) and the NEEDS_RECOVERY flag is not set,
skip all of the checks associated with making sure the journal is
consistent.  There is the very slight possibility we could lose if the
NEEDS_RECOVERY flag was somehow cleared even though there was data in
the journal, but this has practically never happend in practice, and
it reduces the number of reads required at boot-time, which is a big
deal when trying to reduce boot times with HDD's.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
e2fsck/unix.c