|
@@ -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) }'
|