From 45ac814c8609174199cadb6f1bbb4baf7c12c94a Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Mon, 29 Oct 2007 14:33:17 -0400 Subject: venti: fix sync deadlock, add /proc stub --- src/cmd/venti/srv/httpd.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/cmd/venti/srv/httpd.c') diff --git a/src/cmd/venti/srv/httpd.c b/src/cmd/venti/srv/httpd.c index 51d8b9a1..5e4bbe74 100644 --- a/src/cmd/venti/srv/httpd.c +++ b/src/cmd/venti/srv/httpd.c @@ -69,6 +69,7 @@ httpdinit(char *address, char *dir) httpdobj("/emptydcache", hdcacheempty); httpdobj("/disk", hdisk); httpdobj("/debug", hdebug); + httpdobj("/proc/", hproc); if(vtproc(listenproc, address) < 0) return -1; @@ -565,11 +566,11 @@ darena(Hio *hout, Arena *arena) if(scorecmp(zeroscore, arena->score) != 0) hprint(hout, "\tscore=%V\n", arena->score); - hprint(hout, "\tmem: clumps=%d compressed clumps=%d data=%,lld compressed data=%,lld storage=%,lld\n", + hprint(hout, "\twritten: clumps=%d compressed clumps=%d data=%,lld compressed data=%,lld storage=%,lld\n", arena->memstats.clumps, arena->memstats.cclumps, arena->memstats.uncsize, arena->memstats.used - arena->memstats.clumps * ClumpSize, arena->memstats.used + arena->memstats.clumps * ClumpInfoSize); - hprint(hout, "\tdisk: clumps=%d compressed clumps=%d data=%,lld compressed data=%,lld storage=%,lld\n", + hprint(hout, "\tindexed: clumps=%d compressed clumps=%d data=%,lld compressed data=%,lld storage=%,lld\n", arena->diskstats.clumps, arena->diskstats.cclumps, arena->diskstats.uncsize, arena->diskstats.used - arena->diskstats.clumps * ClumpSize, arena->diskstats.used + arena->diskstats.clumps * ClumpInfoSize); -- cgit v1.2.3