From e2ac2ad9bcc9e5c526ef83403c9280e6daef191e Mon Sep 17 00:00:00 2001 From: Dave Wysochanski Date: Fri, 4 Sep 2009 19:17:46 +0000 Subject: [PATCH] Update lvm2app unit test vgtest - fix remove bug. We now must commit to disk after lvm_vg_remove(). --- test/api/vgtest.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/api/vgtest.c b/test/api/vgtest.c index ab5ebf6ab..cb35da3b3 100644 --- a/test/api/vgtest.c +++ b/test/api/vgtest.c @@ -49,9 +49,8 @@ uint64_t size = 1024; printf("Committing VG %s to disk\n", vg_name); \ status = lvm_vg_write(vg); \ if (status) { \ - fprintf(stderr, "Creation of volume group '%s' on " \ - "device '%s' failed\n", \ - lvm_vg_get_name(vg), device[0]); \ + fprintf(stderr, "Commit of volume group '%s' failed\n", \ + lvm_vg_get_name(vg)); \ goto bad; \ } #define vg_open(vg_name, mode) \ @@ -147,6 +146,7 @@ int main(int argc, char *argv[]) vg_open(vg_name, "w"); vg_remove(vg); + vg_commit(vg); vg_close(vg); lvm_quit(handle);