Commit dc9ca273 authored by Leigh B Stoller's avatar Leigh B Stoller

Backwards compatibility fix so that containers created on the XEN41

image will boot after reloading XEN43.
parent a633f2ed
......@@ -1670,8 +1670,13 @@ sub vnodeState($$$$)
}
# otherwise, if the logical (root) disk exists, consider it stopped
elsif (exists($private->{'disks'}->{$vnode_id})) {
my ($lvname) = @{ $private->{'disks'}->{$vnode_id} };
my $lvname;
if (ref($private->{'disks'}->{$vnode_id})) {
($lvname) = @{ $private->{'disks'}->{$vnode_id} };
}
else {
$lvname = $private->{'disks'}->{$vnode_id};
}
if (findLVMLogicalVolume($lvname)) {
$out = VNODE_STATUS_STOPPED();
}
......@@ -1854,8 +1859,13 @@ sub vnodeDestroy($$$$)
# Destroy the all the disks.
foreach my $key (keys(%{ $private->{'disks'} })) {
my ($lvname) = @{ $private->{'disks'}->{$key} };
my $lvname;
if (ref($private->{'disks'}->{$key})) {
($lvname) = @{ $private->{'disks'}->{$vnode_id} };
}
else {
$lvname = $private->{'disks'}->{$key};
}
if (findLVMLogicalVolume($lvname)) {
if ($lvname eq $vnode_id) {
my $rootvndisk = lvmVolumePath($lvname);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment