Retrieve disk attributes from the system also in Windows

This commit is contained in:
Andrea Mazzoleni 2026-01-07 09:45:29 +01:00
parent 13fae39eb3
commit c4f01e9503
2 changed files with 124 additions and 1 deletions

View file

@ -1358,7 +1358,7 @@ static void devattr(dev_t device, uint64_t* info, char* serial, char* vendor, ch
int ret;
char* attr;
(void)vendor; /* the vendor file typically contains "ATA" */
(void)vendor; /* not available */
if (info[INFO_SIZE] == SMART_UNASSIGNED) {
pathprint(path, sizeof(path), "/sys/dev/block/%u:%u/size", major(device), minor(device));