Change LBA metrics to uint64 (#932)

Fixes #800
This commit is contained in:
Aram Akhavan
2026-02-21 15:54:45 -08:00
committed by GitHub
parent 28658790c8
commit 3d2671650e
+13 -13
View File
@@ -143,21 +143,21 @@ type SmartInfo struct {
ErrorNumber int `json:"error_number"` ErrorNumber int `json:"error_number"`
LifetimeHours int `json:"lifetime_hours"` LifetimeHours int `json:"lifetime_hours"`
CompletionRegisters struct { CompletionRegisters struct {
Error int `json:"error"` Error int `json:"error"`
Status int `json:"status"` Status int `json:"status"`
Count int `json:"count"` Count int `json:"count"`
Lba int `json:"lba"` Lba uint64 `json:"lba"`
Device int `json:"device"` Device int `json:"device"`
} `json:"completion_registers"` } `json:"completion_registers"`
ErrorDescription string `json:"error_description"` ErrorDescription string `json:"error_description"`
PreviousCommands []struct { PreviousCommands []struct {
Registers struct { Registers struct {
Command int `json:"command"` Command int `json:"command"`
Features int `json:"features"` Features int `json:"features"`
Count int `json:"count"` Count int `json:"count"`
Lba int `json:"lba"` Lba uint64 `json:"lba"`
Device int `json:"device"` Device int `json:"device"`
DeviceControl int `json:"device_control"` DeviceControl int `json:"device_control"`
} `json:"registers"` } `json:"registers"`
PowerupMilliseconds int `json:"powerup_milliseconds"` PowerupMilliseconds int `json:"powerup_milliseconds"`
CommandName string `json:"command_name"` CommandName string `json:"command_name"`
@@ -188,8 +188,8 @@ type SmartInfo struct {
AtaSmartSelectiveSelfTestLog struct { AtaSmartSelectiveSelfTestLog struct {
Revision int `json:"revision"` Revision int `json:"revision"`
Table []struct { Table []struct {
LbaMin int `json:"lba_min"` LbaMin uint64 `json:"lba_min"`
LbaMax int `json:"lba_max"` LbaMax uint64 `json:"lba_max"`
Status struct { Status struct {
Value int `json:"value"` Value int `json:"value"`
String string `json:"string"` String string `json:"string"`