Whamcloud - gitweb
tune2fs: prevent stable_inodes feature from being cleared
authorEric Biggers <ebiggers@google.com>
Wed, 1 Apr 2020 20:32:37 +0000 (13:32 -0700)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 10 Apr 2020 15:23:12 +0000 (11:23 -0400)
commit950002f7ce619a3a5014f980eb02608cbae24f46
tree1c4ef7962527e94902ca2d7c2ef53f4d6c58e7f8
parentb88883f78755f8bb4fdd8b060e82a253f21e2dfa
tune2fs: prevent stable_inodes feature from being cleared

Similar to encrypt and verity, once the stable_inodes feature has been
enabled there may be files anywhere on the filesystem that require this
feature.  Therefore, in general it's unsafe to allow clearing it.  Don't
allow tune2fs to do so.  Like encrypt and verity, it can still be
cleared with debugfs if someone really knows what they're doing.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
misc/tune2fs.c