Report erase interval (correctly) in sectors.
This commit is contained in:
parent
9a6378d803
commit
59c0f72857
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=174676
@ -449,9 +449,9 @@ mkfs(struct partition *pp, char *fsys)
|
|||||||
# undef B2MBFACTOR
|
# undef B2MBFACTOR
|
||||||
|
|
||||||
if (Eflag && !Nflag) {
|
if (Eflag && !Nflag) {
|
||||||
printf("Erasing blocks [%jd...%jd[\n",
|
printf("Erasing sectors [%jd...%jd]\n",
|
||||||
sblock.fs_sblockloc / disk.d_bsize,
|
sblock.fs_sblockloc / disk.d_bsize,
|
||||||
sblock.fs_size * sblock.fs_fsize / disk.d_bsize);
|
fsbtodb(&sblock, sblock.fs_size) - 1);
|
||||||
berase(&disk, sblock.fs_sblockloc / disk.d_bsize,
|
berase(&disk, sblock.fs_sblockloc / disk.d_bsize,
|
||||||
sblock.fs_size * sblock.fs_fsize - sblock.fs_sblockloc);
|
sblock.fs_size * sblock.fs_fsize - sblock.fs_sblockloc);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user