mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
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:
parent
fa588406f0
commit
59b460f845
2 changed files with 2 additions and 2 deletions
|
@ -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");
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ usage(void)
|
|||
enum
|
||||
{
|
||||
BlockSize = 8*1024,
|
||||
CacheSize = 4<<20,
|
||||
CacheSize = 128<<20,
|
||||
};
|
||||
|
||||
struct
|
||||
|
|
Loading…
Reference in a new issue