From 34d0c826bb2975dac5be0ffdd8db1e8d773bcd09 Mon Sep 17 00:00:00 2001 From: rsc Date: Wed, 13 Jul 2005 17:22:01 +0000 Subject: no mode on vtcachealloc --- src/cmd/vbackup/vbackup.c | 2 +- src/cmd/vbackup/vcat.c | 2 +- src/cmd/vbackup/vnfs.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/cmd') diff --git a/src/cmd/vbackup/vbackup.c b/src/cmd/vbackup/vbackup.c index 4fdaf3e4..39e1b29c 100644 --- a/src/cmd/vbackup/vbackup.c +++ b/src/cmd/vbackup/vbackup.c @@ -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; /* diff --git a/src/cmd/vbackup/vcat.c b/src/cmd/vbackup/vcat.c index 581adcb8..1725ffdd 100644 --- a/src/cmd/vbackup/vcat.c +++ b/src/cmd/vbackup/vcat.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"); diff --git a/src/cmd/vbackup/vnfs.c b/src/cmd/vbackup/vnfs.c index 6c6421c5..4e350f92 100644 --- a/src/cmd/vbackup/vnfs.c +++ b/src/cmd/vbackup/vnfs.c @@ -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]; -- cgit v1.2.3