diff --git a/Makefile b/Makefile index ffa8740..9bff9bf 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ RELEASE=2.0 VERSION=2.0 PACKAGE=libpve-storage-perl -PKGREL=8 +PKGREL=9 DESTDIR= PREFIX=/usr diff --git a/PVE/Storage.pm b/PVE/Storage.pm index 304022d..1b5dc66 100755 --- a/PVE/Storage.pm +++ b/PVE/Storage.pm @@ -1271,7 +1271,7 @@ sub vdisk_alloc { my $path = "$imagedir/$name"; - die "disk image '$path' already exists\n" if -f $path; + die "disk image '$path' already exists\n" if -e $path; run_command("/usr/bin/qemu-img create -f $fmt '$path' ${size}K", errmsg => "unable to create image"); @@ -1966,7 +1966,7 @@ sub activate_volumes { # check is volume exists if ($scfg->{type} eq 'dir' || $scfg->{type} eq 'nfs') { - die "volume '$volid' does not exist\n" if ! -f $path; + die "volume '$volid' does not exist\n" if ! -e $path; } else { die "volume '$volid' does not exist\n" if ! -b $path; } diff --git a/changelog.Debian b/changelog.Debian index aba1b42..ce12909 100644 --- a/changelog.Debian +++ b/changelog.Debian @@ -1,3 +1,9 @@ +libpve-storage-perl (2.0-9) unstable; urgency=low + + * use -e (instead of -f) to test if volume exists + + -- Proxmox Support Team Fri, 02 Dec 2011 10:31:01 +0100 + libpve-storage-perl (2.0-8) unstable; urgency=low * fix iscsi size bug