diff options
author | Peter Rajnoha <prajnoha@redhat.com> | 2016-03-30 14:35:06 +0200 |
---|---|---|
committer | Peter Rajnoha <prajnoha@redhat.com> | 2016-03-30 15:57:57 +0200 |
commit | 9a086a660772fbe8e0baa5717db94982f5015137 (patch) | |
tree | f851d9f098e7bd351fc8f3c06f739c9b8026023b | |
parent | 06ef7ba8765d64044b008a33f1c1faeac6112a4a (diff) | |
download | lvm2-9a086a660772fbe8e0baa5717db94982f5015137.tar.gz |
dev-cache: fix check for already indexed dev in _index_dev_by_vgid_and_lvid
-rw-r--r-- | lib/device/dev-cache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/device/dev-cache.c b/lib/device/dev-cache.c index 50ef2f29f..12d0d563f 100644 --- a/lib/device/dev-cache.c +++ b/lib/device/dev-cache.c @@ -529,7 +529,7 @@ static int _index_dev_by_vgid_and_lvid(struct device *dev) struct device_list *dl_vgid, *dl_lvid; int r = 0; - if (dev->vgid) + if (dev->flags & DEV_USED_FOR_LV) /* already indexed */ return 1; |