[pve-devel] applied: [PATCH qemu-server] improve error on '{full, linked} clone not available' error

Wolfgang Bumiller w.bumiller at proxmox.com
Wed May 24 11:30:52 CEST 2017


applied to master & stable-4

On Tue, May 23, 2017 at 10:39:45AM +0200, Thomas Lamprecht wrote:
> Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
> ---
> 
> instead of:
> > Full clone feature is not available at /usr/share/perl5/PVE/API2/Qemu.pm line 2435
> 
> we get now:
> > Full clone feature is not supported for drive 'scsi0'
> 
> 
>  PVE/API2/Qemu.pm | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm
> index c566c4d..41ffad5 100644
> --- a/PVE/API2/Qemu.pm
> +++ b/PVE/API2/Qemu.pm
> @@ -2448,12 +2448,12 @@ __PACKAGE__->register_method({
>  			$newconf->{$opt} = $value; # simply copy configuration
>  		    } else {
>  			if ($param->{full}) {
> -			    die "Full clone feature is not available"
> +			    die "Full clone feature is not supported for drive '$opt'\n"
>  				if !PVE::Storage::volume_has_feature($storecfg, 'copy', $drive->{file}, $snapname, $running);
>  			    $fullclone->{$opt} = 1;
>  			} else {
>  			    # not full means clone instead of copy
> -			    die "Linked clone feature is not available"
> +			    die "Linked clone feature is not supported for drive '$opt'\n"
>  				if !PVE::Storage::volume_has_feature($storecfg, 'clone', $drive->{file}, $snapname, $running);
>  			}
>  			$drives->{$opt} = $drive;
> -- 
> 2.11.0




More information about the pve-devel mailing list