Retrieve some attributes directly from the system

This commit is contained in:
Andrea Mazzoleni 2025-12-21 21:16:06 +01:00
parent 67e4896671
commit 0367b2810a
2 changed files with 125 additions and 23 deletions

View file

@ -1639,7 +1639,7 @@ int smartctl_attribute(FILE* f, const char* file, const char* name, uint64_t* sm
for (i = 0; i < SMART_COUNT; ++i)
smart[i] = SMART_UNASSIGNED;
for (i = 0; i < INFO_COUNT; ++i)
info[i] = SMART_UNASSIGNED;
info[i] = SMART_UNASSIGNED;
/* read the file */
inside = 0;