]> git.proxmox.com Git - pve-storage.git/commitdiff
disk_tests: improve nvme smart test
authorDominik Csapak <d.csapak@proxmox.com>
Tue, 14 Apr 2020 14:17:32 +0000 (16:17 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Wed, 15 Apr 2020 10:52:45 +0000 (12:52 +0200)
by using an actual percentage for 'Percentage Used' instead of 0%

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
test/disk_tests/nvme_smart/disklist_expected.json
test/disk_tests/nvme_smart/nvme0_smart
test/disk_tests/nvme_smart/nvme0n1_smart_expected.json

index 0b043b1437ce83fbc5e85610f29755988879ce07..1bcdb7d11d28561142afe91f5956a4db3fc171cb 100644 (file)
@@ -1,6 +1,6 @@
 {
     "nvme0n1" : {
-       "wearout" : 100,
+       "wearout" : 69,
        "vendor" : "unknown",
        "size" : 512000,
        "health" : "PASSED",
index 2e6aaea1478070975696c9042f7b3fe4246deb99..f371d5b88e8481695828e151d8769ef1cd45006d 100644 (file)
@@ -9,7 +9,7 @@ Critical Warning:                   0x00
 Temperature:                        32 Celsius
 Available Spare:                    100%
 Available Spare Threshold:          10%
-Percentage Used:                    0%
+Percentage Used:                    31%
 Data Units Read:                    1,299,288 [665 GB]
 Data Units Written:                 5,592,478 [2.86 TB]
 Host Read Commands:                 30,360,807
index 6ea2d678192a3450df35e5e157afa4596e6a1d11..af8eadea52ae311d96ae6c811c2541355176dad5 100644 (file)
@@ -1,6 +1,6 @@
 {
-    "text" : "\nSMART/Health Information (NVMe Log 0x02, NSID 0xffffffff)\nCritical Warning:                   0x00\nTemperature:                        32 Celsius\nAvailable Spare:                    100%\nAvailable Spare Threshold:          10%\nPercentage Used:                    0%\nData Units Read:                    1,299,288 [665 GB]\nData Units Written:                 5,592,478 [2.86 TB]\nHost Read Commands:                 30,360,807\nHost Write Commands:                470,356,196\nController Busy Time:               12\nPower Cycles:                       98\nPower On Hours:                     687\nUnsafe Shutdowns:                   21\nMedia and Data Integrity Errors:    0\nError Information Log Entries:      0\n",
+    "text" : "\nSMART/Health Information (NVMe Log 0x02, NSID 0xffffffff)\nCritical Warning:                   0x00\nTemperature:                        32 Celsius\nAvailable Spare:                    100%\nAvailable Spare Threshold:          10%\nPercentage Used:                    31%\nData Units Read:                    1,299,288 [665 GB]\nData Units Written:                 5,592,478 [2.86 TB]\nHost Read Commands:                 30,360,807\nHost Write Commands:                470,356,196\nController Busy Time:               12\nPower Cycles:                       98\nPower On Hours:                     687\nUnsafe Shutdowns:                   21\nMedia and Data Integrity Errors:    0\nError Information Log Entries:      0\n",
     "health" : "PASSED",
     "type" : "text",
-    "wearout": 100
+    "wearout": 69
 }