From: Zdenek Kabelac <zkabelac@sourceware.org>
To: lvm-devel@redhat.com
Subject: main - thinpool: use lv_config_profil for crop_metadata
Date: Mon, 8 Feb 2021 22:44:59 +0000 (GMT) [thread overview]
Message-ID: <20210208224459.47F2B384A02A@sourceware.org> (raw)
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=99e168162aeac82d8ed4634add4bdd05cf208315
Commit: 99e168162aeac82d8ed4634add4bdd05cf208315
Parent: 2be585b79c71b8f70c0252af5f09dbd5e6103030
Author: Zdenek Kabelac <zkabelac@redhat.com>
AuthorDate: Thu Feb 4 23:26:08 2021 +0100
Committer: Zdenek Kabelac <zkabelac@redhat.com>
CommitterDate: Mon Feb 8 23:18:44 2021 +0100
thinpool: use lv_config_profil for crop_metadata
Better support for thin-pools with individual profiles introduced
in the recent patch b4212be2e7e8797bbf8f9a166347659cc39ba075.
---
lib/metadata/lv_manip.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/metadata/lv_manip.c b/lib/metadata/lv_manip.c
index 29c95ff63..1ab9627dc 100644
--- a/lib/metadata/lv_manip.c
+++ b/lib/metadata/lv_manip.c
@@ -5585,7 +5585,7 @@ static int _lvresize_adjust_extents(struct logical_volume *lv,
if (!(seg = get_only_segment_using_this_lv(lv)))
return_0;
- max_metadata_size = get_thin_pool_max_metadata_size(cmd, vg->profile, &crop);
+ max_metadata_size = get_thin_pool_max_metadata_size(cmd, lv_config_profile(lv), &crop);
if (((uint64_t)lp->extents * vg->extent_size) > max_metadata_size) {
lp->extents = (max_metadata_size + vg->extent_size - 1) / vg->extent_size;
reply other threads:[~2021-02-08 22:44 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20210208224459.47F2B384A02A@sourceware.org \
--to=zkabelac@sourceware.org \
--cc=lvm-devel@redhat.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 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.