[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 12/17] ext2fs: detect and warn when filesystem is an ext3 fs
From: |
Etienne Brateau |
Subject: |
[PATCH 12/17] ext2fs: detect and warn when filesystem is an ext3 fs |
Date: |
Sun, 23 Jan 2022 05:17:10 +0100 |
---
ext2fs/hyper.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/ext2fs/hyper.c b/ext2fs/hyper.c
index 9bff609f..ac18bbf1 100644
--- a/ext2fs/hyper.c
+++ b/ext2fs/hyper.c
@@ -134,6 +134,8 @@ get_hypermetadata (void)
}
if (le16toh (sblock->s_inode_size) != EXT2_GOOD_OLD_INODE_SIZE)
ext2_panic ("inode size %d isn't supported", le16toh
(sblock->s_inode_size));
+ if (EXT2_HAS_COMPAT_FEATURE(sblock, EXT3_FEATURE_COMPAT_HAS_JOURNAL))
+ ext2_warning ("mounting ext3 filesystem as ext2");
}
groups_count =
--
2.34.1
- Re: [PATCH 17/17] ext2fs: remove 2 unused functions, (continued)
- [PATCH 12/17] ext2fs: detect and warn when filesystem is an ext3 fs,
Etienne Brateau <=
- [PATCH 07/17] ext2fs: use macro to check flags, Etienne Brateau, 2022/01/22
- [PATCH 04/17] move to ext2_fs.h a #define, Etienne Brateau, 2022/01/22
- [PATCH 09/17] ext2fs: set the f_namelen to the correct value, Etienne Brateau, 2022/01/22
- [PATCH 15/17] Change a EIO by a ENOSPC in case where not enough space, Etienne Brateau, 2022/01/22
- Re: [PATCH 01/17] ext2fs Merge 2 headers, Samuel Thibault, 2022/01/23