Skip to contentSkip to conversation

main - dev_manager: do not query for open_count

PATCH Zdenek Kabelac 1 participant 1 message Feb 16, 2022

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=fa7b67eeebfc28bce355991eebe1b5f21f075e9a
Commit:        fa7b67eeebfc28bce355991eebe1b5f21f075e9a
Parent:        4fd76de4b69f8e5e6d5afa03d54cb4b8986c4bcc
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Fri Feb 11 23:55:08 2022 +0100
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Wed Feb 16 01:00:36 2022 +0100

dev_manager: do not query for open_count

Oepn count is not used along this code path.

---
 lib/activate/dev_manager.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/activate/dev_manager.c +1 -1
index 4d18d9838..feea06a47 100644
@@ -2268,7 +2268,7 @@ static int _add_dev_to_dtree(struct dev_manager *dm, struct dm_tree *dtree,
 		return 1;
 	}
 
-	if (!_info(dm->cmd, name, dlid, 1, 0, 0, &info, NULL, NULL))
+	if (!_info(dm->cmd, name, dlid, 0, 0, 0, &info, NULL, NULL))
 		return_0;
 
 	/*