From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Jackson Subject: [OSSTEST PATCH 08/13] guest_umount_lv: Tolerate lack of volume group Date: Fri, 16 May 2014 19:01:35 +0100 Message-ID: <1400263300-22903-9-git-send-email-ian.jackson@eu.citrix.com> References: <1400263300-22903-1-git-send-email-ian.jackson@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WlMSf-0002EN-Sz for xen-devel@lists.xenproject.org; Fri, 16 May 2014 18:02:26 +0000 In-Reply-To: <1400263300-22903-1-git-send-email-ian.jackson@eu.citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org Cc: Ian Jackson , Ian Campbell List-Id: xen-devel@lists.xenproject.org Check if the guest has a volume group, and if not do nothing. We are going to introduce a kind of guest with no significant storage. Signed-off-by: Ian Jackson --- Osstest/TestSupport.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Osstest/TestSupport.pm b/Osstest/TestSupport.pm index 6dd0247..386008f 100644 --- a/Osstest/TestSupport.pm +++ b/Osstest/TestSupport.pm @@ -1634,7 +1634,9 @@ sub target_umount_lv ($$$) { sub guest_umount_lv ($$) { my ($ho,$gho) = @_; - target_umount_lv($ho, $gho->{Vg}, $gho->{Lv}); + if (defined $gho->{Vg}) { + target_umount_lv($ho, $gho->{Vg}, $gho->{Lv}); + } } sub target_tcp_check ($$) { -- 1.7.10.4