diff options
Diffstat (limited to 'tools/pvscan.c')
-rw-r--r-- | tools/pvscan.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/pvscan.c b/tools/pvscan.c index 50d46051a..bce1fbb40 100644 --- a/tools/pvscan.c +++ b/tools/pvscan.c @@ -1626,7 +1626,8 @@ static int _pvscan_cache_all(struct cmd_context *cmd, int argc, char **argv, * which we want 'pvscan --cache' to do, and that uses * info from lvmcache, e.g. duplicate pv info. */ - lvmcache_label_scan(cmd); + if (!lvmcache_label_scan(cmd)) + return_0; cmd->pvscan_recreate_hints = 0; cmd->use_hints = 0; |