9 fprint(2, "usage: syncindex [-fv] [-B blockcachesize] config\n");
10 threadexitsall("usage");
14 threadmain(int argc, char *argv[])
23 bcmem = unittoull(ARGF());
42 if(initventi(argv[0]) < 0)
43 sysfatal("can't init venti: %r");
45 if(bcmem < maxblocksize * (mainindex->narenas + mainindex->nsects * 4 + 16))
46 bcmem = maxblocksize * (mainindex->narenas + mainindex->nsects * 4 + 16);
47 fprint(2, "initialize %d bytes of disk block cache\n", bcmem);
51 printindex(2, mainindex);
52 if(syncindex(mainindex, fix) < 0)
53 sysfatal("failed to sync index=%s: %r\n", mainindex->name);