tunefs.ocfs2: support append direct io ro compat feature
PATCH 2/3 tunefs.ocfs2: support append direct io ro compat feature
Support turn on/off the feature. This is mostly for the existing ocfs2 volume upgrade.
Signed-off-by Joseph Qi <[email protected]>
--- tunefs.ocfs2/Makefile | 3 +- tunefs.ocfs2/feature_append_dio.c | 123 ++++++++++++++++++++++++++++++++++++++ tunefs.ocfs2/op_features.c | 2 + 3 files changed, 127 insertions(+), 1 deletion(-) create mode 100644 tunefs.ocfs2/feature_append_dio.c
tunefs.ocfs2/Makefile +2 -1
@@ -29,7 +29,8 @@ OCFS2NE_FEATURES = \ feature_xattr \ feature_indexed_dirs \ feature_quota \ - feature_clusterinfo + feature_clusterinfo \ + feature_append_dio OCFS2NE_OPERATIONS = \ op_cloned_volume \
tunefs.ocfs2/feature_append_dio.c new file +123 -0
123 lines not on this page · raw message
tunefs.ocfs2/op_features.c +2 -0
@@ -47,6 +47,7 @@ extern struct tunefs_feature refcount_feature;extern struct tunefs_feature indexed_dirs_feature;extern struct tunefs_feature discontig_bg_feature;extern struct tunefs_feature clusterinfo_feature; +extern struct tunefs_feature append_dio_feature;/* List of features supported by ocfs2ne */ static struct tunefs_feature *features[] = {
@@ -64,6 +65,7 @@ static struct tunefs_feature *features[] = { &indexed_dirs_feature, &discontig_bg_feature, &clusterinfo_feature, + &append_dio_feature, NULL, };
Signature · 1 line
1.8.4.3