Skip to contentSkip to conversation

tunefs.ocfs2: support append direct io ro compat feature

PATCH New Joseph Qi 1 participant 1 message Feb 2, 2015 OCFS2

lore
Share & tools
lore

Joseph Qi

author
#0 lore raw

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.

---
 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
index 585a68c..62a5e8e 100644
@@ -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
index 20b65a5..b6235aa 100644
@@ -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