From: Anand Jain <Anand.Jain@oracle.com>
To: dsterba@suse.cz, linux-btrfs@vger.kernel.org,
chris.mason@fusionio.com, jbacik@fusionio.com
Subject: Re: [PATCH 2/2] btrfs-progs: filesystem show of specified mounted disk should work
Date: Wed, 23 Oct 2013 10:08:16 +0800 [thread overview]
Message-ID: <52672F90.8060804@oracle.com> (raw)
In-Reply-To: <20131022143303.GU1032@twin.jikos.cz>
On 10/22/13 10:33 PM, David Sterba wrote:
> On Tue, Oct 22, 2013 at 01:53:22PM +0800, Anand Jain wrote:
>> @@ -386,7 +395,7 @@ static int btrfs_scan_kernel(void *search)
>> static const char * const cmd_show_usage[] = {
>> - "btrfs filesystem show [options] [<path>|<uuid>]",
>> + "btrfs filesystem show [options|<path>|<uuid>]",
>
> Options should stay separate from the path/uuid, you're extending the
> syntax to accept a device:
>
> "btrfs filesystem show [options] [<path>|<uuid>|<device>]",
>
> I'm fixing it locally, let me know if this doesn't match what you've
> intended.
I am confused, on how the options should be represented,
but the internal design is as below.
When either uuid/path/dev is provide the option
-d/-m (which implies to read-disks or kernel) will not apply,
since internally we would determine that based on whether the
given disk/uuid is mounted/unmounted.
so option -d/-m don't apply when last argument is provided.
so the right commands are
btrfs fi show <-- probe mount-points and then disks for unmounted btrfs
btrfs fi show -d <-- probe all disks even they are mounted (for legacy
purpose, as in the original design)
btrfs fi show /dev/sda <-- use mount point if disk is mounted OR disk
path if unmounted
btrfs fi show -m <-- show only mounted btrfs.
Thanks, Anand
next prev parent reply other threads:[~2013-10-23 2:08 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-22 5:53 [PATCH 1/2] btrfs-progs: make get_btrfs_mount callable Anand Jain
2013-10-22 5:53 ` [PATCH 2/2] btrfs-progs: filesystem show of specified mounted disk should work Anand Jain
2013-10-22 14:33 ` David Sterba
2013-10-23 2:08 ` Anand Jain [this message]
2013-10-24 14:51 ` David Sterba
2013-10-24 14:54 ` Hugo Mills
2013-10-24 17:21 ` Anand Jain
2013-10-22 16:39 ` David Sterba
2013-10-23 1:53 ` Anand Jain
2013-10-22 14:43 ` [PATCH 1/2] btrfs-progs: make get_btrfs_mount callable David Sterba
2013-10-23 2:11 ` Anand Jain
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=52672F90.8060804@oracle.com \
--to=anand.jain@oracle.com \
--cc=chris.mason@fusionio.com \
--cc=dsterba@suse.cz \
--cc=jbacik@fusionio.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 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.