mirror of
git://git.proxmox.com/git/qemu-server.git
synced 2024-12-25 23:21:43 +03:00
fix check if a backing file exist
This commit is contained in:
parent
6fe2055892
commit
b7b1ac9d04
@ -246,10 +246,10 @@ sub sync_disks {
|
||||
die "can't migrate '$volid' - storagy type '$scfg->{type}' not supported\n"
|
||||
if $scfg->{type} ne 'dir';
|
||||
|
||||
#if file, check if a backing file exist
|
||||
if(($scfg->{type} eq 'dir') && (!$sharedvm)){
|
||||
# if file, check if a backing file exist
|
||||
if (($scfg->{type} eq 'dir') && (!$sharedvm)) {
|
||||
my (undef, undef, undef, $parent) = PVE::Storage::volume_size_info($self->{storecfg}, $volid, 1);
|
||||
die "can't migrate '$volid' as it's a clone of '$parent'";
|
||||
die "can't migrate '$volid' as it's a clone of '$parent'" if $parent;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,6 +1,8 @@
|
||||
qemu-server (2.3-14) unstable; urgency=low
|
||||
|
||||
* bugfix #340 : don't set cache=none to cdrom
|
||||
|
||||
* Migrate: fix check if a backing file exist
|
||||
|
||||
-- Proxmox Support Team <support@proxmox.com> Thu, 28 Feb 2013 06:21:30 +0100
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user