Whamcloud - gitweb
e2fsck: don't add a UUID on a mounted filesystem with csums
authorMichael Marineau <michael.marineau@coreos.com>
Sun, 19 Jan 2014 22:09:34 +0000 (14:09 -0800)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 24 Feb 2014 00:21:33 +0000 (19:21 -0500)
commitc22f3284a7a5edc2cd0a24d370c901437bdfca49
tree9440dabbe9f0f917fc057588909729bffb1b69d7
parentfedfb27fe55f5fe643c1f110e55ee4413db8ec5b
e2fsck: don't add a UUID on a mounted filesystem with csums

This fix is similar to 66457fcb for tune2fs. When booting from a root
filesystem with an empty UUID which fsck fixes the following remount
step reliably fails, leaving the filesystem in an inconsistent state.
Like the tune2fs fix this patch resolves the issue by simply refusing to
update the UUID if the filesystem is mounted.

Signed-off-by: Michael Marineau <michael.marineau@coreos.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
e2fsck/super.c