diff options
Diffstat (limited to 'tools/pvremove.c')
-rw-r--r-- | tools/pvremove.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/pvremove.c b/tools/pvremove.c index 2dfdbd016..5c39ee0c7 100644 --- a/tools/pvremove.c +++ b/tools/pvremove.c @@ -45,7 +45,8 @@ int pvremove(struct cmd_context *cmd, int argc, char **argv) clear_hint_file(cmd); - lvmcache_label_scan(cmd); + if (!lvmcache_label_scan(cmd)) + return_ECMD_FAILED; /* When forcibly clearing a PV we don't care about a VG lock. */ if (pp.force == DONT_PROMPT_OVERRIDE) |