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

@ -2,7 +2,7 @@ RELEASE=2.1
VERSION=2.0
PACKAGE=libpve-storage-perl
PKGREL=23
PKGREL=24
DESTDIR=
PREFIX=/usr

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);
}

View File

@ -1,3 +1,9 @@
libpve-storage-perl (2.0-24) unstable; urgency=low
* sheepdog: fix path() method, else kvm complains.
-- Proxmox Support Team <support@proxmox.com> Tue, 17 Jul 2012 15:12:34 +0200
libpve-storage-perl (2.0-23) unstable; urgency=low
* cleanup rbd driver