fix #4165: disk: SMART: add normalized field

This makes it consistent with the naming scheme in PBS/GUI.
Keep value for API stability reasons and remove it in the next major version.

Signed-off-by: Matthias Heiserer <m.heiserer@proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
Tested-by: Dominik Csapak <d.cspak@proxmox.com>
This commit is contained in:
Matthias Heiserer
2022-07-21 12:45:58 +02:00
committed by Thomas Lamprecht
parent 88f272b204
commit 4c86c7111c
8 changed files with 145 additions and 0 deletions

View File

@ -7,6 +7,7 @@
"worst" : 100,
"raw" : "0",
"threshold" : 0,
"normalized" : 100,
"value" : 100,
"name" : "Reallocated_Sector_Ct"
},
@ -17,6 +18,7 @@
"id" : " 9",
"name" : "Power_On_Hours",
"threshold" : 0,
"normalized" : 100,
"value" : 100,
"raw" : "799"
},
@ -24,6 +26,7 @@
"name" : "Power_Cycle_Count",
"raw" : "92",
"threshold" : 0,
"normalized" : 100,
"value" : 100,
"fail" : "-",
"worst" : 100,
@ -37,10 +40,12 @@
"id" : "165",
"name" : "Unknown_Attribute",
"threshold" : 0,
"normalized" : 100,
"value" : 100,
"raw" : "9699447"
},
{
"normalized" : 100,
"value" : 100,
"threshold" : 0,
"raw" : "1",
@ -56,6 +61,7 @@
"fail" : "-",
"worst" : 100,
"raw" : "46",
"normalized" : 100,
"value" : 100,
"threshold" : 0,
"name" : "Unknown_Attribute"
@ -63,6 +69,7 @@
{
"name" : "Unknown_Attribute",
"raw" : "5",
"normalized" : 100,
"value" : 100,
"threshold" : 0,
"fail" : "-",
@ -75,6 +82,7 @@
"id" : "169",
"worst" : 100,
"fail" : "-",
"normalized" : 100,
"value" : 100,
"threshold" : 0,
"raw" : "1079",
@ -83,6 +91,7 @@
{
"raw" : "0",
"threshold" : 0,
"normalized" : 100,
"value" : 100,
"name" : "Unknown_Attribute",
"id" : "170",
@ -97,12 +106,14 @@
"flags" : "-O--CK",
"name" : "Unknown_Attribute",
"raw" : "0",
"normalized" : 100,
"value" : 100,
"threshold" : 0
},
{
"name" : "Unknown_Attribute",
"raw" : "0",
"normalized" : 100,
"value" : 100,
"threshold" : 0,
"fail" : "-",
@ -113,6 +124,7 @@
{
"name" : "Unknown_Attribute",
"threshold" : 0,
"normalized" : 100,
"value" : 100,
"raw" : "1",
"worst" : 100,
@ -122,6 +134,7 @@
},
{
"name" : "Unknown_Attribute",
"normalized" : 100,
"value" : 100,
"threshold" : 0,
"raw" : "22",
@ -136,12 +149,14 @@
"flags" : "-O--CK",
"id" : "184",
"name" : "End-to-End_Error",
"normalized" : 100,
"value" : 100,
"threshold" : 0,
"raw" : "0"
},
{
"name" : "Reported_Uncorrect",
"normalized" : 100,
"value" : 100,
"threshold" : 0,
"raw" : "0",
@ -153,6 +168,7 @@
{
"name" : "Command_Timeout",
"raw" : "0",
"normalized" : 100,
"value" : 100,
"threshold" : 0,
"fail" : "-",
@ -162,6 +178,7 @@
},
{
"threshold" : 0,
"normalized" : 73,
"value" : 73,
"raw" : "27 (Min/Max 23/64)",
"name" : "Temperature_Celsius",
@ -176,6 +193,7 @@
"flags" : "-O--CK",
"id" : "199",
"name" : "UDMA_CRC_Error_Count",
"normalized" : 100,
"value" : 100,
"threshold" : 0,
"raw" : "0"
@ -183,6 +201,7 @@
{
"name" : "Unknown_SSD_Attribute",
"threshold" : 0,
"normalized" : 100,
"value" : 100,
"raw" : "146029805602",
"worst" : 100,
@ -192,6 +211,7 @@
},
{
"raw" : "100",
"normalized" : 100,
"value" : 100,
"threshold" : 4,
"name" : "Available_Reservd_Space",
@ -202,6 +222,7 @@
},
{
"threshold" : 0,
"normalized" : 100,
"value" : 100,
"raw" : "1574",
"name" : "Media_Wearout_Indicator",
@ -216,6 +237,7 @@
"fail" : "-",
"worst" : 100,
"raw" : "2303",
"normalized" : 100,
"value" : 100,
"threshold" : 0,
"name" : "Unknown_Attribute"
@ -227,6 +249,7 @@
"flags" : "----CK",
"name" : "Total_LBAs_Written",
"raw" : "2111",
"normalized" : 253,
"value" : 253,
"threshold" : 0
},
@ -237,11 +260,13 @@
"id" : "242",
"name" : "Total_LBAs_Read",
"threshold" : 0,
"normalized" : 253,
"value" : 253,
"raw" : "1542"
},
{
"name" : "Unknown_Attribute",
"normalized" : 0,
"value" : 0,
"threshold" : 0,
"raw" : "0",