1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

lvchange: handle unrecognized writecache setting

It was being ignored.
This commit is contained in:
David Teigland 2022-12-08 15:48:30 -06:00
parent 6613a61d3b
commit 9ce55a43d0

View File

@ -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) {
/*