Skip to contentSkip to conversation

master - pvscan cache: use lvmcache_label_scan

PATCH David Teigland 1 participant 1 message Aug 16, 2019

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=83261b79b578f213127af6350c555ec347b7211a
Commit:        83261b79b578f213127af6350c555ec347b7211a
Parent:        e01fddc5789b10d1bd15e8aee8985f14e81d3087
Author:        David Teigland <[email protected]>
AuthorDate:    Thu Aug 1 15:07:59 2019 -0500
Committer:     David Teigland <[email protected]>
CommitterDate: Fri Aug 16 13:26:12 2019 -0500

pvscan cache: use lvmcache_label_scan

instead of the lower level label_scan. The lvmcache wrapper around label_scan checks for and eliminates more duplicate devs and md components.

---
 tools/pvscan.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
tools/pvscan.c +1 -1
index 168d509..ac41500 100644
@@ -759,7 +759,7 @@ static void _online_pvscan_all_devs(struct cmd_context *cmd,
 
 	dm_list_init(&all_vgs);
 
-	label_scan(cmd);
+	lvmcache_label_scan(cmd);
 
 	if (!(iter = dev_iter_create(cmd->filter, 1))) {
 		log_error("dev_iter creation failed");