From: Qu Wenruo <quwenruo@cn.fujitsu.com>
To: linux-btrfs@vger.kernel.org, dsterba@suse.cz
Subject: [PATCH v3 0/4] Introduce dump option for btrfs-receive
Date: Tue, 1 Nov 2016 16:01:42 +0800 [thread overview]
Message-ID: <20161101080147.13163-1-quwenruo@cn.fujitsu.com> (raw)
The branch can be fetched from github:
https://github.com/adam900710/btrfs-progs/tree/send_dump
The branch doesn't contain the fake test case.
Introduce new "--dump" option for btrfs-receive, which will exam and dump
metadata info of a send stream.
This is quite handy to debug send stream.
Since such function is provided by old send-test tool, which doesn't even
compile now, remove the old send-test tool.
changelog:
v2:
Move from inspect subcommand to receive subcommand.
v3:
Add output for ctime/mtime/atime
(Human readable local time like "1111-11-01 11:11:11")
Rearrange the output from "key1: value1, key2: value2" to
"key1=value1 key2=value2". Suggested by David
Rename macro path_cat_or_error() to PATH_CAT_OR_RET(). Suggested by David
Change pointer to array to avoid memory allocation error. Suggested by David
Add the 5th patch to add a fake test case to show how the new output looks
like.
Qu Wenruo (4):
btrfs-progs: utils: Introduce function to escape characters
btrfs-progs: introduce new send-dump object
btrfs-progs: receive: introduce option to dump send stream
btrfs-progs: remove send-test tool
Documentation/btrfs-receive.asciidoc | 15 +-
Makefile.in | 8 +-
cmds-receive.c | 35 ++-
send-dump.c | 299 +++++++++++++++++++++++
send-dump.h | 29 +++
send-test.c | 447 -----------------------------------
utils.c | 17 ++
utils.h | 2 +
8 files changed, 394 insertions(+), 458 deletions(-)
create mode 100644 send-dump.c
create mode 100644 send-dump.h
delete mode 100644 send-test.c
--
2.10.1
next reply other threads:[~2016-11-01 8:02 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-01 8:01 Qu Wenruo [this message]
2016-11-01 8:01 ` [PATCH v3 1/4] btrfs-progs: utils: Introduce function to escape characters Qu Wenruo
2016-11-01 10:08 ` David Sterba
2016-11-02 1:19 ` Qu Wenruo
2016-11-02 10:55 ` David Sterba
2016-11-03 0:24 ` Qu Wenruo
2016-11-03 1:14 ` Qu Wenruo
2016-11-01 8:01 ` [PATCH v3 2/4] btrfs-progs: introduce new send-dump object Qu Wenruo
2016-11-01 10:22 ` David Sterba
2016-11-02 0:37 ` Qu Wenruo
2016-11-02 10:52 ` David Sterba
2016-11-03 0:21 ` Qu Wenruo
2016-11-01 8:01 ` [PATCH v3 3/4] btrfs-progs: receive: introduce option to dump send stream Qu Wenruo
2016-11-01 8:01 ` [PATCH v3 4/4] btrfs-progs: remove send-test tool Qu Wenruo
2016-11-02 14:59 ` David Sterba
2016-11-01 8:01 ` [PATCH 5/5] btrfs-progs: misc-test: Add send stream dump test 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=20161101080147.13163-1-quwenruo@cn.fujitsu.com \
--to=quwenruo@cn.fujitsu.com \
--cc=dsterba@suse.cz \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).