From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [IPv6:2a01:7e0:0:424::9]) by lore.proxmox.com (Postfix) with ESMTPS id 026CE1FF15C for ; Wed, 22 Jan 2025 14:19:40 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 031351F313; Wed, 22 Jan 2025 14:19:37 +0100 (CET) Message-ID: <8764eb5c-3645-4b28-876b-845af2eb68bc@proxmox.com> Date: Wed, 22 Jan 2025 14:19:03 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: Fiona Ebner , Proxmox VE development discussion References: <20240916163839.236908-1-d.kral@proxmox.com> <20240916163839.236908-8-d.kral@proxmox.com> Content-Language: en-US From: Daniel Kral In-Reply-To: X-SPAM-LEVEL: Spam detection results: 0 AWL 0.011 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: Re: [pve-devel] [RFC qemu-server 7/9] api: migrate_vm: improve check if target storages support vm images X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Proxmox VE development discussion Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: pve-devel-bounces@lists.proxmox.com Sender: "pve-devel" On 11/29/24 15:23, Fiona Ebner wrote: > Am 16.09.24 um 18:38 schrieb Daniel Kral: >> diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm >> index a0abe44f..13c1c4e0 100644 >> --- a/PVE/API2/Qemu.pm >> +++ b/PVE/API2/Qemu.pm >> @@ -220,18 +220,6 @@ my $check_storage_access_clone = sub { >> return $sharedvm; >> }; >> >> -my $check_storage_access_migrate = sub { >> - my ($rpcenv, $authuser, $storecfg, $storage, $node) = @_; >> - >> - PVE::Storage::storage_check_enabled($storecfg, $storage, $node); >> - >> - $rpcenv->check($authuser, "/storage/$storage", ['Datastore.AllocateSpace']); >> - >> - my $scfg = PVE::Storage::storage_config($storecfg, $storage); >> - die "storage '$storage' does not support vm images\n" >> - if !$scfg->{content}->{images}; >> -}; > > I'd prefer to keep this helper and have it call the new ones. > ACK >> - >> my $import_from_volid = sub { >> my ($storecfg, $src_volid, $dest_info, $vollist) = @_; >> _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel