From: Anand Jain <anand.jain@oracle.com>
To: Marcos Paulo de Souza <marcos@mpdesouza.com>,
dsterba@suse.com, linux-btrfs@vger.kernel.org
Cc: Marcos Paulo de Souza <mpdesouza@suse.com>
Subject: Re: [PATCH 0/2] btrfs-progs: Auto resize fs after device replace
Date: Sun, 8 Mar 2020 18:58:32 +0800 [thread overview]
Message-ID: <95a53477-a71d-5304-f4b2-8a0225414050@oracle.com> (raw)
In-Reply-To: <20200307224516.16315-1-marcos@mpdesouza.com>
On 3/8/20 6:45 AM, Marcos Paulo de Souza wrote:
> From: Marcos Paulo de Souza <mpdesouza@suse.com>
>
> These two patches make possible to resize the fs after a successful replace
> finishes. The flag -a is responsible for doing it (-r is already use, so -a in
> this context means "automatically").
If resize fails we should be able to fail the replace as well which does
not happen here. I am thinking this should be kernel feature, do the
resize part before calling btrfs_dev_replace_finishing().
IMO, it makes sense that replace and resize be in one command as
proposed in this patch. We had similar discussion whether to combine
replace and resize of missing device here:
https://patchwork.kernel.org/patch/11249009/
-Anand
> The first patch just moves the resize rationale to utils.c and the second patch
> adds the flag an calls resize if -a is informed replace finishes successfully.
>
> Please review!
>
> Marcos Paulo de Souza (2):
> btrfs-progs: Move resize into functionaly into utils.c
> btrfs-progs: replace: New argument to resize the fs after replace
>
> Documentation/btrfs-replace.asciidoc | 4 +-
> cmds/filesystem.c | 58 +--------------------------
> cmds/replace.c | 19 ++++++++-
> common/utils.c | 60 ++++++++++++++++++++++++++++
> common/utils.h | 1 +
> 5 files changed, 83 insertions(+), 59 deletions(-)
>
prev parent reply other threads:[~2020-03-08 10:59 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-07 22:45 [PATCH 0/2] btrfs-progs: Auto resize fs after device replace Marcos Paulo de Souza
2020-03-07 22:45 ` [PATCH 1/2] btrfs-progs: Move resize into functionaly into utils.c Marcos Paulo de Souza
2020-03-07 22:45 ` [PATCH 2/2] btrfs-progs: replace: New argument to resize the fs after replace Marcos Paulo de Souza
2020-03-18 10:56 ` Qu Wenruo
2020-03-18 20:47 ` Marcos Paulo de Souza
2020-03-19 7:03 ` Qu Wenruo
2020-03-08 10:58 ` Anand Jain [this message]
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=95a53477-a71d-5304-f4b2-8a0225414050@oracle.com \
--to=anand.jain@oracle.com \
--cc=dsterba@suse.com \
--cc=linux-btrfs@vger.kernel.org \
--cc=marcos@mpdesouza.com \
--cc=mpdesouza@suse.com \
/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).