no mode on vtcachealloc
This commit is contained in:
parent
103335c208
commit
34d0c826bb
3 changed files with 3 additions and 3 deletions
|
|
@ -167,7 +167,7 @@ threadmain(int argc, char **argv)
|
|||
|
||||
if(verbose)
|
||||
fprint(2, "cache %d blocks\n", csize);
|
||||
c = vtcachealloc(z, bsize, csize, VtORDWR);
|
||||
c = vtcachealloc(z, bsize, csize);
|
||||
zcache = c;
|
||||
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ threadmain(int argc, char **argv)
|
|||
sysfatal("vtdial: %r");
|
||||
if(vtconnect(z) < 0)
|
||||
sysfatal("vtconnect: %r");
|
||||
if((c = vtcachealloc(z, 16384, 32, VtOREAD)) == nil)
|
||||
if((c = vtcachealloc(z, 16384, 32)) == nil)
|
||||
sysfatal("vtcache: %r");
|
||||
if((disk = diskopenventi(c, score)) == nil)
|
||||
sysfatal("diskopenventi: %r");
|
||||
|
|
|
|||
|
|
@ -137,7 +137,7 @@ threadmain(int argc, char **argv)
|
|||
sysfatal("vtdial: %r");
|
||||
if(vtconnect(z) < 0)
|
||||
sysfatal("vtconnect: %r");
|
||||
if((vcache = vtcachealloc(z, blocksize, cachesize, OREAD)) == nil)
|
||||
if((vcache = vtcachealloc(z, blocksize, cachesize)) == nil)
|
||||
sysfatal("vtcache: %r");
|
||||
|
||||
configfile = argv[0];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue