path: corretly implement path to snapshots

This commit is contained in:
Dietmar Maurer
2015-08-27 12:03:46 +02:00
parent 1f79bb07f1
commit e67069eb58
8 changed files with 37 additions and 12 deletions

View File

@ -85,7 +85,10 @@ sub parse_volname {
}
sub path {
my ($class, $scfg, $volname) = @_;
my ($class, $scfg, $volname, $storeid, $snapname) = @_;
die "volume snapshot is not possible on iscsi device"
if defined($snapname);
my ($vtype, $lun, $vmid) = $class->parse_volname($volname);