From: Allison Karlitskaya Date: Thu, 13 Mar 2025 16:18:17 +0000 (+0100) Subject: mke2fs: disallow -O verity without extents X-Git-Tag: v1.47.3-rc1~25 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=03fa1a5ee55d0653f5931cea3cab760599bab216;p=thirdparty%2Fe2fsprogs.git mke2fs: disallow -O verity without extents Similar to 64-bit support, fs-verity support requires extents, so don't allow to create a filesystem that has -O verity unless it also supports extents. --- diff --git a/misc/mke2fs.c b/misc/mke2fs.c index 66675976..456cf6f1 100644 --- a/misc/mke2fs.c +++ b/misc/mke2fs.c @@ -2397,6 +2397,14 @@ profile_error: exit(1); } + /* fs-verity support requires extents */ + if (ext2fs_has_feature_verity(&fs_param) && + !ext2fs_has_feature_extents(&fs_param)) { + printf("%s", _("Extents MUST be enabled for fs-verity " + "support. Pass -O extents to rectify.\n")); + exit(1); + } + /* Set first meta blockgroup via an environment variable */ /* (this is mostly for debugging purposes) */ if (ext2fs_has_feature_meta_bg(&fs_param) &&