From: David Teigland <teigland@sourceware.org>
To: lvm-devel@redhat.com
Subject: main - lvreduce: use temporary flag when activating lv to check for fs
Date: Tue, 27 Sep 2022 18:01:13 +0000 (GMT) [thread overview]
Message-ID: <20220927180113.DA5CD3858C52@sourceware.org> (raw)
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=3ca44e13beb8532d19828c71540af0d0307fd017
Commit: 3ca44e13beb8532d19828c71540af0d0307fd017
Parent: c1ab9fb37faee56cee278ccd94cb958d30d61b94
Author: David Teigland <teigland@redhat.com>
AuthorDate: Tue Sep 27 12:59:17 2022 -0500
Committer: David Teigland <teigland@redhat.com>
CommitterDate: Tue Sep 27 12:59:17 2022 -0500
lvreduce: use temporary flag when activating lv to check for fs
This flag is meant to suppress udev processing of the LV.
---
lib/metadata/lv_manip.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lib/metadata/lv_manip.c b/lib/metadata/lv_manip.c
index 71aee7fb7..f2ec5d99c 100644
--- a/lib/metadata/lv_manip.c
+++ b/lib/metadata/lv_manip.c
@@ -6856,10 +6856,12 @@ int lv_resize(struct cmd_context *cmd, struct logical_volume *lv,
is_active = lv_is_active(lv_top);
if (is_reduce && !is_active && !strcmp(lp->fsopt, "checksize")) {
+ lv_top->status |= LV_TEMPORARY;
if (!activate_lv(cmd, lv_top)) {
log_error("Failed to activate %s to check for fs.", display_lvname(lv_top));
goto out;
}
+ lv_top->status &= ~LV_TEMPORARY;
if (!sync_local_dev_names(cmd))
stack;
activated_checksize = 1;
reply other threads:[~2022-09-27 18:01 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=20220927180113.DA5CD3858C52@sourceware.org \
--to=teigland@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.