Browse Source

Plan 9 from Bell Labs 2007-09-15

David du Colombier 16 years ago
parent
commit
dbe47d135d
4 changed files with 15 additions and 8 deletions
  1. 1 1
      dist/replica/_plan9.db
  2. 12 6
      dist/replica/network
  3. 1 1
      dist/replica/plan9.db
  4. 1 0
      dist/replica/plan9.log

+ 1 - 1
dist/replica/_plan9.db

@@ -891,7 +891,7 @@ dist - 20000000775 sys sys 1127243723 0
 dist/replica - 20000000775 sys sys 1166743907 0
 dist/replica/cd - 664 sys sys 1149084099 922
 dist/replica/kfs - 664 sys sys 1019527929 237
-dist/replica/network - 775 sys sys 1139499513 956
+dist/replica/network - 775 sys sys 1189810597 1038
 dist/replica/plan9.proto - 664 sys sys 1178910941 2871
 env - 20000000775 sys sys 1104813586 0
 fd - 20000000775 sys sys 1020896384 0

+ 12 - 6
dist/replica/network

@@ -10,21 +10,27 @@ fn servermount {
 }
 fn serverupdate { status='' }
 
-if ( ! test -e /srv/boot && ! test -e /srv/kfs ) {
+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/fscons) {
-	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'
+	if (! test -w /srv/fscons) {
+		echo 'error: no write access to /srv/fscons, make sure you are the host owner'
+		echo 'mounting /srv/boot on /n/boot'
+		mount -c /srv/boot /n/boot
 	}
 
-	fn clientmount { echo 'srv -AWP replica'>>/srv/fscons;  mount -c /srv/replica /n/boot }
+	fn clientmount {
+		if (test -w /srv/fscons)
+			echo 'srv -AWP replica' >>/srv/fscons
+		if (test -e /srv/replica)
+			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

+ 1 - 1
dist/replica/plan9.db

@@ -891,7 +891,7 @@ dist - 20000000775 sys sys 1127243723 0
 dist/replica - 20000000775 sys sys 1166743907 0
 dist/replica/cd - 664 sys sys 1149084099 922
 dist/replica/kfs - 664 sys sys 1019527929 237
-dist/replica/network - 775 sys sys 1139499513 956
+dist/replica/network - 775 sys sys 1189810597 1038
 dist/replica/plan9.proto - 664 sys sys 1178910941 2871
 env - 20000000775 sys sys 1104813586 0
 fd - 20000000775 sys sys 1020896384 0

+ 1 - 0
dist/replica/plan9.log

@@ -52775,3 +52775,4 @@
 1189738804 0 c sys/src/cmd/venti/srv/dcache.c - 664 sys sys 1189738448 18608
 1189738804 1 c sys/src/cmd/venti/srv/fixarenas.c - 664 sys sys 1189738460 40533
 1189738804 2 c sys/src/cmd/venti/srv/icachewrite.c - 664 sys sys 1189738523 7785
+1189810805 0 c dist/replica/network - 775 sys sys 1189810597 1038