mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 02:49:02 -04:00
Align Windows rotational device detection fallback with Unix by assuming rotational when unknown
This commit is contained in:
parent
3e4f79180e
commit
b4a694bb10
1 changed files with 3 additions and 3 deletions
|
|
@ -1230,7 +1230,7 @@ static int devpower(uint64_t device, const char* name, const char* wfile)
|
|||
DWORD error = GetLastError();
|
||||
windows_errno(error);
|
||||
log_tag("device:%s:%s:error:%lu\n", file, name, error);
|
||||
return 0; /* assume not rotational */
|
||||
return 1; /* assume rotational if unknown */
|
||||
}
|
||||
|
||||
/* get the interface */
|
||||
|
|
@ -1248,11 +1248,11 @@ static int devpower(uint64_t device, const char* name, const char* wfile)
|
|||
DWORD error = GetLastError();
|
||||
windows_errno(error);
|
||||
log_tag("device:%s:%s:error:%lu\n", file, name, error);
|
||||
return 0; /* assume not rotational */
|
||||
return 1; /* assume rotational if unknown */
|
||||
}
|
||||
|
||||
if (rotational == SMART_UNASSIGNED)
|
||||
return 0; /* assume not rotational */
|
||||
return 1; /* assume rotational if unknown */
|
||||
|
||||
return rotational != 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue