[Ocfs2-tools-devel] [PATCH 03/20] libocfs2: Add the 'discontig_bg' feature to the feature definitions.

Tao Ma tao.ma at oracle.com
Mon May 17 01:46:50 PDT 2010


Add discontig_bg to the selectable and printable feature definitions.

Signed-off-by: Tao Ma <tao.ma at oracle.com>
---
 libocfs2/feature_string.c |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/libocfs2/feature_string.c b/libocfs2/feature_string.c
index 83fec9a..77a6def 100644
--- a/libocfs2/feature_string.c
+++ b/libocfs2/feature_string.c
@@ -90,7 +90,8 @@ static ocfs2_fs_options feature_level_defaults[] = {
 	 OCFS2_FEATURE_INCOMPAT_META_ECC |
 	 OCFS2_FEATURE_INCOMPAT_XATTR |
 	 OCFS2_FEATURE_INCOMPAT_REFCOUNT_TREE |
-	 OCFS2_FEATURE_INCOMPAT_INDEXED_DIRS,
+	 OCFS2_FEATURE_INCOMPAT_INDEXED_DIRS |
+	 OCFS2_FEATURE_INCOMPAT_DISCONTIG_BG,
 	 OCFS2_FEATURE_RO_COMPAT_UNWRITTEN |
 	 OCFS2_FEATURE_RO_COMPAT_USRQUOTA |
 	 OCFS2_FEATURE_RO_COMPAT_GRPQUOTA }, /* OCFS2_FEATURE_LEVEL_MAX_FEATURES */
@@ -187,6 +188,11 @@ static struct fs_feature_flags ocfs2_supported_features[] = {
 		{0, OCFS2_FEATURE_INCOMPAT_REFCOUNT_TREE, 0},
 	},
 	{
+		"discontig-bg",
+		{0, OCFS2_FEATURE_INCOMPAT_DISCONTIG_BG, 0},
+		{0, OCFS2_FEATURE_INCOMPAT_DISCONTIG_BG, 0},
+	},
+	{
 		NULL,
 		{0, 0, 0},
 		{0, 0, 0}
@@ -270,6 +276,10 @@ static struct feature_name ocfs2_feature_names[] = {
 		.fn_flag = {0, OCFS2_FEATURE_INCOMPAT_REFCOUNT_TREE, 0},
 	},
 	{
+		.fn_name = "discontig-bg",
+		.fn_flag = {0, OCFS2_FEATURE_INCOMPAT_DISCONTIG_BG, 0},
+	},
+	{
 		.fn_name = NULL,
 	},
 };
-- 
1.5.5




More information about the Ocfs2-tools-devel mailing list