diff options
author | David du Colombier <0intro@gmail.com> | 2011-06-02 09:33:56 -0400 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2011-06-02 09:33:56 -0400 |
commit | f5a8ea6fd8908c6f42670b8546239fdbc7fdbf03 (patch) | |
tree | f9e6abdcd5c651adf191f8a9b2dd9655404313a9 /src/cmd/venti/root.c | |
parent | 7fb06adf54aa6e47974673dcdeb328780927b8e6 (diff) | |
download | plan9port-f5a8ea6fd8908c6f42670b8546239fdbc7fdbf03.tar.gz plan9port-f5a8ea6fd8908c6f42670b8546239fdbc7fdbf03.tar.bz2 plan9port-f5a8ea6fd8908c6f42670b8546239fdbc7fdbf03.zip |
venti: import changes from plan 9
R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/4523057
Diffstat (limited to 'src/cmd/venti/root.c')
-rw-r--r-- | src/cmd/venti/root.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/cmd/venti/root.c b/src/cmd/venti/root.c index d41d44bc..3ade4be6 100644 --- a/src/cmd/venti/root.c +++ b/src/cmd/venti/root.c @@ -4,6 +4,12 @@ #include <libsec.h> #include <thread.h> +enum +{ + // XXX What to do here? + VtMaxLumpSize = 65536, +}; + void usage(void) { @@ -38,7 +44,7 @@ threadmain(int argc, char *argv[]) if(argc == 0) usage(); - buf = vtmallocz(8192); + buf = vtmallocz(VtMaxLumpSize); z = vtdial(host); if(z == nil) @@ -52,7 +58,7 @@ threadmain(int argc, char *argv[]) fprint(2, "cannot parse score '%s': %r\n", argv[i]); continue; } - n = vtread(z, score, VtRootType, buf, 8192); + n = vtread(z, score, VtRootType, buf, VtMaxLumpSize); if(n < 0){ fprint(2, "could not read block %V: %r\n", score); continue; |