diff options
author | Russ Cox <rsc@swtch.com> | 2020-01-13 17:09:39 -0500 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2020-01-13 17:09:39 -0500 |
commit | 59b460f845ee7d2e0156a4ba43fbe75c2531489b (patch) | |
tree | 3933e40fcacbf343efe04103768a15d6c736a7bc /src/cmd/vac | |
parent | fa588406f02b5f2adf666211bef03fbee30a61b0 (diff) | |
download | plan9port-59b460f845ee7d2e0156a4ba43fbe75c2531489b.tar.gz plan9port-59b460f845ee7d2e0156a4ba43fbe75c2531489b.tar.bz2 plan9port-59b460f845ee7d2e0156a4ba43fbe75c2531489b.zip |
vac, unvac: allow 128MB cache size, up from 4MB
When a directory has lots of children, vac crashes because it runs out of cache.
Fixes #266.
Diffstat (limited to 'src/cmd/vac')
-rw-r--r-- | src/cmd/vac/unvac.c | 2 | ||||
-rw-r--r-- | src/cmd/vac/vac.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/vac/unvac.c b/src/cmd/vac/unvac.c index a265893f..a117a250 100644 --- a/src/cmd/vac/unvac.c +++ b/src/cmd/vac/unvac.c @@ -94,7 +94,7 @@ threadmain(int argc, char *argv[]) if(vtconnect(conn) < 0) sysfatal("vtconnect: %r"); - fs = vacfsopen(conn, argv[0], VtOREAD, 4<<20); + fs = vacfsopen(conn, argv[0], VtOREAD, 128<<20); if(fs == nil) sysfatal("vacfsopen: %r"); diff --git a/src/cmd/vac/vac.c b/src/cmd/vac/vac.c index 7e441482..4555a907 100644 --- a/src/cmd/vac/vac.c +++ b/src/cmd/vac/vac.c @@ -15,7 +15,7 @@ usage(void) enum { BlockSize = 8*1024, - CacheSize = 4<<20, + CacheSize = 128<<20, }; struct |