fix bug #171: fix path_to_volume_id for unmounted NFS
This commit is contained in:
2
Makefile
2
Makefile
@ -2,7 +2,7 @@ RELEASE=2.0
|
|||||||
|
|
||||||
VERSION=2.0
|
VERSION=2.0
|
||||||
PACKAGE=libpve-storage-perl
|
PACKAGE=libpve-storage-perl
|
||||||
PKGREL=17
|
PKGREL=18
|
||||||
|
|
||||||
DESTDIR=
|
DESTDIR=
|
||||||
PREFIX=/usr
|
PREFIX=/usr
|
||||||
|
|||||||
@ -1018,7 +1018,9 @@ sub path_to_volume_id {
|
|||||||
return ('');
|
return ('');
|
||||||
}
|
}
|
||||||
|
|
||||||
$path = abs_path ($path);
|
# Note: abs_path() return undef if $path doesn not exist
|
||||||
|
# for example when nfs storage is not mounted
|
||||||
|
$path = abs_path($path) || $path;
|
||||||
|
|
||||||
foreach my $sid (keys %$ids) {
|
foreach my $sid (keys %$ids) {
|
||||||
my $type = $ids->{$sid}->{type};
|
my $type = $ids->{$sid}->{type};
|
||||||
|
|||||||
@ -1,3 +1,9 @@
|
|||||||
|
libpve-storage-perl (2.0-18) unstable; urgency=low
|
||||||
|
|
||||||
|
* fix bug #171: fix path_to_volume_id for unmounted NFS
|
||||||
|
|
||||||
|
-- Proxmox Support Team <support@proxmox.com> Wed, 18 Apr 2012 12:34:11 +0200
|
||||||
|
|
||||||
libpve-storage-perl (2.0-17) unstable; urgency=low
|
libpve-storage-perl (2.0-17) unstable; urgency=low
|
||||||
|
|
||||||
* fix bug #148: set maxfiles for default local storage
|
* fix bug #148: set maxfiles for default local storage
|
||||||
|
|||||||
Reference in New Issue
Block a user