Whamcloud - gitweb
AOSP: support the stable_inodes feature
authorEric Biggers <ebiggers@google.com>
Mon, 21 Oct 2019 23:30:43 +0000 (16:30 -0700)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 31 Oct 2019 23:32:27 +0000 (19:32 -0400)
commit2d2d00c6c6dc3f2aa72dccec635885f03a37a14f
tree8d59bf318e5dc3fb045b8f85bc1d9c05801fedaa
parentfa51c655f5c3d5d56d610c709ab57e255f59c974
AOSP: support the stable_inodes feature

Reserve the codepoint for EXT4_FEATURE_COMPAT_STABLE_INODES, allow it to
be set and cleared, and teach resize2fs to forbid shrinking the
filesystem if it is set.

This feature will allow the use of encryption policies where the inode
number is included in the IVs (initialization vectors) for encryption,
so data would be corrupted if the inodes were to be renumbered.

For more details, see the kernel patchset:
https://lkml.kernel.org/linux-fsdevel/20191021230355.23136-1-ebiggers@kernel.org/T/#u

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
From AOSP commit: 9aa30c254dd57df54f00c5d520b7ac867ad7ca68
lib/e2p/feature.c
lib/ext2fs/ext2_fs.h
lib/ext2fs/ext2fs.h
misc/mke2fs.c
misc/tune2fs.c
resize/main.c