From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) by lore.proxmox.com (Postfix) with ESMTPS id F23C41FF2A0 for ; Mon, 15 Jul 2024 16:48:37 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 7F4FB5746; Mon, 15 Jul 2024 16:49:04 +0200 (CEST) Date: Mon, 15 Jul 2024 16:49:00 +0200 From: Christoph Heiss To: Aaron Lauterer Message-ID: <4i5cm53dazdtkjcbcjmnec6fp5sk2k3a62ec4k2lzpm2bzp4iv@uo2iajfidx62> References: <20240711115804.706227-1-c.heiss@proxmox.com> <20240711115804.706227-5-c.heiss@proxmox.com> <0d63d9ef-d6cd-4d4a-a68a-ae8ac5f2f9cb@proxmox.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <0d63d9ef-d6cd-4d4a-a68a-ae8ac5f2f9cb@proxmox.com> X-SPAM-LEVEL: Spam detection results: 0 AWL 0.017 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] [PATCH installer v3 4/4] low-level: install: check for already-existing `rpool` on install 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 Cc: Proxmox VE development discussion Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: pve-devel-bounces@lists.proxmox.com Sender: "pve-devel" Thanks for the review! On Fri, Jul 12, 2024 at 11:36:56AM GMT, Aaron Lauterer wrote: > only one small nit inline > > On 2024-07-11 13:57, Christoph Heiss wrote: > > [..] > > +sub zfs_ask_existing_zpool_rename { > > + my ($pool_name) = @_; > > + > > + # At this point, no pools should be imported/active > > + my $exported_pools = Proxmox::Sys::ZFS::get_exported_pools(); > > + > > + foreach (@$exported_pools) { > > + next if $_->{name} ne $pool_name || $_->{state} ne 'ONLINE'; > > + my $renamed_pool = "$_->{name}-OLD-$_->{id}"; > > + > > + my $response_ok = Proxmox::Install::Config::get_existing_storage_auto_rename(); > maybe we want to name this differently to avoid confusion? > response_ok -> do_rename > or something in that regard? > > but that could be done in a follow up patch as well if we want to Makes sense - I'll spin a new revision of this series and address this directly. _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel