[Ocfs2-tools-devel] [patch 1/7] Adds some macros in the header files.

tao.ma at oracle.com tao.ma at oracle.com
Mon Jun 11 23:43:34 PDT 2007


Add macro "OCFS2_FEATURE_INCOMPAT_LOCAL_MOUNT" in ocfs2_fs.h to protect users
from inadvertently mounting the fs after an aborted run without fsck-ing.

Index: new.ocfs2-tools/libocfs2/include/ocfs2.h
===================================================================
--- new.ocfs2-tools.orig/libocfs2/include/ocfs2.h	2007-06-11 13:51:55.000000000 -0400
+++ new.ocfs2-tools/libocfs2/include/ocfs2.h	2007-06-11 14:11:51.000000000 -0400
@@ -76,7 +76,8 @@
 #define OCFS2_LIB_FEATURE_INCOMPAT_SUPP		(OCFS2_FEATURE_INCOMPAT_SUPP | \
 						 OCFS2_FEATURE_INCOMPAT_HEARTBEAT_DEV | \
 						 OCFS2_FEATURE_INCOMPAT_RESIZE_INPROG | \
-						 OCFS2_FEATURE_INCOMPAT_LOCAL_MOUNT)
+						 OCFS2_FEATURE_INCOMPAT_LOCAL_MOUNT   | \
+						 OCFS2_FEATURE_INCOMPAT_REMOVE_SLOT_INPROG)
 
 #define OCFS2_LIB_FEATURE_RO_COMPAT_SUPP	OCFS2_FEATURE_RO_COMPAT_SUPP
 
Index: new.ocfs2-tools/libocfs2/include/ocfs2_fs.h
===================================================================
--- new.ocfs2-tools.orig/libocfs2/include/ocfs2_fs.h	2007-06-11 13:51:55.000000000 -0400
+++ new.ocfs2-tools/libocfs2/include/ocfs2_fs.h	2007-06-11 14:11:51.000000000 -0400
@@ -109,6 +109,12 @@
 /* Support for sparse allocation in b-trees */
 #define OCFS2_FEATURE_INCOMPAT_SPARSE_ALLOC	0x0010
 
+/* tunefs sets this incompat flag before starting slot remove and clears it
+ * at the end. This flag protects users from inadvertently mounting the fs
+ * after an aborted run without fsck-ing.
+ */
+#define OCFS2_FEATURE_INCOMPAT_REMOVE_SLOT_INPROG	0x0020
+
 /*
  * backup superblock flag is used to indicate that this volume
  * has backup superblocks.

-- 



More information about the Ocfs2-tools-devel mailing list