vbackup: adapt to new libventi interface
This commit is contained in:
parent
77ac358321
commit
b8f457199c
1 changed files with 5 additions and 5 deletions
|
|
@ -189,7 +189,7 @@ threadmain(int argc, char **argv)
|
||||||
|
|
||||||
if(verbose)
|
if(verbose)
|
||||||
fprint(2, "cache %d blocks\n", csize);
|
fprint(2, "cache %d blocks\n", csize);
|
||||||
c = vtcachealloc(z, bsize, csize);
|
c = vtcachealloc(z, bsize*csize);
|
||||||
zcache = c;
|
zcache = c;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
@ -211,7 +211,7 @@ threadmain(int argc, char **argv)
|
||||||
sysfatal("bad score: %r");
|
sysfatal("bad score: %r");
|
||||||
if(pref!=nil && strcmp(pref, fsys->type) != 0)
|
if(pref!=nil && strcmp(pref, fsys->type) != 0)
|
||||||
sysfatal("score is %s but fsys is %s", pref, fsys->type);
|
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(b){
|
||||||
if(vtrootunpack(&root, b->data) < 0)
|
if(vtrootunpack(&root, b->data) < 0)
|
||||||
sysfatal("bad root: %r");
|
sysfatal("bad root: %r");
|
||||||
|
|
@ -221,7 +221,7 @@ threadmain(int argc, char **argv)
|
||||||
memmove(score, root.score, VtScoreSize);
|
memmove(score, root.score, VtScoreSize);
|
||||||
vtblockput(b);
|
vtblockput(b);
|
||||||
}
|
}
|
||||||
b = vtcacheglobal(c, score, VtDirType);
|
b = vtcacheglobal(c, score, VtDirType, VtEntrySize);
|
||||||
if(b == nil)
|
if(b == nil)
|
||||||
sysfatal("vtcacheglobal %V: %r", score);
|
sysfatal("vtcacheglobal %V: %r", score);
|
||||||
if(vtentryunpack(&e, b->data, 0) < 0)
|
if(vtentryunpack(&e, b->data, 0) < 0)
|
||||||
|
|
@ -330,7 +330,7 @@ threadmain(int argc, char **argv)
|
||||||
vtfileunlock(vfile);
|
vtfileunlock(vfile);
|
||||||
vtfileclose(vfile);
|
vtfileclose(vfile);
|
||||||
|
|
||||||
b = vtcacheallocblock(c, VtDirType);
|
b = vtcacheallocblock(c, VtDirType, VtEntrySize);
|
||||||
if(b == nil)
|
if(b == nil)
|
||||||
sysfatal("vtcacheallocblock: %r");
|
sysfatal("vtcacheallocblock: %r");
|
||||||
vtentrypack(&e, b->data, 0);
|
vtentrypack(&e, b->data, 0);
|
||||||
|
|
@ -345,7 +345,7 @@ threadmain(int argc, char **argv)
|
||||||
memmove(root.prev, prev, VtScoreSize);
|
memmove(root.prev, prev, VtScoreSize);
|
||||||
vtblockput(b);
|
vtblockput(b);
|
||||||
|
|
||||||
b = vtcacheallocblock(c, VtRootType);
|
b = vtcacheallocblock(c, VtRootType, VtRootSize);
|
||||||
if(b == nil)
|
if(b == nil)
|
||||||
sysfatal("vtcacheallocblock: %r");
|
sysfatal("vtcacheallocblock: %r");
|
||||||
vtrootpack(&root, b->data);
|
vtrootpack(&root, b->data);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue