[lvm-devel] master - dev-cache: cleanup: remove older part of the code in _index_dev_by_vgid_and_lvid

Peter Rajnoha prajnoha at fedoraproject.org
Wed Mar 30 13:55:05 UTC 2016


Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=c769d5249eea4d1b80f1fb0d33fc7505a1618107
Commit:        c769d5249eea4d1b80f1fb0d33fc7505a1618107
Parent:        06ef7ba8765d64044b008a33f1c1faeac6112a4a
Author:        Peter Rajnoha <prajnoha at redhat.com>
AuthorDate:    Wed Mar 30 14:35:06 2016 +0200
Committer:     Peter Rajnoha <prajnoha at redhat.com>
CommitterDate: Wed Mar 30 15:54:12 2016 +0200

dev-cache: cleanup: remove older part of the code in _index_dev_by_vgid_and_lvid

Part of devel code, not applicable anymore...
---
 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 50ef2f2..12d0d56 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;
 




More information about the lvm-devel mailing list