shithub: riscv

Download patch

ref: 872f83cebe6cc9234e9e672ad0408b9f59cf62bd
parent: 7f73792ef957c9592798f409eca2e7a4b6f0561f
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun Feb 9 23:04:51 EST 2014

ramfs: remove mainmem pool limit when called with -u flag

--- a/sys/src/cmd/ramfs.c
+++ b/sys/src/cmd/ramfs.c
@@ -3,6 +3,8 @@
 #include <auth.h>
 #include <fcall.h>
 
+#include <pool.h>
+
 /*
  * Rather than reading /adm/users, which is a lot of work for
  * a toy program, we assume all groups have the form
@@ -180,6 +182,7 @@
 		break;
 	case 'u':
 		memlim = 0;		/* unlimited memory consumption */
+		mainmem->maxsize = (uintptr)~0;
 		break;
 	case 'D':
 		debug = 1;