From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id AF74E60F8B for ; Tue, 20 Oct 2020 00:54:28 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 9EAFA83C9 for ; Tue, 20 Oct 2020 00:54:28 +0200 (CEST) Received: from lithium.binary-kitchen.net (lithium.binary-kitchen.net [IPv6:2a02:958:0:f6::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id 8A50683BC for ; Tue, 20 Oct 2020 00:54:27 +0200 (CEST) Received: from xt200.binary.kitchen (p549674fa.dip0.t-ipconnect.de [84.150.116.250]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by lithium.binary-kitchen.net (Postfix) with ESMTPSA id 9D8BC3FFF6; Tue, 20 Oct 2020 00:54:14 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=binary-kitchen.de; s=mail-20190723; t=1603148054; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=uNqEo+Na8JaBtuon4Xo+qLluxDlV97UHpUNpkm/UPi0=; b=KAJ0vjVjLvkgWOOrZfZ/ACM5hHinXZXS7BfhyEP0Rx+s0ScMWJITSwantwpLpjKsCIqVRg s9BlzssvGKCoNk/aHl+YRmlYSXWGWWvlhZhEL3ahLEq4ti9+WpjuMODdojNA1spm/tcwXt +FzfkLsKcLxhjM4i11fzoAaVzbU8wOW4DTydAdka01KcEk8LBRdhiR4pCq+g8KrKvUHtK9 mAHgrze75SEO00H3bhxaNlyXMpsLz7yytlRPDJ2mAWPRdUDzsB2OD/3R0Ms0BE4LDQWPzw gIJTK26it8eMcb53WRP23v7aQC9Ni61WPa2ckurghCKaWQUB0gQJuVqbvtafczNgzVOqDs 5RKmyU8Ya7fBLqmYYVPd/WNqGz/LBEYA1HRepSQvmGcrdLF8fYOX2VyBIPODI2NUpVJPk7 9DTWy0KbZgX7a5apt4UWryUSj1dwsYSao9btrw6ORCvfPl+SiwhM96UMklr1lU6ZYsYJyz FLu5JY9MrFSKIXtQNbvLuSU88vAGms5OK47+z9Cu9zRK9iCeSqzDKdsNDkGOpsWCrHiFqQ wXYrkIGGBQ8I3+HmE1cwbfi3X49iJaZAyJ5DU+kYlzz1XLqmPlqVr9NP//thyMDaK8CgAl aRQ+AXE0y49pTIA/1CeZp3l0eitCzLk6fXhCd5mx01S0BwKSCgz8U= From: =?UTF-8?q?Jan-Jonas=20S=C3=A4mann?= To: pve-devel@lists.proxmox.com Cc: =?UTF-8?q?Jan-Jonas=20S=C3=A4mann?= Date: Tue, 20 Oct 2020 00:53:57 +0200 Message-Id: <20201019225357.15673-1-sprinterfreak@binary-kitchen.de> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Authentication-Results: ORIGINATING; auth=pass smtp.auth=sprinterfreak smtp.mailfrom=sprinterfreak@binary-kitchen.de X-SPAM-LEVEL: Spam detection results: 0 DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from domain SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record X-Mailman-Approved-At: Tue, 20 Oct 2020 10:29:07 +0200 Subject: [pve-devel] [PATCH] disk management: Add support for additional Crucial SSDs 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: , X-List-Received-Date: Mon, 19 Oct 2020 22:54:28 -0000 Crucial SSDs do not necessarily contain their vendor name in the model string. Hence, some of them are not recognized by get_wear_leveling_info(). This patch adds support for some common consumer-grade crucial disks, such the CT500MX500SSD1. Signed-off-by: Jan-Jonas Sämann --- PVE/Diskmanage.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/Diskmanage.pm b/PVE/Diskmanage.pm index 79aafcc..37dc3bc 100644 --- a/PVE/Diskmanage.pm +++ b/PVE/Diskmanage.pm @@ -410,7 +410,7 @@ sub get_wear_leveling_info { 'samsung' => 177, 'intel' => 233, 'sandisk' => 233, - 'crucial' => 202, + '(crucial|ct[35]00[bm]x)' => 202, 'default' => 233, }; -- 2.25.1