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:
pjd 2006-03-28 18:34:36 +00:00
parent d970ab3c6c
commit 46a2a98421

View File

@ -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);