Whamcloud - gitweb
tune2fs: forbid changing uuid on an uninit_bg filesystem
authorDarrick J. Wong <darrick.wong@oracle.com>
Sun, 15 Dec 2013 01:51:04 +0000 (20:51 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 15 Dec 2013 01:51:04 +0000 (20:51 -0500)
commit66457fcb842300e757a69c49c2eb4d8e335be34c
tree6bb3a38a391b562a7751c6d79aeeda00608f094d
parenta9825cfe945e6dc6e300f89e7e613b80afde0189
tune2fs: forbid changing uuid on an uninit_bg filesystem

The old uninit_bg checksums depend on the UUID, so prohibit changes to
the UUID if a checksumming filesystem is mounted, because this
introduces a nasty race where the kernel and tune2fs are both trying
to rewrite group descriptors at the same time, with different ideas
about what the UUID is.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
misc/tune2fs.c