Message ID | 20181126221949.12172-8-krisman@collabora.com |
---|---|
State | Accepted, archived |
Headers | show |
Series | Support encoding awareness and casefold | expand |
diff --git a/misc/tune2fs.c b/misc/tune2fs.c index a680b461cc86..4c92bee30b38 100644 --- a/misc/tune2fs.c +++ b/misc/tune2fs.c @@ -1459,6 +1459,12 @@ mmp_error: } if (FEATURE_ON(E2P_FEATURE_INCOMPAT, EXT4_FEATURE_INCOMPAT_ENCRYPT)) { + if (ext2fs_has_feature_fname_encoding(sb)) { + fputs(_("Cannot enable encrypt feature on filesystems " + "with the encoding feature enabled.\n"), + stderr); + return 1; + } fs->super->s_encrypt_algos[0] = EXT4_ENCRYPTION_MODE_AES_256_XTS; fs->super->s_encrypt_algos[1] =