mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
Snapshots LVs are never loaded in their own right, only along with their
origin.
This commit is contained in:
parent
b5750a61f1
commit
2aef1b08f0
@ -1112,7 +1112,7 @@ static int _preload_detached_lv(struct cmd_context *cmd, struct logical_volume *
|
|||||||
struct lv_list *lvl_pre;
|
struct lv_list *lvl_pre;
|
||||||
|
|
||||||
if ((lvl_pre = find_lv_in_vg(detached->lv_pre->vg, lv->name))) {
|
if ((lvl_pre = find_lv_in_vg(detached->lv_pre->vg, lv->name))) {
|
||||||
if (lv_is_visible(lvl_pre->lv) && lv_is_active(lv) &&
|
if (lv_is_visible(lvl_pre->lv) && lv_is_active(lv) && !lv_is_cow(lv) &&
|
||||||
!_lv_preload(lvl_pre->lv, detached->laopts, detached->flush_required))
|
!_lv_preload(lvl_pre->lv, detached->laopts, detached->flush_required))
|
||||||
return_0;
|
return_0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user