diff options
author | Alasdair Kergon <agk@redhat.com> | 2003-07-04 22:34:56 +0000 |
---|---|---|
committer | Alasdair Kergon <agk@redhat.com> | 2003-07-04 22:34:56 +0000 |
commit | 914c97239fe2dcc551ce28f2b1b40af8c7797369 (patch) | |
tree | be45472e984e6098a1a8e02fd1ad1e0f1532bb41 /tools/pvchange.c | |
parent | 8ac97125399fb2cbcad7ae61e49f4af1a021ce25 (diff) | |
download | lvm2-914c97239fe2dcc551ce28f2b1b40af8c7797369.tar.gz lvm2-914c97239fe2dcc551ce28f2b1b40af8c7797369.tar.xz lvm2-914c97239fe2dcc551ce28f2b1b40af8c7797369.zip |
Another sync point - numerous fixes & clean ups.
Diffstat (limited to 'tools/pvchange.c')
-rw-r--r-- | tools/pvchange.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/pvchange.c b/tools/pvchange.c index 5f33c183..5bdfc285 100644 --- a/tools/pvchange.c +++ b/tools/pvchange.c @@ -122,7 +122,7 @@ static int _pvchange_single(struct cmd_context *cmd, struct physical_volume *pv, log_verbose("Updating physical volume \"%s\"", pv_name); if (*pv->vg_name) { - if (!vg_write(vg)) { + if (!vg_write(vg) || !vg_commit(vg)) { unlock_vg(cmd, pv->vg_name); log_error("Failed to store physical volume \"%s\" in " "volume group \"%s\"", pv_name, vg->name); |