mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-21 07:26:29 -05:00
Skip spinup and spindown for non-rotational devices
This commit is contained in:
parent
417d073710
commit
4c5ba26e12
4 changed files with 112 additions and 8 deletions
|
|
@ -2485,6 +2485,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