[Ocfs2-tools-devel] [PATCH 0/6] Unwritten extent support in ocfs2-tools, take 1

Tao Ma tao.ma at oracle.com
Mon Sep 24 02:05:05 PDT 2007


This patch set add unwritten extent support in ocfs2-tools.

 Signed-off-by: Tao Ma <tao.ma at oracle.com>

---
 debugfs.ocfs2/utils.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/debugfs.ocfs2/utils.c b/debugfs.ocfs2/utils.c
index 75ac7a8..7d91bb4 100644
--- a/debugfs.ocfs2/utils.c
+++ b/debugfs.ocfs2/utils.c
@@ -91,7 +91,10 @@ void get_compat_flag(uint32_t flag, GString *str)
 
 void get_rocompat_flag(uint32_t flag, GString *str)
 {
-	if (flag)
+	if (flag & OCFS2_FEATURE_RO_COMPAT_UNWRITTEN)
+		g_string_append(str, "Unwritten ");
+
+	if (flag & ~OCFS2_FEATURE_RO_COMPAT_UNWRITTEN)
 		 g_string_append(str, "Unknown ");
 
 	if (!str->len)
-- 
1.5.3.2.g4f337



More information about the Ocfs2-tools-devel mailing list