[Ocfs2-tools-devel] [patch 2/7] adds some output information in command "stats" for slot remove.

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


Let debugfs.ocfs2 outputs the incompat flag for aborted slot remove.

Index: new.ocfs2-tools/debugfs.ocfs2/utils.c
===================================================================
--- new.ocfs2-tools.orig/debugfs.ocfs2/utils.c	2007-06-11 13:51:58.000000000 -0400
+++ new.ocfs2-tools/debugfs.ocfs2/utils.c	2007-06-11 14:11:51.000000000 -0400
@@ -42,10 +42,14 @@ void get_incompat_flag(uint32_t flag, GS
 	if (flag & OCFS2_FEATURE_INCOMPAT_SPARSE_ALLOC)
 		g_string_append(str, "Sparse ");
 
+	if (flag & OCFS2_FEATURE_INCOMPAT_REMOVE_SLOT_INPROG)
+		g_string_append(str, "AbortedSlotRemove ");
+
 	if (flag & ~(OCFS2_FEATURE_INCOMPAT_HEARTBEAT_DEV |
 		     OCFS2_FEATURE_INCOMPAT_RESIZE_INPROG |
 		     OCFS2_FEATURE_INCOMPAT_LOCAL_MOUNT |
-		     OCFS2_FEATURE_INCOMPAT_SPARSE_ALLOC))
+		     OCFS2_FEATURE_INCOMPAT_SPARSE_ALLOC |
+		     OCFS2_FEATURE_INCOMPAT_REMOVE_SLOT_INPROG))
 		g_string_append(str, "Unknown ");
 
 	if (!str->len)

-- 



More information about the Ocfs2-tools-devel mailing list