|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [OSSTEST PATCH 08/13] guest_umount_lv: Tolerate lack of volume group
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 <Ian.Jackson@xxxxxxxxxxxxx>
---
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
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |