6 zeropart(Part *part, int blocksize)
12 fprint(2, "clearing the partition\n");
13 //fprint(2, "NOT!\n");
15 //b=alloczblock(MaxIoSize, 1, blocksize);
17 b = alloczblock(MaxIoSize, 1, blocksize);
20 for(addr = PartBlank; addr + MaxIoSize <= part->size; addr += MaxIoSize){
21 if(writepart(part, addr, b->data, MaxIoSize) < 0)
22 sysfatal("can't initialize %s, writing block %d failed: %r", part->name, w);
26 for(; addr + blocksize <= part->size; addr += blocksize)
27 if(writepart(part, addr, b->data, blocksize) < 0)
28 sysfatal("can't initialize %s: %r", part->name);