mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 19:01:57 -04:00
Skip spinup and spindown for non-rotational devices
This commit is contained in:
parent
1764377f93
commit
bcb2e862b9
4 changed files with 112 additions and 8 deletions
|
|
@ -2514,6 +2514,7 @@ int smartctl_attribute(OS_FILE* f, const char* file, const char* name, struct sm
|
|||
*/
|
||||
} else if (smatch(s, "NVMe Version:") == 0) {
|
||||
strcpy(inter, "NVMe");
|
||||
info[INFO_ROTATION_RATE] = 0;
|
||||
/* special entries */
|
||||
} else if (snumber(s, "Media and Data Integrity Errors:", &raw) == 1) {
|
||||
smart[SMART_ERROR_MEDIUM].raw = raw;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue