mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-29 03:16:59 -05:00
Verify smartignore range
This commit is contained in:
parent
4c8aa12ab1
commit
ee5c7ebf13
2 changed files with 12 additions and 3 deletions
|
|
@ -531,8 +531,10 @@ static void state_smart_ignore(struct snapraid_state* state, devinfo_t* devinfo)
|
|||
{
|
||||
/* clear attributes to ignore */
|
||||
for (int i = 0; i < SMART_IGNORE_MAX; ++i) {
|
||||
devinfo->smart[state->smartignore[i]].raw = SMART_UNASSIGNED;
|
||||
devinfo->smart[devinfo->smartignore[i]].raw = SMART_UNASSIGNED;
|
||||
if (state->smartignore[i] < 256)
|
||||
devinfo->smart[state->smartignore[i]].raw = SMART_UNASSIGNED;
|
||||
if (devinfo->smartignore[i] < 256)
|
||||
devinfo->smart[devinfo->smartignore[i]].raw = SMART_UNASSIGNED;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue