[Ocfs2-tools-devel] [PATCH 1/6] Make debugfs.ocfs2 show the
unwritten flags.
Tao Ma
tao.ma at oracle.com
Mon Sep 24 02:15:16 PDT 2007
Make debugfs.ocfs2 show the unwritten flags
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