summaryrefslogtreecommitdiff
path: root/sbin/growfs
diff options
context:
space:
mode:
authorEdward Tomasz Napierala <trasz@FreeBSD.org>2012-05-06 11:48:37 +0000
committerEdward Tomasz Napierala <trasz@FreeBSD.org>2012-05-06 11:48:37 +0000
commitdeb35287b362d4568b165c0a7599bc277ef71508 (patch)
treee57b0d5cf76bb0dc56c78cd2b354d30b07f66365 /sbin/growfs
parenta8e5e7c520c1173e444796f7a99479017447b740 (diff)
downloadsrc-test2-deb35287b362d4568b165c0a7599bc277ef71508.tar.gz
src-test2-deb35287b362d4568b165c0a7599bc277ef71508.zip
Notes
Diffstat (limited to 'sbin/growfs')
-rw-r--r--sbin/growfs/growfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/growfs/growfs.c b/sbin/growfs/growfs.c
index aee4c40446cd..b610bd2f8c8f 100644
--- a/sbin/growfs/growfs.c
+++ b/sbin/growfs/growfs.c
@@ -1567,9 +1567,9 @@ main(int argc, char **argv)
testbuf = malloc(sblock.fs_fsize);
if (testbuf == NULL)
err(1, "malloc");
- rdfs((ufs2_daddr_t)((size / DEV_BSIZE) - sblock.fs_fsize),
+ rdfs((ufs2_daddr_t)((size - sblock.fs_fsize) / DEV_BSIZE),
sblock.fs_fsize, testbuf, fsi);
- wtfs((ufs2_daddr_t)((size / DEV_BSIZE) - sblock.fs_fsize),
+ wtfs((ufs2_daddr_t)((size - sblock.fs_fsize) / DEV_BSIZE),
sblock.fs_fsize, testbuf, fso, Nflag);
free(testbuf);