Because rootdir is a directory, not a file
VERSION=2.0
PACKAGE=libpve-storage-perl
-PKGREL=8
+PKGREL=9
DESTDIR=
PREFIX=/usr
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");
# 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;
}
+libpve-storage-perl (2.0-9) unstable; urgency=low
+
+ * use -e (instead of -f) to test if volume exists
+
+ -- Proxmox Support Team <support@proxmox.com> Fri, 02 Dec 2011 10:31:01 +0100
+
libpve-storage-perl (2.0-8) unstable; urgency=low
* fix iscsi size bug