fix bug #171: fix path_to_volume_id for unmounted NFS

This commit is contained in:
Dietmar Maurer
2012-04-18 12:34:39 +02:00
parent 369977e8bb
commit 75d75990b4
3 changed files with 10 additions and 2 deletions

View File

@ -2,7 +2,7 @@ RELEASE=2.0
VERSION=2.0
PACKAGE=libpve-storage-perl
PKGREL=17
PKGREL=18
DESTDIR=
PREFIX=/usr

View File

@ -1018,7 +1018,9 @@ sub path_to_volume_id {
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) {
my $type = $ids->{$sid}->{type};

View File

@ -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
* fix bug #148: set maxfiles for default local storage