Whamcloud - gitweb
e2fsck: allow checking on mounted root filesystem v1.42.3.wc1
authorAndreas Dilger <adilger@whamcloud.com>
Wed, 30 May 2012 18:16:53 +0000 (12:16 -0600)
committerAndreas Dilger <adilger@whamcloud.com>
Wed, 30 May 2012 23:08:39 +0000 (17:08 -0600)
commit9a5ba10d64d46351388ee72f81a9db793832c067
tree22f2186cd744a4382b1007fc38e9c3ab67de0686
parentbb0315e0dd8e5abc1247ef59862a984bb67b5835
e2fsck: allow checking on mounted root filesystem

Commit 732e26b98e5c79a4298dbe341f43b54b354bb241 added checks to
prevent e2fsck from being run in filesystem-modifying mode against
a mounted or otherwise busy device, due to several bug reports of
users doing this even with the verbose warnings in check_mount().

However, it also prevented e2fsck from checking a mounted root
filesystem, which will prevent the node from booting.  Once again
allow e2fsck to run against the mounted root filesystem.

Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: If7a92f98a66193bee7ca0936f7bb4775f7976938
e2fsck/unix.c