From: David Sterba <dsterba@suse.cz>
To: Anand Jain <anand.jain@oracle.com>
Cc: linux-btrfs@vger.kernel.org
Subject: Re: [PATCH V4 2/2] btrfs-progs: Introduce device delete by devid
Date: Wed, 9 Mar 2016 17:55:15 +0100 [thread overview]
Message-ID: <20160309165515.GA18908@suse.cz> (raw)
In-Reply-To: <1457518226-601-1-git-send-email-anand.jain@oracle.com>
On Wed, Mar 09, 2016 at 06:10:26PM +0800, Anand Jain wrote:
> From: Anand Jain <Anand.Jain@oracle.com>
>
> This patch introduces new option <devid> for the command
>
> btrfs device delete <device_path|devid>[..] <mnt>
>
> In a user reported issue on a 3-disk-RAID1, one disk failed with its SB
> unreadable. Now with this patch user will have a choice to delete the
> device using devid.
>
> The other method we could do, is to match the input device_path to the
> available device_paths with in the kernel. But that won't work in all the
> cases, like what if user provided mapper path when the path within the
> kernel is a non-mapper path.
>
> This patch depends on the below kernel patch for the new feature to work,
> however it will fail-back to the old interface for the kernel without the
> patch
>
> Btrfs: Introduce device delete by devid
>
> Signed-off-by: Anand Jain <anand.jain@oracle.com>
> [ coding style fixes ]
> Signed-off-by: David Sterba <dsterba@suse.com>
> ---
> v4: a. For future benefit we should check for EOPNOTSUPP as well.
> b. Update the changes to be inline with kernel that is
> BTRFS_DEVICE_SPEC_BY_ID and BTRFS_VOL_ARG_V2_FLAGS_SUPPORTED
> naming changes. and
> (c. As I didn't see progs patch matching with the kernel naming
> changes in the ML.)
I did these changes and updated the patch in devel, mentioned in the
changelog as
[ refresh on top of current code, sync with latest kernel patches, other
minor changes ]
Please send any followup changes on top of the current devel patch.
next prev parent reply other threads:[~2016-03-09 16:55 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-06 9:33 [PATCH V3 2/2] btrfs-progs: Introduce device delete by devid Anand Jain
2016-02-18 16:49 ` David Sterba
2016-03-09 10:07 ` [PATCH V4 " Anand Jain
2016-03-09 10:10 ` Anand Jain
2016-03-09 16:55 ` David Sterba [this message]
2016-03-10 3:09 ` Anand Jain
2016-03-10 16:40 ` David Sterba
2016-03-14 17:48 ` Yauhen Kharuzhy
2016-03-14 18:36 ` 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=20160309165515.GA18908@suse.cz \
--to=dsterba@suse.cz \
--cc=anand.jain@oracle.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.