summaryrefslogtreecommitdiff
path: root/tools/pvremove.c
diff options
context:
space:
mode:
authorAlasdair Kergon <agk@redhat.com>2012-03-03 18:32:53 +0000
committerAlasdair Kergon <agk@redhat.com>2012-03-03 18:32:53 +0000
commit35216ca66c497820e35a11977e87c76ae174a7fb (patch)
tree5fa0aac61bb3ddaef4c64d691945f8630d187ff6 /tools/pvremove.c
parent59a5361fc4b4a404229acce72156be444e75fced (diff)
downloadlvm2-35216ca66c497820e35a11977e87c76ae174a7fb.tar.gz
Scan all devices for lvmetad if 'pvscan --cache' used without device list.
Diffstat (limited to 'tools/pvremove.c')
-rw-r--r--tools/pvremove.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/pvremove.c b/tools/pvremove.c
index f90f88a26..0c06c7f47 100644
--- a/tools/pvremove.c
+++ b/tools/pvremove.c
@@ -128,8 +128,7 @@ static int pvremove_single(struct cmd_context *cmd, const char *pv_name,
goto out;
}
- /* FIXME Avoid error if we expect that daemon might not know device */
- if (!lvmetad_pv_gone(dev))
+ if (!lvmetad_pv_gone_by_dev(dev))
goto_out;
log_print("Labels on physical volume \"%s\" successfully wiped",