From: Alasdair Kergon Date: Tue, 5 Jul 2011 01:08:42 +0000 (+0000) Subject: Snapshots LVs are never loaded in their own right, only along with their X-Git-Tag: v2_02_91~768 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=2aef1b08f0e835b5ee33aa76e82150b120ae18dc;p=lvm2.git Snapshots LVs are never loaded in their own right, only along with their origin. --- diff --git a/lib/activate/activate.c b/lib/activate/activate.c index 712f5784c..86ac31ecd 100644 --- a/lib/activate/activate.c +++ b/lib/activate/activate.c @@ -1112,7 +1112,7 @@ static int _preload_detached_lv(struct cmd_context *cmd, struct logical_volume * struct lv_list *lvl_pre; 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)) return_0; }