[pve-devel] [PATCH 4/5] volid_path sub : check if $ms is undef
Alexandre Derumier
aderumier at odiso.com
Fri Aug 21 08:05:50 CEST 2015
Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
src/PVE/LXC.pm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/PVE/LXC.pm b/src/PVE/LXC.pm
index da9f72e..f8a1b58 100644
--- a/src/PVE/LXC.pm
+++ b/src/PVE/LXC.pm
@@ -1858,8 +1858,8 @@ sub volid_path {
} elsif ($format eq 'raw') {
if ($scfg->{path}) {
- if ($ms eq 'rootfs') {
- $path = "loop:$path\n" if $ms eq 'rootfs';
+ if ($ms && $ms eq 'rootfs') {
+ $path = "loop:$path\n";
} elsif ($loopdevs) {
$path = PVE::LXC::find_loopdev($loopdevs, $path) if $loopdevs;
}
--
2.1.4
More information about the pve-devel
mailing list