[pve-devel] [PATCH qemu-server] Add LVM and LVMThin to QemuMigration
Dietmar Maurer
dietmar at proxmox.com
Wed Jun 8 10:31:22 CEST 2016
> diff --git a/PVE/QemuMigrate.pm b/PVE/QemuMigrate.pm
> index 7b9506f..2fd307c 100644
> --- a/PVE/QemuMigrate.pm
> +++ b/PVE/QemuMigrate.pm
> @@ -293,7 +293,9 @@ sub sync_disks {
> my $scfg = PVE::Storage::storage_config($self->{storecfg}, $sid);
>
> die "can't migrate '$volid' - storage type '$scfg->{type}' not
> supported\n"
> - if (!($scfg->{type} eq 'dir' || $scfg->{type} eq 'zfspool') &&
> (!$sharedvm));
> + if (!($scfg->{type} eq 'dir' || $scfg->{type} eq 'zfspool'
> + || $scfg->{type} eq 'lvmthin' || $scfg->{type} eq 'lvm')
> + && (!$sharedvm));
this makes sense,
>
> # if file, check if a backing file exist
> if (!($scfg->{type} eq 'dir' || $scfg->{type} eq 'zfspool') &&
> (!$sharedvm)) {
but can someone explain above check?
More information about the pve-devel
mailing list