src/tools/disks.rs - get_disks: query smart status
This commit is contained in:
1 parent
4c24a48eb3
commit
91960d6162
2 files changed
+27
-16
No files matched your search
@@ -65,9 +65,9 @@ pub struct SmartAttribute {
|
||||
#[derive(Debug, Serialize, Deserialize)]
|
||||
/// Data from smartctl
|
||||
pub struct SmartData {
|
||||
status: SmartStatus,
|
||||
wearout: Option<f64>,
|
||||
attributes: Vec<SmartAttribute>,
|
||||
pub status: SmartStatus,
|
||||
pub wearout: Option<f64>,
|
||||
pub attributes: Vec<SmartAttribute>,
|
||||
}
|
||||
|
||||
/// Read smartctl data for a disk (/dev/XXX).
|
||||
|
||||
Reference in new issue
Block a user