ext: Turn presence of encryption feature to a warning. Closes #179
This commit is contained in:
parent
1e47160a62
commit
9ba7ba47f7
@ -324,12 +324,15 @@ bool ext2_open(struct ext2_file_handle *ret, struct volume *part, const char *pa
|
|||||||
if (sb->s_rev_level != 0 &&
|
if (sb->s_rev_level != 0 &&
|
||||||
(sb->s_feature_incompat & EXT2_IF_COMPRESSION ||
|
(sb->s_feature_incompat & EXT2_IF_COMPRESSION ||
|
||||||
sb->s_feature_incompat & EXT2_IF_INLINE_DATA ||
|
sb->s_feature_incompat & EXT2_IF_INLINE_DATA ||
|
||||||
sb->s_feature_incompat & EXT2_FEATURE_INCOMPAT_META_BG ||
|
sb->s_feature_incompat & EXT2_FEATURE_INCOMPAT_META_BG)) {
|
||||||
sb->s_feature_incompat & EXT2_IF_ENCRYPT)) {
|
|
||||||
print("ext2: filesystem has unsupported features %x\n", sb->s_feature_incompat);
|
print("ext2: filesystem has unsupported features %x\n", sb->s_feature_incompat);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (sb->s_rev_level != 0 && sb->s_feature_incompat & EXT2_IF_ENCRYPT) {
|
||||||
|
print("ext2: WARNING: File system has encryption feature on, stuff may misbehave\n");
|
||||||
|
}
|
||||||
|
|
||||||
if (sb->s_state == EXT2_FS_UNRECOVERABLE_ERRORS) {
|
if (sb->s_state == EXT2_FS_UNRECOVERABLE_ERRORS) {
|
||||||
print("ext2: unrecoverable errors found\n");
|
print("ext2: unrecoverable errors found\n");
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user