mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-18 10:04:20 +03:00
activate_lvs: deactivate on uniterate
When activation of LVs fails prior pvmove start, try to deactivate already activated LVs. TODO: possibly remember which LVs where already activate and only those take down - devices which are already in-use will stay active.
This commit is contained in:
parent
eab9097b46
commit
c820b43fc0
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.177 -
|
Version 2.02.177 -
|
||||||
====================================
|
====================================
|
||||||
|
Deactivate activated LVs on error path when pvmove activation fails.
|
||||||
Add "io" to log/debug_classes for logging low-level I/O.
|
Add "io" to log/debug_classes for logging low-level I/O.
|
||||||
Eliminate redundant nested VG metadata in VG struct.
|
Eliminate redundant nested VG metadata in VG struct.
|
||||||
Avoid importing persistent filter in vgscan/pvscan/vgrename.
|
Avoid importing persistent filter in vgscan/pvscan/vgrename.
|
||||||
|
@ -475,7 +475,7 @@ int activate_lvs(struct cmd_context *cmd, struct dm_list *lvs, unsigned exclusiv
|
|||||||
log_error("Failed to activate %s", lvl->lv->name);
|
log_error("Failed to activate %s", lvl->lv->name);
|
||||||
dm_list_uniterate(lvh, lvs, &lvl->list) {
|
dm_list_uniterate(lvh, lvs, &lvl->list) {
|
||||||
lvl = dm_list_item(lvh, struct lv_list);
|
lvl = dm_list_item(lvh, struct lv_list);
|
||||||
if (!activate_lv(cmd, lvl->lv))
|
if (!deactivate_lv(cmd, lvl->lv))
|
||||||
stack;
|
stack;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user