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 233B91FF187 for ; Mon, 20 Oct 2025 14:19:23 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id DD99174E7; Mon, 20 Oct 2025 14:18:53 +0200 (CEST) From: Markus Frank To: pve-devel@lists.proxmox.com Date: Mon, 20 Oct 2025 14:17:46 +0200 Message-ID: <20251020121807.280441-12-m.frank@proxmox.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20251020121807.280441-1-m.frank@proxmox.com> References: <20251020121807.280441-1-m.frank@proxmox.com> MIME-Version: 1.0 X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1760962693111 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.001 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 v1 11/11] directory mapping: add live-migration-method option for virtiofs 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" Display a warning indicating that this feature is experimental. Signed-off-by: Markus Frank --- www/manager6/dc/DirMapView.js | 8 ++++++++ www/manager6/window/DirMapEdit.js | 23 +++++++++++++++++++++++ 2 files changed, 31 insertions(+) diff --git a/www/manager6/dc/DirMapView.js b/www/manager6/dc/DirMapView.js index f0dfe28f..26f938e9 100644 --- a/www/manager6/dc/DirMapView.js +++ b/www/manager6/dc/DirMapView.js @@ -26,6 +26,14 @@ Ext.define('PVE.dc.DirMapView', { dataIndex: 'text', width: 200, }, + { + header: gettext('Live Migration Method'), + dataIndex: 'live-migration', + renderer: function (value, _meta, record) { + return Ext.String.htmlEncode(value ?? record.data['live-migration-method']); + }, + width: 150, + }, { header: gettext('Comment'), dataIndex: 'description', diff --git a/www/manager6/window/DirMapEdit.js b/www/manager6/window/DirMapEdit.js index 841ff1fe..8efe4243 100644 --- a/www/manager6/window/DirMapEdit.js +++ b/www/manager6/window/DirMapEdit.js @@ -39,8 +39,10 @@ Ext.define('PVE.window.DirMapEditWindow', { let name = values.name; let description = values.description; + let liveMigration = values["live-migration-method"]; let deletes = values.delete; + delete values["live-migration-method"]; delete values.description; delete values.name; delete values.delete; @@ -69,6 +71,9 @@ Ext.define('PVE.window.DirMapEditWindow', { if (description) { values.description = description; } + if (liveMigration) { + values["live-migration-method"] = liveMigration; + } if (deletes && !view.isCreate) { values.delete = deletes; } @@ -181,6 +186,24 @@ Ext.define('PVE.window.DirMapEditWindow', { }, ], }, + { + xtype: 'proxmoxKVComboBox', + fieldLabel: ` ${gettext('Experimental')}: + ${gettext('Live Migration Method')}`, + reference: 'live-migration-method', + name: 'live-migration-method', + value: '__default__', + comboItems: [ + ['__default__', Proxmox.Utils.defaultText + ' (' + Proxmox.Utils.disabledText + ')'], + ['find-paths', 'find-paths'], + ['file-handles', 'file-handles'], + ], + cbind: { + deleteEmpty: '{!isCreate}', + disabled: '{hideComment}', + hidden: '{hideComment}', + }, + }, ], columnB: [ -- 2.47.3 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel