linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Zhao Lei <zhaolei@cn.fujitsu.com>
To: <linux-btrfs@vger.kernel.org>
Cc: Zhao Lei <zhaolei@cn.fujitsu.com>
Subject: [PATCH v2 0/2] btrfs-progs: Introduce open_btrfs_dir wrapper
Date: Wed, 26 Aug 2015 17:04:21 +0800	[thread overview]
Message-ID: <cover.1440579753.git.zhaolei@cn.fujitsu.com> (raw)

This patch introduce open_btrfs_dir() to open a dir in btrfs
filesystem.

It can be used for several tools in btrfs-progs.

Changelog v1-v2:
1: Add error message for open_file failed case

Zhao Lei (2):
  btrfs-progs: Introduce open_btrfs_dir wrapper
  btrfs-progs: use open_btrfs_dir for btrfs device command

 cmds-device.c | 16 +++++-----------
 utils.c       | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 utils.h       |  1 +
 3 files changed, 62 insertions(+), 11 deletions(-)

-- 
1.8.5.1


             reply	other threads:[~2015-08-26  9:06 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-26  9:04 Zhao Lei [this message]
2015-08-26  9:04 ` [PATCH v2 1/2] btrfs-progs: Introduce open_btrfs_dir wrapper Zhao Lei
2015-08-26 15:56   ` David Sterba
2015-08-26  9:04 ` [PATCH v2 2/2] btrfs-progs: use open_btrfs_dir for btrfs device command Zhao Lei
2015-08-26 15:58   ` David Sterba

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=cover.1440579753.git.zhaolei@cn.fujitsu.com \
    --to=zhaolei@cn.fujitsu.com \
    --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).