fix sheepdog path
We always need to specify a port, else kvm does not find the disk.
This commit is contained in:
2
Makefile
2
Makefile
@ -2,7 +2,7 @@ RELEASE=2.1
|
|||||||
|
|
||||||
VERSION=2.0
|
VERSION=2.0
|
||||||
PACKAGE=libpve-storage-perl
|
PACKAGE=libpve-storage-perl
|
||||||
PKGREL=23
|
PKGREL=24
|
||||||
|
|
||||||
DESTDIR=
|
DESTDIR=
|
||||||
PREFIX=/usr
|
PREFIX=/usr
|
||||||
|
|||||||
@ -87,8 +87,10 @@ sub path {
|
|||||||
my ($vtype, $name, $vmid) = $class->parse_volname($volname);
|
my ($vtype, $name, $vmid) = $class->parse_volname($volname);
|
||||||
|
|
||||||
my $portal = $scfg->{portal};
|
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);
|
return ($path, $vmid, $vtype);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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
|
libpve-storage-perl (2.0-23) unstable; urgency=low
|
||||||
|
|
||||||
* cleanup rbd driver
|
* cleanup rbd driver
|
||||||
|
|||||||
Reference in New Issue
Block a user