shithub: lwext4

Download patch

ref: ccba18d3c3ce3a690f45841c7a7d4143694512a5
parent: 18d6406372a4bced5fdce0d9e6dcbe3a3b617848
author: gkostka <kostka.grzegorz@gmail.com>
date: Tue Oct 21 15:12:11 EDT 2014

Add extra superblock debug info


--- a/lwext4/ext4_fs.c
+++ b/lwext4/ext4_fs.c
@@ -131,74 +131,86 @@
 
     if(features_incompatible &
             EXT4_FEATURE_INCOMPAT_COMPRESSION){
-        ext4_dprintf(EXT4_DEBUG_FS, "COMPRESSION\n");
+        ext4_dprintf(EXT4_DEBUG_FS, "compression\n");
     }
     if(features_incompatible &
             EXT4_FEATURE_INCOMPAT_FILETYPE){
-        ext4_dprintf(EXT4_DEBUG_FS, "FILETYPE\n");
+        ext4_dprintf(EXT4_DEBUG_FS, "filetype\n");
     }
     if(features_incompatible &
             EXT4_FEATURE_INCOMPAT_RECOVER){
-        ext4_dprintf(EXT4_DEBUG_FS, "RECOVER\n");
+        ext4_dprintf(EXT4_DEBUG_FS, "recover\n");
     }
     if(features_incompatible &
             EXT4_FEATURE_INCOMPAT_JOURNAL_DEV){
-        ext4_dprintf(EXT4_DEBUG_FS,"JOURNAL_DEV\n");
+        ext4_dprintf(EXT4_DEBUG_FS,"journal_dev\n");
     }
     if(features_incompatible &
             EXT4_FEATURE_INCOMPAT_META_BG){
-        ext4_dprintf(EXT4_DEBUG_FS, "META_BG\n");
+        ext4_dprintf(EXT4_DEBUG_FS, "meta_bg\n");
     }
     if(features_incompatible &
             EXT4_FEATURE_INCOMPAT_EXTENTS){
-        ext4_dprintf(EXT4_DEBUG_FS, "EXTENTS\n");
+        ext4_dprintf(EXT4_DEBUG_FS, "extents\n");
     }
     if(features_incompatible &
             EXT4_FEATURE_INCOMPAT_64BIT){
-        ext4_dprintf(EXT4_DEBUG_FS, "64BIT\n");
+        ext4_dprintf(EXT4_DEBUG_FS, "64bit\n");
     }
     if(features_incompatible &
             EXT4_FEATURE_INCOMPAT_MMP){
-        ext4_dprintf(EXT4_DEBUG_FS, "MMP\n");
+        ext4_dprintf(EXT4_DEBUG_FS, "mnp\n");
     }
     if(features_incompatible &
             EXT4_FEATURE_INCOMPAT_FLEX_BG){
-        ext4_dprintf(EXT4_DEBUG_FS, "FLEX_BG\n");
+        ext4_dprintf(EXT4_DEBUG_FS, "flex_bg\n");
     }
     if(features_incompatible &
             EXT4_FEATURE_INCOMPAT_EA_INODE){
-        ext4_dprintf(EXT4_DEBUG_FS, "EA_INODE\n");
+        ext4_dprintf(EXT4_DEBUG_FS, "ea_inode\n");
     }
     if(features_incompatible &
             EXT4_FEATURE_INCOMPAT_DIRDATA){
-        ext4_dprintf(EXT4_DEBUG_FS, "DIRDATA\n");
+        ext4_dprintf(EXT4_DEBUG_FS, "dirdata\n");
     }
+    if(features_incompatible &
+            EXT4_FEATURE_INCOMPAT_BG_USE_META_CSUM){
+        ext4_dprintf(EXT4_DEBUG_FS, "meta_csum\n");
+    }
+    if(features_incompatible &
+            EXT4_FEATURE_INCOMPAT_LARGEDIR){
+        ext4_dprintf(EXT4_DEBUG_FS, "largedir\n");
+    }
+    if(features_incompatible &
+            EXT4_FEATURE_INCOMPAT_INLINE_DATA){
+        ext4_dprintf(EXT4_DEBUG_FS, "inline_data\n");
+    }
 }
 static void ext4_fs_debug_features_comp(uint32_t features_compatible)
 {
     if(features_compatible &
             EXT4_FEATURE_COMPAT_DIR_PREALLOC){
-        ext4_dprintf(EXT4_DEBUG_FS, "DIR_PREALLOC\n");
+        ext4_dprintf(EXT4_DEBUG_FS, " dir_prealloc\n");
     }
     if(features_compatible &
             EXT4_FEATURE_COMPAT_IMAGIC_INODES){
-        ext4_dprintf(EXT4_DEBUG_FS, "IMAGIC_INODES\n");
+        ext4_dprintf(EXT4_DEBUG_FS, "imagic_inodes\n");
     }
     if(features_compatible &
             EXT4_FEATURE_COMPAT_HAS_JOURNAL){
-        ext4_dprintf(EXT4_DEBUG_FS, "HAS_JOURNAL\n");
+        ext4_dprintf(EXT4_DEBUG_FS, "has_journal\n");
     }
     if(features_compatible &
             EXT4_FEATURE_COMPAT_EXT_ATTR){
-        ext4_dprintf(EXT4_DEBUG_FS, "EXT_ATTR\n");
+        ext4_dprintf(EXT4_DEBUG_FS, "ext_attr\n");
     }
     if(features_compatible &
             EXT4_FEATURE_COMPAT_RESIZE_INODE){
-        ext4_dprintf(EXT4_DEBUG_FS, "RESIZE_INODE\n");
+        ext4_dprintf(EXT4_DEBUG_FS, "resize_inode\n");
     }
     if(features_compatible &
             EXT4_FEATURE_COMPAT_DIR_INDEX){
-        ext4_dprintf(EXT4_DEBUG_FS, "DIR_INDEX\n");
+        ext4_dprintf(EXT4_DEBUG_FS, "dir_index\n");
     }
 }
 
@@ -206,31 +218,43 @@
 {
     if(features_ro &
             EXT4_FEATURE_RO_COMPAT_SPARSE_SUPER){
-        ext4_dprintf(EXT4_DEBUG_FS, "SPARSE_SUPER\n");
+        ext4_dprintf(EXT4_DEBUG_FS, "sparse_super\n");
     }
     if(features_ro &
             EXT4_FEATURE_RO_COMPAT_LARGE_FILE){
-        ext4_dprintf(EXT4_DEBUG_FS, "LARGE_FILE\n");
+        ext4_dprintf(EXT4_DEBUG_FS, "large_file\n");
     }
     if(features_ro &
             EXT4_FEATURE_RO_COMPAT_BTREE_DIR){
-        ext4_dprintf(EXT4_DEBUG_FS, "BTREE_DIR\n");
+        ext4_dprintf(EXT4_DEBUG_FS, "btree_dir\n");
     }
     if(features_ro &
             EXT4_FEATURE_RO_COMPAT_HUGE_FILE){
-        ext4_dprintf(EXT4_DEBUG_FS, "HUGE_FILE\n");
+        ext4_dprintf(EXT4_DEBUG_FS, "huge_file\n");
     }
     if(features_ro &
             EXT4_FEATURE_RO_COMPAT_GDT_CSUM){
-        ext4_dprintf(EXT4_DEBUG_FS, "GDT_CSUM\n");
+        ext4_dprintf(EXT4_DEBUG_FS, "gtd_csum\n");
     }
     if(features_ro &
             EXT4_FEATURE_RO_COMPAT_DIR_NLINK){
-        ext4_dprintf(EXT4_DEBUG_FS, "DIR_NLINK\n");
+        ext4_dprintf(EXT4_DEBUG_FS, "dir_nlink\n");
     }
     if(features_ro &
             EXT4_FEATURE_RO_COMPAT_EXTRA_ISIZE){
-        ext4_dprintf(EXT4_DEBUG_FS, "EXTRA_ISIZE\n");
+        ext4_dprintf(EXT4_DEBUG_FS, "extra_isize\n");
+    }
+    if(features_ro &
+            EXT4_FEATURE_RO_COMPAT_QUOTA){
+        ext4_dprintf(EXT4_DEBUG_FS, "quota\n");
+    }
+    if(features_ro &
+            EXT4_FEATURE_RO_COMPAT_BIGALLOC){
+        ext4_dprintf(EXT4_DEBUG_FS, "bigalloc\n");
+    }
+    if(features_ro &
+            EXT4_FEATURE_RO_COMPAT_METADATA_CSUM){
+        ext4_dprintf(EXT4_DEBUG_FS, "metadata_csum\n");
     }
 }