Browse Source

Plan 9 from Bell Labs 2008-04-25

David du Colombier 13 years ago
parent
commit
493ae8a6a1
4 changed files with 13 additions and 11 deletions
  1. 1 1
      dist/replica/_plan9.db
  2. 1 1
      dist/replica/plan9.db
  3. 1 0
      dist/replica/plan9.log
  4. 10 9
      sys/src/cmd/ramfs.c

+ 1 - 1
dist/replica/_plan9.db

@@ -13271,7 +13271,7 @@ sys/src/cmd/ql/optab.c - 664 sys sys 1089299167 13392
 sys/src/cmd/ql/pass.c - 664 sys sys 1132450403 11861
 sys/src/cmd/ql/sched.c - 664 sys sys 1089299166 12776
 sys/src/cmd/ql/span.c - 664 sys sys 1143759342 19898
-sys/src/cmd/ramfs.c - 664 sys sys 1168307038 16020
+sys/src/cmd/ramfs.c - 664 sys sys 1209077281 16050
 sys/src/cmd/ratfs - 20000000775 sys sys 1039727600 0
 sys/src/cmd/ratfs/ctlfiles.c - 664 sys sys 1016943964 6694
 sys/src/cmd/ratfs/main.c - 664 sys sys 1016943964 6516

+ 1 - 1
dist/replica/plan9.db

@@ -13271,7 +13271,7 @@ sys/src/cmd/ql/optab.c - 664 sys sys 1089299167 13392
 sys/src/cmd/ql/pass.c - 664 sys sys 1132450403 11861
 sys/src/cmd/ql/sched.c - 664 sys sys 1089299166 12776
 sys/src/cmd/ql/span.c - 664 sys sys 1143759342 19898
-sys/src/cmd/ramfs.c - 664 sys sys 1168307038 16020
+sys/src/cmd/ramfs.c - 664 sys sys 1209077281 16050
 sys/src/cmd/ratfs - 20000000775 sys sys 1039727600 0
 sys/src/cmd/ratfs/ctlfiles.c - 664 sys sys 1016943964 6694
 sys/src/cmd/ratfs/main.c - 664 sys sys 1016943964 6516

+ 1 - 0
dist/replica/plan9.log

@@ -19038,3 +19038,4 @@
 1208986205 3 a sys/src/cmd/venti/words/notes - 664 sys sys 1068500911 4032
 1208986205 4 a sys/src/cmd/venti/words/venti.conf - 664 sys sys 1019867537 397
 1208986205 5 a sys/src/cmd/venti/words/wrtape - 775 sys sys 1019678881 555
+1209078004 0 c sys/src/cmd/ramfs.c - 664 sys sys 1209077281 16050

+ 10 - 9
sys/src/cmd/ramfs.c

@@ -152,36 +152,35 @@ void
 main(int argc, char *argv[])
 {
 	Ram *r;
-	char *defmnt;
+	char *defmnt, *service;
 	int p[2];
 	int fd;
 	int stdio = 0;
-	char *service;
 
 	service = "ramfs";
 	defmnt = "/tmp";
 	ARGBEGIN{
-	case 'D':
-		debug = 1;
-		break;
 	case 'i':
 		defmnt = 0;
 		stdio = 1;
 		mfd[0] = 0;
 		mfd[1] = 1;
 		break;
-	case 's':
-		defmnt = 0;
-		break;
 	case 'm':
 		defmnt = EARGF(usage());
 		break;
 	case 'p':
 		private++;
 		break;
+	case 's':
+		defmnt = 0;
+		break;
 	case 'u':
 		memlim = 0;		/* unlimited memory consumption */
 		break;
+	case 'D':
+		debug = 1;
+		break;
 	case 'S':
 		defmnt = 0;
 		service = EARGF(usage());
@@ -226,8 +225,10 @@ main(int argc, char *argv[])
 	r->mtime = r->atime;
 	r->name = estrdup(".");
 
-	if(debug)
+	if(debug) {
 		fmtinstall('F', fcallfmt);
+		fmtinstall('M', dirmodefmt);
+	}
 	switch(rfork(RFFDG|RFPROC|RFNAMEG|RFNOTEG)){
 	case -1:
 		error("fork");