mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
mirrors: fix read_only_volume_list
If a mirror LV is listed in read_only_volume_list, it would still be activated rw. The activation would initially be readonly, but the monitoring function would immediately change it to rw. This was a regression from commit fade45b1d14c mirror: improve table update The monitoring function needs to copy the read_only setting into the new set of mirror activation options it uses.
This commit is contained in:
parent
763219611c
commit
9adae653e9
@ -1740,6 +1740,8 @@ int monitor_dev_for_events(struct cmd_context *cmd, const struct logical_volume
|
|||||||
|
|
||||||
if (!laopts)
|
if (!laopts)
|
||||||
laopts = &zlaopts;
|
laopts = &zlaopts;
|
||||||
|
else
|
||||||
|
mirr_laopts.read_only = laopts->read_only;
|
||||||
|
|
||||||
/* skip dmeventd code altogether */
|
/* skip dmeventd code altogether */
|
||||||
if (dmeventd_monitor_mode() == DMEVENTD_MONITOR_IGNORE)
|
if (dmeventd_monitor_mode() == DMEVENTD_MONITOR_IGNORE)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user