diff options
author | Alasdair Kergon <agk@redhat.com> | 2012-03-02 02:55:45 +0000 |
---|---|---|
committer | Alasdair Kergon <agk@redhat.com> | 2012-03-02 02:55:45 +0000 |
commit | b804340f01874f1fa11e3b8f18d0a5cc086fe648 (patch) | |
tree | e87482115f322c0882991ebbbf8569da9f0527e6 /tools/pvremove.c | |
parent | e70d12be9e6fb454590ee70480da6116aacbbc20 (diff) | |
download | lvm2-b804340f01874f1fa11e3b8f18d0a5cc086fe648.tar.gz lvm2-b804340f01874f1fa11e3b8f18d0a5cc086fe648.tar.xz lvm2-b804340f01874f1fa11e3b8f18d0a5cc086fe648.zip |
Reinstate error if e.g. daemon comms fails.
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 779ab355..efd8cb7f 100644 --- a/tools/pvremove.c +++ b/tools/pvremove.c @@ -128,8 +128,9 @@ 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->dev)) - log_debug("PV gone"); /* FIXME any better idea */ + goto_out; log_print("Labels on physical volume \"%s\" successfully wiped", pv_name); |