bug-hurd
[Top][All Lists]
Advanced

[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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]