From: Jes Sorensen <jes@trained-monkey.org>
To: Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Cc: linux-raid@vger.kernel.org
Subject: Re: [PATCH] imsm: update num_data_stripes according to dev_size
Date: Wed, 25 Nov 2020 18:07:25 -0500 [thread overview]
Message-ID: <7a7efa84-2abd-0fb0-97a7-ad2ecf85c2a9@trained-monkey.org> (raw)
In-Reply-To: <20201124131515.1133-1-mariusz.tkaczyk@linux.intel.com>
On 11/24/20 8:15 AM, Mariusz Tkaczyk wrote:
> If array was created in UEFI there is possibility that
> member size is not rounded to 1MB. After any size reconfiguration
> it will be rounded down to 1MB per each member but the old
> component size will remain in metadata.
> During reshape old array size is calculated from component size because
> dev_size is not a part of map and is bumped to new value quickly.
> It may result in size mismatch if array is assembled during reshape.
>
> If difference in calculated size and dev_size is observed try to fix it.
> num_data_stripes value can be safety updated to smaller value if array
> doesn't occuppy whole reserved component space.
>
> Signed-off-by: Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
> ---
> super-intel.c | 84 +++++++++++++++++++++++++++++++++++++++++++++++----
> 1 file changed, 78 insertions(+), 6 deletions(-)
Applied
Thanks,
Jes
prev parent reply other threads:[~2020-11-25 23:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-24 13:15 [PATCH] imsm: update num_data_stripes according to dev_size Mariusz Tkaczyk
2020-11-25 23:07 ` Jes Sorensen [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=7a7efa84-2abd-0fb0-97a7-ad2ecf85c2a9@trained-monkey.org \
--to=jes@trained-monkey.org \
--cc=linux-raid@vger.kernel.org \
--cc=mariusz.tkaczyk@linux.intel.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).