From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1208 invoked by alias); 22 Jul 2009 22:25:31 -0000 Received: (qmail 1173 invoked by uid 9657); 22 Jul 2009 22:25:30 -0000 Date: Wed, 22 Jul 2009 22:25:00 -0000 Message-ID: <20090722222530.1171.qmail@sourceware.org> From: wysochanski@sourceware.org To: lvm-devel@redhat.com, lvm2-cvs@sourceware.org Subject: LVM2/test/api vgtest.c Mailing-List: contact lvm2-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: lvm2-cvs-owner@sourceware.org X-SW-Source: 2009-07/txt/msg00119.txt.bz2 CVSROOT: /cvs/lvm2 Module name: LVM2 Changes by: wysochanski@sourceware.org 2009-07-22 22:25:30 Modified files: test/api : vgtest.c Log message: Add a couple lvm_vg_open() calls to vgtest.c. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/api/vgtest.c.diff?cvsroot=lvm2&r1=1.3&r2=1.4 --- LVM2/test/api/vgtest.c 2009/07/22 16:49:54 1.3 +++ LVM2/test/api/vgtest.c 2009/07/22 22:25:30 1.4 @@ -74,6 +74,20 @@ 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)) {