8 fprint(2, "usage: fmtisect [-Z] [-b blocksize] name file\n");
13 threadmain(int argc, char *argv[])
18 int blocksize, setsize, zero;
20 fmtinstall('V', vtscorefmt);
28 blocksize = unittoull(ARGF());
31 if(blocksize > MaxDiskBlock){
32 fprint(2, "block size too large, max %d\n", MaxDiskBlock);
33 threadexitsall("usage");
51 sysfatal("illegal name %s", name);
53 part = initpart(file, 0);
55 sysfatal("can't open partition %s: %r", file);
58 zeropart(part, blocksize);
60 fprint(2, "configuring index section %s with space for index config bytes=%d\n", name, setsize);
61 is = newisect(part, name, blocksize, setsize);
63 sysfatal("can't initialize new index: %r");
66 fprint(2, "can't write back index section header for %s: %r\n", file);