mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-20 15:06:34 -05:00
Retrieve disk attributes from the system also in Windows
This commit is contained in:
parent
13fae39eb3
commit
c4f01e9503
2 changed files with 124 additions and 1 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue