Browse Source

Plan 9 from Bell Labs 2008-04-26

David du Colombier 13 years ago
parent
commit
fce86d3aae
4 changed files with 15 additions and 12 deletions
  1. 1 1
      dist/replica/_plan9.db
  2. 1 1
      dist/replica/plan9.db
  3. 1 0
      dist/replica/plan9.log
  4. 12 10
      sys/src/cmd/venti/words/dumpvacroots

+ 1 - 1
dist/replica/_plan9.db

@@ -14443,7 +14443,7 @@ sys/src/cmd/venti/srv/zeropart.c - 664 sys sys 1178160305 707
 sys/src/cmd/venti/sync.c - 664 sys sys 1177189440 726
 sys/src/cmd/venti/words - 20000000775 sys sys 1208985205 0
 sys/src/cmd/venti/words/backup.example - 775 sys sys 1045503662 521
-sys/src/cmd/venti/words/dumpvacroots - 775 sys sys 1163468045 571
+sys/src/cmd/venti/words/dumpvacroots - 775 sys sys 1209145281 609
 sys/src/cmd/venti/words/notes - 664 sys sys 1068500911 4032
 sys/src/cmd/venti/words/venti.conf - 664 sys sys 1019867537 397
 sys/src/cmd/venti/words/wrtape - 775 sys sys 1019678881 555

+ 1 - 1
dist/replica/plan9.db

@@ -14443,7 +14443,7 @@ sys/src/cmd/venti/srv/zeropart.c - 664 sys sys 1178160305 707
 sys/src/cmd/venti/sync.c - 664 sys sys 1177189440 726
 sys/src/cmd/venti/words - 20000000775 sys sys 1208985205 0
 sys/src/cmd/venti/words/backup.example - 775 sys sys 1045503662 521
-sys/src/cmd/venti/words/dumpvacroots - 775 sys sys 1163468045 571
+sys/src/cmd/venti/words/dumpvacroots - 775 sys sys 1209145281 609
 sys/src/cmd/venti/words/notes - 664 sys sys 1068500911 4032
 sys/src/cmd/venti/words/venti.conf - 664 sys sys 1019867537 397
 sys/src/cmd/venti/words/wrtape - 775 sys sys 1019678881 555

+ 1 - 0
dist/replica/plan9.log

@@ -19039,3 +19039,4 @@
 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
+1209146404 0 c sys/src/cmd/venti/words/dumpvacroots - 775 sys sys 1209145281 609

+ 12 - 10
sys/src/cmd/venti/words/dumpvacroots

@@ -3,17 +3,19 @@
 # if nothing else, this illustrates that you have to control access
 # to the physical disks storing the archive!
 
-ventihttp=`{echo $venti | sed 's/^[a-z]+!([0-9\.]+)![a-z0-9]+$/\1/
-		s/^[a-z]+!([0-9\.]+)/\1/; s/$/:80/'
+ventihttp=`{
+	echo $venti | sed 's/^[a-z]+!([0-9\.]+)![a-z0-9]+$/\1/
+		s/^[a-z]+!([0-9\.]+)/\1/; s/$/:8000/'
 }
 
-hget http://$ventihttp/index | 
+hget http://$ventihttp/index |
 	awk '
- /^index=/ { blockSize=0+substr($3, 11) }
- /^arena=/ { arena=substr($1, 7) }
- /^	arena=/ {
-		start = (0+substr($5, 2))-blockSize
-		printf("venti/printarena -o %.0f %s\n", start, $3 "")
-}' |
+ 		/^index=/ { blockSize = 0 + substr($3, 11) }
+ 		/^arena=/ { arena = substr($1, 7) }
+ 		/^	arena=/ {
+			start = (0 + substr($5, 2)) - blockSize
+			printf("venti/printarena -o %.0f %s\n", start, $3 "")
+		}
+	' |
 	rc |
-	sed -n 's/^(.*) 1$/vac:\1/p'
+	awk '$3 == 16 { printf("vac:%s\n", $2) }'