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 F03591FF187 for ; Mon, 20 Oct 2025 16:14:15 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id CB037AA1E; Mon, 20 Oct 2025 16:13:49 +0200 (CEST) From: Fiona Ebner To: pve-devel@lists.proxmox.com Date: Mon, 20 Oct 2025 16:13:03 +0200 Message-ID: <20251020141335.124077-17-f.ebner@proxmox.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20251020141335.124077-1-f.ebner@proxmox.com> References: <20251020141335.124077-1-f.ebner@proxmox.com> MIME-Version: 1.0 X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1760969614716 X-SPAM-LEVEL: Spam detection results: 0 AWL -0.020 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: [pve-devel] [PATCH manager v2 16/16] ui: qemu: tpm drive: follow back-end and allow non-raw formats 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-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: pve-devel-bounces@lists.proxmox.com Sender: "pve-devel" Since qemu-server commit "fix #4693: drive: allow non-raw image formats for TPM state drive", non-raw image formats are supported for TPM state drives. Signed-off-by: Fiona Ebner --- New in v2. www/manager6/form/DiskStorageSelector.js | 2 +- www/manager6/qemu/HDMove.js | 1 - www/manager6/qemu/HDTPM.js | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/www/manager6/form/DiskStorageSelector.js b/www/manager6/form/DiskStorageSelector.js index ec22ef58..4b41ec5c 100644 --- a/www/manager6/form/DiskStorageSelector.js +++ b/www/manager6/form/DiskStorageSelector.js @@ -28,7 +28,7 @@ Ext.define('PVE.form.DiskStorageSelector', { // hides the size field (e.g, for the efi disk dialog) hideSize: false, - // hides the format field (e.g. for TPM state) + // hides the format field hideFormat: false, // sets the initial size value diff --git a/www/manager6/qemu/HDMove.js b/www/manager6/qemu/HDMove.js index 2e545b91..54659710 100644 --- a/www/manager6/qemu/HDMove.js +++ b/www/manager6/qemu/HDMove.js @@ -76,7 +76,6 @@ Ext.define('PVE.window.HDMove', { cbind: { nodename: '{nodename}', storageContent: (get) => (get('isQemu') ? 'images' : 'rootdir'), - hideFormat: (get) => get('disk') === 'tpmstate0', }, hideSize: true, }, diff --git a/www/manager6/qemu/HDTPM.js b/www/manager6/qemu/HDTPM.js index 1bfa25a6..947e3738 100644 --- a/www/manager6/qemu/HDTPM.js +++ b/www/manager6/qemu/HDTPM.js @@ -21,6 +21,7 @@ Ext.define('PVE.qemu.TPMDiskInputPanel', { me.drive.file = values.hdstorage + ':1'; } + me.drive.format = values.diskformat; me.drive.version = values.version; var params = {}; params[confid] = PVE.Parser.printQemuDrive(me.drive); @@ -54,7 +55,6 @@ Ext.define('PVE.qemu.TPMDiskInputPanel', { nodename: me.nodename, disabled: me.disabled, hideSize: true, - hideFormat: true, }, { xtype: 'proxmoxKVComboBox', -- 2.47.3 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel