From: David Teigland <teigland@sourceware.org>
To: lvm-devel@redhat.com
Subject: main - lvchange: handle unrecognized writecache setting
Date: Fri, 9 Dec 2022 14:51:41 +0000 (GMT) [thread overview]
Message-ID: <20221209145141.E140A38388F8@sourceware.org> (raw)
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=9ce55a43d0165da9827e7b8e75bf25583a571e89
Commit: 9ce55a43d0165da9827e7b8e75bf25583a571e89
Parent: 6613a61d3b5ce4d12a6fef79195eac34f30ef4da
Author: David Teigland <teigland@redhat.com>
AuthorDate: Thu Dec 8 15:48:30 2022 -0600
Committer: David Teigland <teigland@redhat.com>
CommitterDate: Thu Dec 8 15:48:30 2022 -0600
lvchange: handle unrecognized writecache setting
It was being ignored.
---
tools/lvchange.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/tools/lvchange.c b/tools/lvchange.c
index 34c9e36fd..dfbefa000 100644
--- a/tools/lvchange.c
+++ b/tools/lvchange.c
@@ -665,6 +665,11 @@ static int _lvchange_writecache(struct cmd_context *cmd,
seg->writecache_settings.max_age = settings.max_age;
set_count++;
}
+ if (settings.new_key && settings.new_val) {
+ seg->writecache_settings.new_key = settings.new_key;
+ seg->writecache_settings.new_val = settings.new_val;
+ set_count++;
+ }
if (!set_count) {
/*
reply other threads:[~2022-12-09 14:51 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=20221209145141.E140A38388F8@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.