[pve-devel] applied: [PATCH v4 storage 01/27] storage_migrate: check if target storage supports content type
Fabian Grünbichler
f.gruenbichler at proxmox.com
Fri Mar 27 14:37:28 CET 2020
On March 26, 2020 9:09 am, Fabian Ebner wrote:
> Signed-off-by: Fabian Ebner <f.ebner at proxmox.com>
> ---
> PVE/Storage.pm | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/PVE/Storage.pm b/PVE/Storage.pm
> index a46550c..7af1fc3 100755
> --- a/PVE/Storage.pm
> +++ b/PVE/Storage.pm
> @@ -575,6 +575,11 @@ sub storage_migrate {
>
> my $tcfg = storage_config($cfg, $target_storeid);
>
> + my $vtype = (parse_volname($cfg, $volid))[0];
> +
> + die "content type '$vtype' is not available on storage '$target_storeid'\n"
> + if !$tcfg->{content}->{$vtype};
> +
> my $target_volid = "${target_storeid}:${target_volname}";
>
> my $target_ip = $target_sshinfo->{ip};
> --
> 2.20.1
>
>
> _______________________________________________
> pve-devel mailing list
> pve-devel at pve.proxmox.com
> https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
>
>
More information about the pve-devel
mailing list