All of lore.kernel.org
 help / color / mirror / Atom feed
From: Qu Wenruo <wqu@suse.com>
To: linux-btrfs@vger.kernel.org, fstests@vger.kernel.org
Cc: dsterba@suse.cz, amir73il@gmail.com
Subject: [PATCH 2/3] fstests: log-writes: Add support for METADATA flag
Date: Tue,  6 Mar 2018 16:15:54 +0800	[thread overview]
Message-ID: <20180306081555.3242-2-wqu@suse.com> (raw)
In-Reply-To: <20180306081555.3242-1-wqu@suse.com>

Signed-off-by: Qu Wenruo <wqu@suse.com>
---
 src/log-writes/log-writes.c | 3 ++-
 src/log-writes/log-writes.h | 9 +++++----
 2 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/src/log-writes/log-writes.c b/src/log-writes/log-writes.c
index 66fad350..d755194a 100644
--- a/src/log-writes/log-writes.c
+++ b/src/log-writes/log-writes.c
@@ -130,7 +130,8 @@ struct flags_to_str_entry {
 	DEFINE_LOG_FLAGS_STR_ENTRY(FLUSH),
 	DEFINE_LOG_FLAGS_STR_ENTRY(FUA),
 	DEFINE_LOG_FLAGS_STR_ENTRY(DISCARD),
-	DEFINE_LOG_FLAGS_STR_ENTRY(MARK)
+	DEFINE_LOG_FLAGS_STR_ENTRY(MARK),
+	DEFINE_LOG_FLAGS_STR_ENTRY(METADATA)
 };
 
 #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
diff --git a/src/log-writes/log-writes.h b/src/log-writes/log-writes.h
index 35ca3583..75fb8ac0 100644
--- a/src/log-writes/log-writes.h
+++ b/src/log-writes/log-writes.h
@@ -20,10 +20,11 @@ typedef __u32 u32;
 /*
  * Constants copied from kernel file drivers/md/dm-log-writes.c
  */
-#define LOG_FLUSH_FLAG (1 << 0)
-#define LOG_FUA_FLAG (1 << 1)
-#define LOG_DISCARD_FLAG (1 << 2)
-#define LOG_MARK_FLAG (1 << 3)
+#define LOG_FLUSH_FLAG		(1 << 0)
+#define LOG_FUA_FLAG		(1 << 1)
+#define LOG_DISCARD_FLAG	(1 << 2)
+#define LOG_MARK_FLAG		(1 << 3)
+#define LOG_METADATA_FLAG	(1 << 4)
 
 #define WRITE_LOG_VERSION 1
 #define WRITE_LOG_MAGIC 0x6a736677736872
-- 
2.15.1


  reply	other threads:[~2018-03-06  8:16 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-06  8:15 [PATCH 1/3] fstests: log-writes: Add support to output human readable flags Qu Wenruo
2018-03-06  8:15 ` Qu Wenruo [this message]
2018-03-06  8:15 ` [PATCH 3/3] fstests: btrfs: Add test case to check v1 space cache corruption Qu Wenruo
2018-03-06  9:03   ` Amir Goldstein
2018-03-06  9:25     ` Qu Wenruo
2018-03-06 10:12   ` Filipe Manana
2018-03-06 10:53     ` Qu Wenruo
2018-03-06 11:06       ` Nikolay Borisov
2018-03-06 12:22       ` Filipe Manana
2018-03-06 12:07     ` Qu Wenruo
2018-03-06 12:25       ` Filipe Manana
2018-03-06  8:35 ` [PATCH 1/3] fstests: log-writes: Add support to output human readable flags Amir Goldstein
2018-03-06  8:51 ` [PATCH v2 " Qu Wenruo
2018-03-14  9:02 [PATCH " Qu Wenruo
2018-03-14  9:02 ` [PATCH 2/3] fstests: log-writes: Add support for METADATA flag Qu Wenruo
2018-03-14 10:06   ` Amir Goldstein
2018-03-21  8:01 [PATCH 1/3] fstests: log-writes: Add support to output human readable flags Qu Wenruo
2018-03-21  8:01 ` [PATCH 2/3] fstests: log-writes: Add support for METADATA flag Qu Wenruo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180306081555.3242-2-wqu@suse.com \
    --to=wqu@suse.com \
    --cc=amir73il@gmail.com \
    --cc=dsterba@suse.cz \
    --cc=fstests@vger.kernel.org \
    --cc=linux-btrfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.