[Ocfs2-tools-devel] [PATCH 16/50] libocfs2: Add the 'refcount' feature to the feature definitions.
Tao Ma
tao.ma at oracle.com
Mon Jan 11 07:31:02 PST 2010
From: Joel Becker <joel.becker at oracle.com>
Add refcount trees to the selectable and printable feature definitions.
Signed-off-by: Joel Becker <joel.becker at oracle.com>
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 cf3a0dd..7dcdc27 100644
--- a/libocfs2/feature_string.c
+++ b/libocfs2/feature_string.c
@@ -75,7 +75,8 @@ static ocfs2_fs_options feature_level_defaults[] = {
OCFS2_FEATURE_INCOMPAT_EXTENDED_SLOT_MAP |
OCFS2_FEATURE_INCOMPAT_INLINE_DATA |
OCFS2_FEATURE_INCOMPAT_META_ECC |
- OCFS2_FEATURE_INCOMPAT_XATTR,
+ OCFS2_FEATURE_INCOMPAT_XATTR |
+ OCFS2_FEATURE_INCOMPAT_REFCOUNT_TREE,
OCFS2_FEATURE_RO_COMPAT_UNWRITTEN |
OCFS2_FEATURE_RO_COMPAT_USRQUOTA |
OCFS2_FEATURE_RO_COMPAT_GRPQUOTA }, /* OCFS2_FEATURE_LEVEL_MAX_FEATURES */
@@ -135,6 +136,11 @@ static struct fs_feature_flags ocfs2_supported_features[] = {
{0, 0, OCFS2_FEATURE_RO_COMPAT_GRPQUOTA},
},
{
+ "refcount",
+ {0, OCFS2_FEATURE_INCOMPAT_REFCOUNT_TREE, 0},
+ {0, OCFS2_FEATURE_INCOMPAT_REFCOUNT_TREE, 0},
+ },
+ {
NULL,
{0, 0, 0},
{0, 0, 0}
@@ -210,6 +216,10 @@ static struct feature_name ocfs2_feature_names[] = {
.fn_flag = {0, 0, OCFS2_FEATURE_RO_COMPAT_GRPQUOTA},
},
{
+ .fn_name = "refcount",
+ .fn_flag = {0, OCFS2_FEATURE_INCOMPAT_REFCOUNT_TREE, 0},
+ },
+ {
.fn_name = NULL,
},
};
--
1.5.5
More information about the Ocfs2-tools-devel
mailing list