DriveHealth
The health of one drive.
In the namespace platform::hardware. Declared in src/libs/libplatform/platform/Hardware.hpp.
Detailed description
criticalWarnings holds the bits of the NVMe critical warning: 0x01 spare, 0x02 temperature, 0x04 degraded, 0x08 read-only, 0x10 volatile backup, 0x20 persistent memory read-only. 0 for an ATA drive.
reason is an addition to the contract: why the health of the drive is unknown, for the hover card ("UDisks reports no health for this drive", "SATA health needs admin on Windows"). Empty when the health is known.