mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 19:01:57 -04:00
Recognize the correct "hashsize" field in the configuration
The wrong "hash_size" is still supported for backward compatibility.
This commit is contained in:
parent
04dfeea107
commit
0ed1d0afed
1 changed files with 3 additions and 1 deletions
|
|
@ -621,7 +621,9 @@ void state_config(struct snapraid_state* state, const char* path, const char* co
|
|||
/* LCOV_EXCL_STOP */
|
||||
}
|
||||
state->block_size *= KIBI;
|
||||
} else if (strcmp(tag, "hash_size") == 0) {
|
||||
} else if (strcmp(tag, "hashsize") == 0
|
||||
|| strcmp(tag, "hash_size") == 0 /* v11.0 used incorretly this one, kept now for backward compatibility */
|
||||
) {
|
||||
uint32_t hash_size;
|
||||
|
||||
ret = sgetu32(f, &hash_size);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue