mirror of
https://github.com/amadvance/snapraid.git
synced 2026-12-06 06:40:06 -05:00
Allows again to use a single data disk with single parity.
This commit is contained in:
parent
e4938013a3
commit
7e89583088
2 changed files with 2 additions and 1 deletions
2
state.c
2
state.c
|
|
@ -895,7 +895,7 @@ static void state_map(struct snapraid_state* state)
|
|||
exit(EXIT_FAILURE);
|
||||
}
|
||||
/* some raid functions assume at least two data disk */
|
||||
if (diskcount < RAID_DATA_MIN) {
|
||||
if (state->level > 1 && diskcount < RAID_DATA_MIN) {
|
||||
fprintf(stderr, "Too few data disks. You must define at least %u.\n", RAID_DATA_MIN);
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue