summaryrefslogtreecommitdiffstats
path: root/sys/fs/unionfs/union_vfsops.c
diff options
context:
space:
mode:
authorkato <kato@FreeBSD.org>1997-05-07 14:37:32 +0000
committerkato <kato@FreeBSD.org>1997-05-07 14:37:32 +0000
commiteae849a5dd622cdfd0eb8d5d1d2abdcaf9ac674b (patch)
treec647cab7f3048dce5c0e96a94ba78b20c2ea340b /sys/fs/unionfs/union_vfsops.c
parent885c49bd6a1a2f983fac3cb79958a770303872b0 (diff)
downloadFreeBSD-src-eae849a5dd622cdfd0eb8d5d1d2abdcaf9ac674b.zip
FreeBSD-src-eae849a5dd622cdfd0eb8d5d1d2abdcaf9ac674b.tar.gz
1. Added cast and parenthesis in block size calculaion in
union_statfs(). 2. staticized union vops. Submitted by: Doug Rabson <dfr@nlsystems.com>
Diffstat (limited to 'sys/fs/unionfs/union_vfsops.c')
-rw-r--r--sys/fs/unionfs/union_vfsops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/fs/unionfs/union_vfsops.c b/sys/fs/unionfs/union_vfsops.c
index 98ad258..33f2525 100644
--- a/sys/fs/unionfs/union_vfsops.c
+++ b/sys/fs/unionfs/union_vfsops.c
@@ -35,7 +35,7 @@
* SUCH DAMAGE.
*
* @(#)union_vfsops.c 8.20 (Berkeley) 5/20/95
- * $Id: union_vfsops.c,v 1.15 1997/04/14 10:52:25 kato Exp $
+ * $Id: union_vfsops.c,v 1.16 1997/04/19 06:04:13 kato Exp $
*/
/*
@@ -504,7 +504,7 @@ union_statfs(mp, sbp, p)
*/
if (mstat.f_bsize != lbsize)
- sbp->f_blocks = sbp->f_blocks * lbsize / mstat.f_bsize;
+ sbp->f_blocks = ((off_t) sbp->f_blocks * lbsize) / mstat.f_bsize;
/*
* The "total" fields count total resources in all layers,
OpenPOWER on IntegriCloud