Shows min kernel version in the -O list-all output

eg: (version is show with in ())
btrfs-convert -O list-all
Filesystem features available:
extref          - increased hardlink limit per file to 65536 (0x40, 3.7, 
default)
skinny-metadata - reduced-size metadata extent refs (0x100, 3.10, default)
no-holes        - no explicit hole extents for files (0x200, 3.14)

mkfs.btrfs -O list-all
Filesystem features available:
mixed-bg        - mixed data and metadata block groups (0x4, 2.7.37)
extref          - increased hardlink limit per file to 65536 (0x40, 3.7, 
default)
raid56          - raid56 extended format (0x80, 3.9)
skinny-metadata - reduced-size metadata extent refs (0x100, 3.10, default)
no-holes        - no explicit hole extents for files (0x200, 3.14)

Signed-off-by: Anand Jain <anand.j...@oracle.com>
---
 utils.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/utils.c b/utils.c
index 2710ed7..0163915 100644
--- a/utils.c
+++ b/utils.c
@@ -657,10 +657,11 @@ void btrfs_list_all_fs_features(u64 mask_disallowed)
                        continue;
                if (mkfs_features[i].flag & BTRFS_MKFS_DEFAULT_FEATURES)
                        is_default = ", default";
-               fprintf(stderr, "%-20s- %s (0x%llx%s)\n",
+               fprintf(stderr, "%-20s- %s (0x%llx, %s%s)\n",
                                mkfs_features[i].name,
                                mkfs_features[i].desc,
                                mkfs_features[i].flag,
+                               mkfs_features[i].min_ker_ver,
                                is_default);
        }
 }
-- 
2.6.2

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to