mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
dev-cache: fix check for already indexed dev in _index_dev_by_vgid_and_lvid
This commit is contained in:
parent
06ef7ba876
commit
9a086a6607
@ -529,7 +529,7 @@ static int _index_dev_by_vgid_and_lvid(struct device *dev)
|
|||||||
struct device_list *dl_vgid, *dl_lvid;
|
struct device_list *dl_vgid, *dl_lvid;
|
||||||
int r = 0;
|
int r = 0;
|
||||||
|
|
||||||
if (dev->vgid)
|
if (dev->flags & DEV_USED_FOR_LV)
|
||||||
/* already indexed */
|
/* already indexed */
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user