mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-26 01:46:32 -05:00
Ingnore the SMART Command Timeout for Seagate SMR disks
This commit is contained in:
parent
faa530e83e
commit
a90f8db3c0
7 changed files with 36 additions and 12 deletions
|
|
@ -1370,7 +1370,7 @@ static int smatch(const char* str, const char* pattern)
|
|||
return 0;
|
||||
}
|
||||
|
||||
int smartctl_attribute(FILE* f, const char* file, const char* name, uint64_t* smart, char* serial)
|
||||
int smartctl_attribute(FILE* f, const char* file, const char* name, uint64_t* smart, char* serial, char* vendor, char* model)
|
||||
{
|
||||
unsigned i;
|
||||
int inside;
|
||||
|
|
@ -1416,6 +1416,8 @@ int smartctl_attribute(FILE* f, const char* file, const char* name, uint64_t* sm
|
|||
smart[SMART_SIZE] += attr[i] - '0';
|
||||
}
|
||||
}
|
||||
} else if (sscanf(s, "Device Model: %63s %63s", vendor, model) == 2) {
|
||||
} else if (sscanf(s, "Device Model: %63s", model) == 1) {
|
||||
/* SCSI */
|
||||
} else if (sscanf(s, "Serial number: %63s", serial) == 1) { /* note "n" of "number" lower case */
|
||||
} else if (sscanf(s, "Elements in grown defect list: %" SCNu64, &smart[SMART_REALLOCATED_SECTOR_COUNT]) == 1) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue