diff options
author | phk <phk@FreeBSD.org> | 2007-12-16 20:19:55 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2007-12-16 20:19:55 +0000 |
commit | 7894d1eb6efd549fbe69aaf1bee681daa78037fa (patch) | |
tree | 4df718c6a94edc60d5ecba1205a9509b779849cf /sbin/newfs | |
parent | 8869357e615c78e3fd49cef030938ecad98ad0fb (diff) | |
download | FreeBSD-src-7894d1eb6efd549fbe69aaf1bee681daa78037fa.zip FreeBSD-src-7894d1eb6efd549fbe69aaf1bee681daa78037fa.tar.gz |
Report erase interval (correctly) in sectors.
Diffstat (limited to 'sbin/newfs')
-rw-r--r-- | sbin/newfs/mkfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/newfs/mkfs.c b/sbin/newfs/mkfs.c index c4ddef3..c8a09b6 100644 --- a/sbin/newfs/mkfs.c +++ b/sbin/newfs/mkfs.c @@ -449,9 +449,9 @@ mkfs(struct partition *pp, char *fsys) # undef B2MBFACTOR if (Eflag && !Nflag) { - printf("Erasing blocks [%jd...%jd[\n", + printf("Erasing sectors [%jd...%jd]\n", 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, sblock.fs_size * sblock.fs_fsize - sblock.fs_sblockloc); } |