fix sheepdog path

We always need to specify a port, else kvm does not find the disk.
This commit is contained in:
Dietmar Maurer
2012-07-17 15:10:55 +02:00
parent 411476cd32
commit f7a1e35f69
3 changed files with 10 additions and 2 deletions

View File

@ -87,8 +87,10 @@ sub path {
my ($vtype, $name, $vmid) = $class->parse_volname($volname);
my $portal = $scfg->{portal};
my ($server, $port) = split(':', $portal);
$port = 7000 if !$port;
my $path = "sheepdog:$portal:$name";
my $path = "sheepdog:$server:$port:$name";
return ($path, $vmid, $vtype);
}