Browse Source

Plan 9 from Bell Labs 2003-12-09

David du Colombier 20 years ago
parent
commit
61fbcf71e1
3 changed files with 23 additions and 4 deletions
  1. 21 3
      dist/replica/network
  2. 1 1
      dist/replica/plan9.db
  3. 1 0
      dist/replica/plan9.log

+ 21 - 3
dist/replica/network

@@ -10,9 +10,27 @@ fn servermount {
 }
 fn serverupdate { status='' }
 
-fn clientmount { 9fs boot }
-c=/n/boot/dist/replica
-clientroot=/n/boot
+if ( ! test -e /srv/boot && ! test -e /srv/kfs ) {
+	echo 'error: neither /srv/boot nor /srv/kfs present; make sure you are running on the file server'
+	exit '/srv/boot or /srv/kfs not present'
+}
+
+if (test -e /srv/boot) {
+	if ( ! test -w /srv/fscons ) { 
+		echo 'error: no write access to /srv/fscons, make sure you are the host owner' 
+		exit 'no write access to /srv/fscons'
+	}
+
+	fn clientmount { echo 'srv -AWP replica'>>/srv/fscons;  mount -c /srv/replica /n/boot }
+	c=/n/boot/dist/replica
+	clientroot=/n/boot
+} 
+if not {
+	fn clientmount { 9fs kfs }
+	c=/n/kfs/dist/replica
+	clientroot=/n/kfs
+}
+
 clientdb=$c/client/plan9.db
 clientexclude=(dist/replica/client)
 clientlog=$c/client/plan9.log

+ 1 - 1
dist/replica/plan9.db

@@ -851,7 +851,7 @@ dist - 20000000775 sys sys 1017437778 0
 dist/replica - 20000000775 sys sys 1019277119 0
 dist/replica/cd - 664 sys sys 1019527959 390
 dist/replica/kfs - 664 sys sys 1019527929 237
-dist/replica/network - 775 sys sys 1067910574 466
+dist/replica/network - 775 sys sys 1070911277 994
 dist/replica/plan9.proto - 664 sys sys 1022112985 1209
 env - 20000000775 sys sys 1015094872 0
 fd - 20000000775 sys sys 947958544 0

+ 1 - 0
dist/replica/plan9.log

@@ -12954,3 +12954,4 @@
 1070660725 1 c sys/src/ape/lib/ap/plan9/mkfile - 664 sys sys 1070660696 1370
 1070660725 2 c sys/src/ape/lib/draw/libc.h - 664 sys sys 1070660715 3456
 1070660725 3 c sys/src/libdraw/init.c - 664 sys sys 1070660683 9077
+1070911927 0 c dist/replica/network - 775 sys sys 1070911277 994