Preserve previous behaviour of kern.geom.raid3.n{64,16,4}k tunables were 0
means unlimited. Reported by: ru MFC after: 3 days
This commit is contained in:
parent
d970ab3c6c
commit
46a2a98421
@ -180,7 +180,7 @@ g_raid3_uma_ctor(void *mem, int size, void *arg, int flags)
|
||||
{
|
||||
struct g_raid3_zone *sz = arg;
|
||||
|
||||
if (sz->sz_inuse == sz->sz_max)
|
||||
if (sz->sz_max > 0 && sz->sz_inuse == sz->sz_max)
|
||||
return (ENOMEM);
|
||||
sz->sz_inuse++;
|
||||
return (0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user