mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-06 17:18:29 +03:00
lvd->lv_access & LV_SNAPSHOT not lvd->lv_status
This commit is contained in:
parent
b6afcf6458
commit
bf1b684e2e
@ -601,7 +601,7 @@ int import_snapshots(struct pool *mem, struct volume_group *vg,
|
|||||||
list_iterate (lvdh, &dl->lvds) {
|
list_iterate (lvdh, &dl->lvds) {
|
||||||
lvd = &(list_item(lvdh, struct lvd_list)->lvd);
|
lvd = &(list_item(lvdh, struct lvd_list)->lvd);
|
||||||
|
|
||||||
if (!(lvd->lv_status & LV_SNAPSHOT))
|
if (!(lvd->lv_access & LV_SNAPSHOT))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
minor = MINOR(lvd->lv_dev);
|
minor = MINOR(lvd->lv_dev);
|
||||||
|
Loading…
Reference in New Issue
Block a user