aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/vbackup
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2009-06-10 10:16:40 -0700
committerRuss Cox <rsc@swtch.com>2009-06-10 10:16:40 -0700
commitb8f457199c4228aed8a8049639e85df2c9cbe858 (patch)
treed41138b707e1d1fde69caa5b551f3ed893ea3e98 /src/cmd/vbackup
parent77ac35832191e456a5d9a3ccff667ab262838303 (diff)
downloadplan9port-b8f457199c4228aed8a8049639e85df2c9cbe858.tar.gz
plan9port-b8f457199c4228aed8a8049639e85df2c9cbe858.tar.bz2
plan9port-b8f457199c4228aed8a8049639e85df2c9cbe858.zip
vbackup: adapt to new libventi interface
Diffstat (limited to 'src/cmd/vbackup')
-rw-r--r--src/cmd/vbackup/vbackup.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/cmd/vbackup/vbackup.c b/src/cmd/vbackup/vbackup.c
index db26bc32..353ff610 100644
--- a/src/cmd/vbackup/vbackup.c
+++ b/src/cmd/vbackup/vbackup.c
@@ -189,7 +189,7 @@ threadmain(int argc, char **argv)
if(verbose)
fprint(2, "cache %d blocks\n", csize);
- c = vtcachealloc(z, bsize, csize);
+ c = vtcachealloc(z, bsize*csize);
zcache = c;
/*
@@ -211,7 +211,7 @@ threadmain(int argc, char **argv)
sysfatal("bad score: %r");
if(pref!=nil && strcmp(pref, fsys->type) != 0)
sysfatal("score is %s but fsys is %s", pref, fsys->type);
- b = vtcacheglobal(c, score, VtRootType);
+ b = vtcacheglobal(c, score, VtRootType, VtRootSize);
if(b){
if(vtrootunpack(&root, b->data) < 0)
sysfatal("bad root: %r");
@@ -221,7 +221,7 @@ threadmain(int argc, char **argv)
memmove(score, root.score, VtScoreSize);
vtblockput(b);
}
- b = vtcacheglobal(c, score, VtDirType);
+ b = vtcacheglobal(c, score, VtDirType, VtEntrySize);
if(b == nil)
sysfatal("vtcacheglobal %V: %r", score);
if(vtentryunpack(&e, b->data, 0) < 0)
@@ -330,7 +330,7 @@ threadmain(int argc, char **argv)
vtfileunlock(vfile);
vtfileclose(vfile);
- b = vtcacheallocblock(c, VtDirType);
+ b = vtcacheallocblock(c, VtDirType, VtEntrySize);
if(b == nil)
sysfatal("vtcacheallocblock: %r");
vtentrypack(&e, b->data, 0);
@@ -345,7 +345,7 @@ threadmain(int argc, char **argv)
memmove(root.prev, prev, VtScoreSize);
vtblockput(b);
- b = vtcacheallocblock(c, VtRootType);
+ b = vtcacheallocblock(c, VtRootType, VtRootSize);
if(b == nil)
sysfatal("vtcacheallocblock: %r");
vtrootpack(&root, b->data);