summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEtienne Brateau <etienne.brateau@gmail.com>2022-01-23 05:17:10 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2022-01-23 12:07:32 +0100
commitf40c6335ba84c05417e61696eb8ef1ea2ad5d75f (patch)
tree8bb1083373af879632f667eac35bd994b1527fe9
parent946d7ad0919a909790368b097a274450609f1b45 (diff)
ext2fs: detect and warn when filesystem is an ext3 fs
Message-Id: <20220123041715.19402-12-etienne.brateau@gmail.com>
-rw-r--r--ext2fs/hyper.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext2fs/hyper.c b/ext2fs/hyper.c
index 2a940308..3fe4a7d7 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 =