summaryrefslogtreecommitdiffstats
path: root/tools/vgcreate.c
diff options
context:
space:
mode:
authorAlasdair Kergon <agk@redhat.com>2003-07-04 22:34:56 +0000
committerAlasdair Kergon <agk@redhat.com>2003-07-04 22:34:56 +0000
commit914c97239fe2dcc551ce28f2b1b40af8c7797369 (patch)
treebe45472e984e6098a1a8e02fd1ad1e0f1532bb41 /tools/vgcreate.c
parent8ac97125399fb2cbcad7ae61e49f4af1a021ce25 (diff)
downloadlvm2-914c97239fe2dcc551ce28f2b1b40af8c7797369.tar.gz
lvm2-914c97239fe2dcc551ce28f2b1b40af8c7797369.tar.xz
lvm2-914c97239fe2dcc551ce28f2b1b40af8c7797369.zip
Another sync point - numerous fixes & clean ups.
Diffstat (limited to 'tools/vgcreate.c')
-rw-r--r--tools/vgcreate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/vgcreate.c b/tools/vgcreate.c
index 52a29c0c..707dc01c 100644
--- a/tools/vgcreate.c
+++ b/tools/vgcreate.c
@@ -110,7 +110,7 @@ int vgcreate(struct cmd_context *cmd, int argc, char **argv)
}
/* Store VG on disk(s) */
- if (!vg_write(vg)) {
+ if (!vg_write(vg) || !vg_commit(vg)) {
unlock_vg(cmd, vg_name);
unlock_vg(cmd, "");
return ECMD_FAILED;