Whamcloud - gitweb
e2fsck: don't use IO_FLAG_EXCLUSIVE for read-only root file systems
authorTheodore Ts'o <tytso@mit.edu>
Sat, 4 May 2013 23:07:18 +0000 (19:07 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 4 May 2013 23:07:18 +0000 (19:07 -0400)
commit26991d026e4b555229a4466ae4d003420321bbd2
treeb4643b29def6bae59e88cd00c6aa9c015587d62e
parentcc68e8a69aad45e318abe6bf1d80f6cd4a8dcd6a
e2fsck: don't use IO_FLAG_EXCLUSIVE for read-only root file systems

When opening the external journal, use the same logic to decide
whether or not to open the file system with EXT2_FLAG_EXCLUSIVE found
in main().

Otherwise, it's not posible to use e2fsck when the root file system is
using an external journal.

Reported-by: Calvin Owens <jcalvinowens@gmail.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
e2fsck/journal.c