always write last block in vcat (dave swasey)
This commit is contained in:
parent
9437f55b49
commit
933a862577
1 changed files with 1 additions and 1 deletions
|
|
@ -64,7 +64,7 @@ threadmain(int argc, char **argv)
|
|||
fprint(2, "error writing block %lud: %r\n", i);
|
||||
n++;
|
||||
blockput(b);
|
||||
}else if(zerotoo)
|
||||
}else if(zerotoo || i==fsys->nblock-1)
|
||||
if(pwrite(1, zero, fsys->blocksize,
|
||||
(u64int)fsys->blocksize*i) != fsys->blocksize)
|
||||
fprint(2, "error writing block %lud: %r\n", i);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue