mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
mirror: preserve MIRRORED status for temporara image
When lvconvert adds a new leg - it's doing it free 'temporary' image layer - however this temporary 'internal' mirror is also MIRRORED LV. But the status bit was not properly transfered through layer.
This commit is contained in:
parent
851095a6af
commit
0ad95b77d0
@ -1,5 +1,6 @@
|
||||
Version 2.02.168 -
|
||||
====================================
|
||||
Preserve mirrored status for temporary layered mirrors.
|
||||
Use transient raid check before repairing raid volume.
|
||||
Implement transient status check for raid volumes.
|
||||
Only log msg as debug if lvm2-lvmdbusd unit missing for D-Bus notification.
|
||||
|
@ -1883,7 +1883,9 @@ static int _form_mirror(struct cmd_context *cmd, struct alloc_handle *ah,
|
||||
return_0;
|
||||
|
||||
if (!lv_add_mirror_lvs(lv, img_lvs, mirrors,
|
||||
MIRROR_IMAGE | (lv->status & LOCKED),
|
||||
/* Pass through MIRRORED & LOCKED status flag
|
||||
* TODO: Any other would be needed ?? */
|
||||
MIRROR_IMAGE | (lv->status & (MIRRORED | LOCKED)),
|
||||
region_size)) {
|
||||
log_error("Aborting. Failed to add mirror segment. "
|
||||
"Remove new LV and retry.");
|
||||
|
Loading…
Reference in New Issue
Block a user