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:
parent
729f472c04
commit
eefacdfa04
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user