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 BA7BC1FF167 for <inbox@lore.proxmox.com>; Wed, 31 Jul 2024 15:41:04 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 80D7DEEBE; Wed, 31 Jul 2024 15:41:07 +0200 (CEST) From: Aaron Lauterer <a.lauterer@proxmox.com> To: pve-devel@lists.proxmox.com Date: Wed, 31 Jul 2024 15:40:33 +0200 Message-Id: <20240731134033.1733932-3-a.lauterer@proxmox.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240731134033.1733932-1-a.lauterer@proxmox.com> References: <20240731131658.1719688-1-a.lauterer@proxmox.com> <20240731134033.1733932-1-a.lauterer@proxmox.com> MIME-Version: 1.0 X-SPAM-LEVEL: Spam detection results: 0 AWL -0.039 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 Subject: [pve-devel] [WIP manager 3/3] gui: add nvme as a bus type for creating disks 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> From: Oguz Bektas <o.bektas@proxmox.com> Signed-off-by: Oguz Bektas <o.bektas@proxmox.com> --- www/manager6/Utils.js | 3 ++- www/manager6/form/BusTypeSelector.js | 2 ++ www/manager6/form/ControllerSelector.js | 2 +- www/manager6/qemu/CloudInit.js | 4 ++-- www/mobile/QemuSummary.js | 2 +- 5 files changed, 8 insertions(+), 5 deletions(-) diff --git a/www/manager6/Utils.js b/www/manager6/Utils.js index db86fa9a..aba72135 100644 --- a/www/manager6/Utils.js +++ b/www/manager6/Utils.js @@ -13,7 +13,7 @@ Ext.define('PVE.Utils', { toolkit: undefined, // (extjs|touch), set inside Toolkit.js - bus_match: /^(ide|sata|virtio|scsi)(\d+)$/, + bus_match: /^(ide|sata|virtio|scsi|nvme)\d+$/, log_severity_hash: { 0: "panic", @@ -1560,6 +1560,7 @@ Ext.define('PVE.Utils', { ide: 4, sata: 6, scsi: 31, + nvme: 8, virtio: 16, unused: 256, }, diff --git a/www/manager6/form/BusTypeSelector.js b/www/manager6/form/BusTypeSelector.js index 0f040229..fbc6f222 100644 --- a/www/manager6/form/BusTypeSelector.js +++ b/www/manager6/form/BusTypeSelector.js @@ -16,6 +16,8 @@ Ext.define('PVE.form.BusTypeSelector', { me.comboItems.push(['scsi', 'SCSI']); + me.comboItems.push(['nvme', 'NVMe']); + if (me.withUnused) { me.comboItems.push(['unused', 'Unused']); } diff --git a/www/manager6/form/ControllerSelector.js b/www/manager6/form/ControllerSelector.js index d7c2625d..8c766598 100644 --- a/www/manager6/form/ControllerSelector.js +++ b/www/manager6/form/ControllerSelector.js @@ -39,7 +39,7 @@ Ext.define('PVE.form.ControllerSelector', { deviceid.setValue(2); return; } - clist = ['ide', 'scsi', 'sata']; + clist = ['ide', 'scsi', 'sata', 'nvme']; } else { // in most cases we want to add a disk to the same controller we previously used clist = PVE.Utils.sortByPreviousUsage(me.vmconfig); diff --git a/www/manager6/qemu/CloudInit.js b/www/manager6/qemu/CloudInit.js index 49519726..4ea58641 100644 --- a/www/manager6/qemu/CloudInit.js +++ b/www/manager6/qemu/CloudInit.js @@ -135,7 +135,7 @@ Ext.define('PVE.qemu.CloudInit', { var id = record.data.key; var value = record.data.value; var ciregex = new RegExp("vm-" + me.pveSelNode.data.vmid + "-cloudinit"); - if (id.match(/^(ide|scsi|sata)\d+$/) && ciregex.test(value)) { + if (id.match(/^(ide|scsi|sata|nvme)\d+$/) && ciregex.test(value)) { found = id; me.ciDriveId = found; me.ciDrive = value; @@ -330,7 +330,7 @@ Ext.define('PVE.qemu.CloudInit', { }; } - PVE.Utils.forEachBus(['ide', 'scsi', 'sata'], function(type, id) { + PVE.Utils.forEachBus(['ide', 'scsi', 'sata', 'nvme'], function(type, id) { me.rows[type+id] = { visible: false, }; diff --git a/www/mobile/QemuSummary.js b/www/mobile/QemuSummary.js index c416ea7d..a484fcb6 100644 --- a/www/mobile/QemuSummary.js +++ b/www/mobile/QemuSummary.js @@ -12,7 +12,7 @@ Ext.define('PVE.QemuSummary', { config_keys: [ 'name', 'memory', 'sockets', 'cores', 'ostype', 'bootdisk', /^net\d+/, - /^ide\d+/, /^virtio\d+/, /^sata\d+/, /^scsi\d+/, /^unused\d+/, + /^ide\d+/, /^virtio\d+/, /^sata\d+/, /^scsi\d+/, /^nvme\d+/, /^unused\d+/ ], initialize: function() { -- 2.39.2 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel