mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
Commit ID 46a75dedb4
consolidated code from the
various dmeventd plug-ins into a new function called 'dmeventd_lvm2_command', but the new function did not strip off the "_mlog" extentions that the mirror plug-in had been doing. This created bug 794904 - failure to replace devices in a redundant log. The test suite did catch this scenario because it performs repair tests (mainly) through the CLI and not dmeventd. It's also not easy to test because the test itself will hang if the bug is encountered.
This commit is contained in:
parent
68d84fa3eb
commit
bad8b5848f
@ -1,5 +1,6 @@
|
||||
Version 2.02.96 -
|
||||
================================
|
||||
Fix ability to handle failures in mirrored log (regression intro 2.02.89).
|
||||
Fix unlocking volume group in vgreduce in error path.
|
||||
Exit immediately if LISTEN_PID env var incorrect during systemd handover.
|
||||
Detect VG name being part of the LV name in lvconvert --splitmirrors -n.
|
||||
|
@ -160,6 +160,11 @@ int dmeventd_lvm2_command(struct dm_pool *mem, char *buffer, size_t size,
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* strip off the mirror component designations */
|
||||
layer = strstr(lv, "_mlog");
|
||||
if (layer)
|
||||
*layer = '\0';
|
||||
|
||||
r = dm_snprintf(buffer, size, "%s %s/%s", cmd, vg, lv);
|
||||
|
||||
dm_pool_free(mem, vg);
|
||||
|
Loading…
Reference in New Issue
Block a user