| fprint(2, "usage: fmtisect [-Z] [-b blocksize] name file\n"); |
| threadmain(int argc, char *argv[]) |
| int blocksize, setsize, zero; |
| blocksize = unittoull(ARGF()); |
| if(blocksize > MaxDiskBlock){ |
| fprint(2, "block size too large, max %d\n", MaxDiskBlock); |
| if(vers == ISectVersion1) |
| sysfatal("illegal name %s", name); |
| part = initpart(file, ORDWR|ODIRECT); |
| sysfatal("can't open partition %s: %r", file); |
| zeropart(part, blocksize); |
| is = newisect(part, vers, name, blocksize, setsize); |
| sysfatal("can't initialize new index: %r"); |
| fprint(2, "fmtisect %s: %,d buckets of %,d entries, %,d bytes for index map\n", |
| file, is->blocks, is->buckmax, setsize); |
| fprint(2, "can't write back index section header for %s: %r\n", file); |