From: Daniel Rosenberg Date: Thu, 11 Jun 2020 04:22:05 +0000 (-0700) Subject: AOSP: ANDROID: mke2fs: Support encrypt+casefold X-Git-Tag: v1.45.7~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b22c36e60cddc7c11bc8071a8390f98347b98052;p=thirdparty%2Fe2fsprogs.git AOSP: ANDROID: mke2fs: Support encrypt+casefold In preparation for upcoming kernel changes that will make the kernel support both encryption and casefolding at the same time, allow mke2fs to enable both features at the same time. Signed-off-by: Daniel Rosenberg Google-Bug-Id: 138322712 Test: Create fs with casefold and encryption enabled via mke2fs Change-Id: I4e2350e43e21cffb3d972310cd74df1e662bf87e From AOSP commit: f8fc427df385260f3424e1e9d5485c8640606920 --- diff --git a/misc/mke2fs.c b/misc/mke2fs.c index edab06810..8cdb007c7 100644 --- a/misc/mke2fs.c +++ b/misc/mke2fs.c @@ -2480,15 +2480,6 @@ profile_error: } } - if (ext2fs_has_feature_casefold(&fs_param) && - ext2fs_has_feature_encrypt(&fs_param)) { - com_err(program_name, 0, "%s", - _("The encrypt and casefold features are not " - "compatible.\nThey can not be both enabled " - "simultaneously.\n")); - exit (1); - } - /* Don't allow user to set both metadata_csum and uninit_bg bits. */ if (ext2fs_has_feature_metadata_csum(&fs_param) && ext2fs_has_feature_gdt_csum(&fs_param))