From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <pve-devel-bounces@lists.proxmox.com> Received: from firstgate.proxmox.com (firstgate.proxmox.com [IPv6:2a01:7e0:0:424::9]) by lore.proxmox.com (Postfix) with ESMTPS id 7BABB1FF183 for <inbox@lore.proxmox.com>; Wed, 18 Jun 2025 15:04:46 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 3FDB912AB6; Wed, 18 Jun 2025 15:02:49 +0200 (CEST) From: Fiona Ebner <f.ebner@proxmox.com> To: pve-devel@lists.proxmox.com Date: Wed, 18 Jun 2025 15:01:41 +0200 Message-Id: <20250618130209.90649-5-f.ebner@proxmox.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250618130209.90649-1-f.ebner@proxmox.com> References: <20250618130209.90649-1-f.ebner@proxmox.com> MIME-Version: 1.0 X-SPAM-LEVEL: Spam detection results: 0 AWL -0.033 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 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. RCVD_IN_VALIDITY_RPBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. RCVD_IN_VALIDITY_SAFE_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [qemuserver.pm, drive.pm] Subject: [pve-devel] [PATCH qemu-server v2 04/32] drive: code cleanup: drop unused $vmid parameter from get_path_and_format() X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion <pve-devel.lists.proxmox.com> List-Unsubscribe: <https://lists.proxmox.com/cgi-bin/mailman/options/pve-devel>, <mailto:pve-devel-request@lists.proxmox.com?subject=unsubscribe> List-Archive: <http://lists.proxmox.com/pipermail/pve-devel/> List-Post: <mailto:pve-devel@lists.proxmox.com> List-Help: <mailto:pve-devel-request@lists.proxmox.com?subject=help> List-Subscribe: <https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel>, <mailto:pve-devel-request@lists.proxmox.com?subject=subscribe> Reply-To: Proxmox VE development discussion <pve-devel@lists.proxmox.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: pve-devel-bounces@lists.proxmox.com Sender: "pve-devel" <pve-devel-bounces@lists.proxmox.com> The parameter is unused since commit f97b3da1 ("drive: code cleanup: remove unused $vmid argument from get_iso_path() helper"). Signed-off-by: Fiona Ebner <f.ebner@proxmox.com> --- No changes in v2. src/PVE/QemuServer.pm | 6 +++--- src/PVE/QemuServer/Drive.pm | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/PVE/QemuServer.pm b/src/PVE/QemuServer.pm index 8eecbd53..89dd7065 100644 --- a/src/PVE/QemuServer.pm +++ b/src/PVE/QemuServer.pm @@ -1538,7 +1538,7 @@ sub print_drive_commandline_full { my $vtype = $storeid ? (PVE::Storage::parse_volname($storecfg, $drive->{file}))[0] : undef; my ($path, $format) = - PVE::QemuServer::Drive::get_path_and_format($storecfg, $vmid, $drive, $live_restore_name); + PVE::QemuServer::Drive::get_path_and_format($storecfg, $drive, $live_restore_name); my $is_rbd = $path =~ m/^rbd:/; @@ -5775,7 +5775,7 @@ sub vmconfig_update_disk { } } else { my ($path, $format) = - PVE::QemuServer::Drive::get_path_and_format($storecfg, $vmid, $drive); + PVE::QemuServer::Drive::get_path_and_format($storecfg, $drive); # force eject if locked mon_cmd($vmid, "eject", force => JSON::true, id => "$opt"); @@ -5828,7 +5828,7 @@ sub vmconfig_update_cloudinit_drive { if ($running) { my ($path, $format) = - PVE::QemuServer::Drive::get_path_and_format($storecfg, $vmid, $cloudinit_drive); + PVE::QemuServer::Drive::get_path_and_format($storecfg, $cloudinit_drive); if ($path) { mon_cmd($vmid, "eject", force => JSON::true, id => "$cloudinit_ds"); mon_cmd( diff --git a/src/PVE/QemuServer/Drive.pm b/src/PVE/QemuServer/Drive.pm index f6351a98..0947b9ed 100644 --- a/src/PVE/QemuServer/Drive.pm +++ b/src/PVE/QemuServer/Drive.pm @@ -107,7 +107,7 @@ sub get_iso_path { # Returns the path that can be used on the QEMU commandline and in QMP commands as well as the # checked format of the drive. sub get_path_and_format { - my ($storecfg, $vmid, $drive, $live_restore_name) = @_; + my ($storecfg, $drive, $live_restore_name) = @_; my $path; my $volid = $drive->{file}; -- 2.39.5 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel