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