git: 9front

Download patch

ref: 7ce8dc2e5607fdf5f34dd35e29928faadf5503d5
parent: a4d557eaac135dbce12f21f296ad14c00f9092c7
parent: 472c4f4b26538201e943e56282d0ad1973616374
author: stanley lieber <stanley.lieber@gmail.com>
date: Wed Apr 20 23:11:53 EDT 2011

merge.

--- a/lib/namespace
+++ b/lib/namespace
@@ -30,6 +30,9 @@
 mount -a /srv/dns /net
 mount -a /srv/net /net
 
+mount -qC /srv/boot /n/other other
+bind -qc /n/other/usr/$user/tmp /usr/$user/tmp
+
 bind -c /usr/$user/tmp /tmp
 cd /usr/$user
 
--- a/rc/bin/inst/mountcwfs
+++ b/rc/bin/inst/mountcwfs
@@ -81,6 +81,13 @@
 		echo newuser $user
 		echo newuser sys +$user
 		echo newuser adm +$user
+		if(! ~ $fsother ''){
+			echo cfs other
+			echo create /usr sys sys 775 d
+			echo create /usr/$user $user $user 775 d
+			echo create /usr/$user/tmp $user $user 750 d
+			echo cfs main
+		}
 		# not synchronized
 		sleep 5
 	} >>/srv/cwfs.cmd
--- a/sys/lib/newuser
+++ b/sys/lib/newuser
@@ -11,6 +11,11 @@
 mkdir bin bin/rc bin/mips bin/386 bin/power bin/arm
 mkdir lib tmp
 chmod +t tmp
+# try to create tmp space on other
+9fs other >/dev/null >[2=1] && \
+	mkdir -m 775 /n/other/usr/$user >/dev/null >[2=1] && \
+	mkdir -m 750 /n/other/usr/$user/tmp >/dev/null >[2=1] && \
+	bind -c /n/other/usr/$user/tmp $home/tmp
 bind -c $home/tmp /tmp
 
 mail -c
--