[pve-devel] [PATCH] disk management: Add support for additional Crucial SSDs

Jan-Jonas Sämann sprinterfreak at binary-kitchen.de
Tue Oct 20 00:53:57 CEST 2020


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 <sprinterfreak at binary-kitchen.de>
---
 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





More information about the pve-devel mailing list