diff options
author | Alasdair Kergon <agk@redhat.com> | 2011-07-05 01:08:42 +0000 |
---|---|---|
committer | Alasdair Kergon <agk@redhat.com> | 2011-07-05 01:08:42 +0000 |
commit | 2aef1b08f0e835b5ee33aa76e82150b120ae18dc (patch) | |
tree | 57ae416441bc75ae8a2c2bfc042d0568613110ec /lib/activate | |
parent | b5750a61f1bb96b5600b960fc7572e0cab76c867 (diff) | |
download | lvm2-2aef1b08f0e835b5ee33aa76e82150b120ae18dc.tar.gz lvm2-2aef1b08f0e835b5ee33aa76e82150b120ae18dc.tar.xz lvm2-2aef1b08f0e835b5ee33aa76e82150b120ae18dc.zip |
Snapshots LVs are never loaded in their own right, only along with their
origin.
Diffstat (limited to 'lib/activate')
-rw-r--r-- | lib/activate/activate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/activate/activate.c b/lib/activate/activate.c index 712f5784..86ac31ec 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; } |