aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2020-01-13 17:09:39 -0500
committerRuss Cox <rsc@swtch.com>2020-01-13 17:09:39 -0500
commit59b460f845ee7d2e0156a4ba43fbe75c2531489b (patch)
tree3933e40fcacbf343efe04103768a15d6c736a7bc /src
parentfa588406f02b5f2adf666211bef03fbee30a61b0 (diff)
downloadplan9port-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')
-rw-r--r--src/cmd/vac/unvac.c2
-rw-r--r--src/cmd/vac/vac.c2
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