1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

Add a couple lvm_vg_open() calls to vgtest.c.

This commit is contained in:
Dave Wysochanski 2009-07-22 22:25:30 +00:00
parent 729f472c04
commit eefacdfa04

View File

@ -74,6 +74,20 @@ int main(int argc, char *argv[])
goto bad;
}
printf("Closing VG %s\n", vg_name);
if (!lvm_vg_close(vg))
goto bad;
printf("Re-opening VG %s for reading\n", vg_name);
vg = lvm_vg_open(handle, vg_name, "r", 0);
if (!vg)
goto bad;
printf("Closing VG %s\n", vg_name);
if (!lvm_vg_close(vg))
goto bad;
printf("Re-opening VG %s for writing\n", vg_name);
vg = lvm_vg_open(handle, vg_name, "w", 0);
if (!vg)
goto bad;
printf("Removing VG %s from system\n", vg_name);
status = lvm_vg_remove(vg);
if (lvm_errno(handle)) {