]> sourceware.org Git - lvm2.git/commitdiff
Snapshots LVs are never loaded in their own right, only along with their
authorAlasdair Kergon <agk@redhat.com>
Tue, 5 Jul 2011 01:08:42 +0000 (01:08 +0000)
committerAlasdair Kergon <agk@redhat.com>
Tue, 5 Jul 2011 01:08:42 +0000 (01:08 +0000)
origin.

lib/activate/activate.c

index 712f5784cc1965407eeb58ae39113d83acc69a6c..86ac31ecdcda08f5d293d48f5d31a4d3d3a11121 100644 (file)
@@ -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;
        }
This page took 0.032755 seconds and 5 git commands to generate.