In path use parsed volname not the volid and add 'basevol'

This commit is contained in:
Wolfgang Link
2016-04-04 13:58:34 +02:00
committed by Dietmar Maurer
parent 3672677da5
commit 74b724a699

View File

@ -148,7 +148,7 @@ sub path {
my $path = '';
if ($vtype eq "images") {
if ($volname =~ m/^subvol-/) {
if ($name =~ m/^subvol-/ || $name =~ m/^basevol-/) {
# fixme: we currently assume standard mount point?!
$path = "/$scfg->{pool}/$name";
} else {