ramfs: remove mainmem pool limit when called with -u flag
This commit is contained in:
parent
7f73792ef9
commit
872f83cebe
1 changed files with 3 additions and 0 deletions
|
@ -3,6 +3,8 @@
|
||||||
#include <auth.h>
|
#include <auth.h>
|
||||||
#include <fcall.h>
|
#include <fcall.h>
|
||||||
|
|
||||||
|
#include <pool.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Rather than reading /adm/users, which is a lot of work for
|
* Rather than reading /adm/users, which is a lot of work for
|
||||||
* a toy program, we assume all groups have the form
|
* a toy program, we assume all groups have the form
|
||||||
|
@ -180,6 +182,7 @@ main(int argc, char *argv[])
|
||||||
break;
|
break;
|
||||||
case 'u':
|
case 'u':
|
||||||
memlim = 0; /* unlimited memory consumption */
|
memlim = 0; /* unlimited memory consumption */
|
||||||
|
mainmem->maxsize = (uintptr)~0;
|
||||||
break;
|
break;
|
||||||
case 'D':
|
case 'D':
|
||||||
debug = 1;
|
debug = 1;
|
||||||
|
|
Loading…
Reference in a new issue