diff options
author | David du Colombier <0intro@gmail.com> | 2011-11-08 09:02:36 -0500 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2011-11-08 09:02:36 -0500 |
commit | db60da46b3255502597124a870d7b8714d659749 (patch) | |
tree | 37b46d7cd4399ba698a15c8a05ca5178bdbc6b7e /src/cmd/venti/readfile.c | |
parent | 4544da52005bf0af3bb05a73f4e02ce35117aae0 (diff) | |
download | plan9port-db60da46b3255502597124a870d7b8714d659749.tar.gz plan9port-db60da46b3255502597124a870d7b8714d659749.tar.bz2 plan9port-db60da46b3255502597124a870d7b8714d659749.zip |
venti: fix vtcachealloc and VtMaxLumpSize
R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/5309073
Diffstat (limited to 'src/cmd/venti/readfile.c')
-rw-r--r-- | src/cmd/venti/readfile.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/cmd/venti/readfile.c b/src/cmd/venti/readfile.c index 2883350a..00eb43ef 100644 --- a/src/cmd/venti/readfile.c +++ b/src/cmd/venti/readfile.c @@ -4,6 +4,12 @@ #include <libsec.h> #include <thread.h> +enum +{ + // XXX What to do here? + VtMaxLumpSize = 65536, +}; + int chatty; void @@ -92,7 +98,7 @@ threadmain(int argc, char *argv[]) sysfatal("not a single file"); // open and read file - c = vtcachealloc(z, root.blocksize, 32); + c = vtcachealloc(z, root.blocksize*32); if(c == nil) sysfatal("vtcachealloc: %r"); f = vtfileopenroot(c, &e); |