mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-04 15:25:09 +00: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"
|
die "can't migrate '$volid' - storagy type '$scfg->{type}' not supported\n"
|
||||||
if $scfg->{type} ne 'dir';
|
if $scfg->{type} ne 'dir';
|
||||||
|
|
||||||
#if file, check if a backing file exist
|
# if file, check if a backing file exist
|
||||||
if(($scfg->{type} eq 'dir') && (!$sharedvm)){
|
if (($scfg->{type} eq 'dir') && (!$sharedvm)) {
|
||||||
my (undef, undef, undef, $parent) = PVE::Storage::volume_size_info($self->{storecfg}, $volid, 1);
|
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2,6 +2,8 @@ qemu-server (2.3-14) unstable; urgency=low
|
|||||||
|
|
||||||
* bugfix #340 : don't set cache=none to cdrom
|
* 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
|
-- Proxmox Support Team <support@proxmox.com> Thu, 28 Feb 2013 06:21:30 +0100
|
||||||
|
|
||||||
qemu-server (2.3-13) unstable; urgency=low
|
qemu-server (2.3-13) unstable; urgency=low
|
||||||
|
Loading…
Reference in New Issue
Block a user