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.
This commit is contained in:
Russ Cox 2020-01-13 17:09:39 -05:00
parent fa588406f0
commit 59b460f845
2 changed files with 2 additions and 2 deletions

View file

@ -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");

View file

@ -15,7 +15,7 @@ usage(void)
enum
{
BlockSize = 8*1024,
CacheSize = 4<<20,
CacheSize = 128<<20,
};
struct