summaryrefslogtreecommitdiff
path: root/tools/pvscan.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/pvscan.c')
-rw-r--r--tools/pvscan.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/pvscan.c b/tools/pvscan.c
index 55c708682..b8a995699 100644
--- a/tools/pvscan.c
+++ b/tools/pvscan.c
@@ -1445,7 +1445,10 @@ static int _pvscan_cache_args(struct cmd_context *cmd, int argc, char **argv,
cmd->pvscan_cache_single = 1;
- dev_cache_scan();
+ if (!setup_devices(cmd)) {
+ log_error("Failed to set up devices.");
+ return_0;
+ }
/*
* Get list of args. Do not use filters.