summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_cluster.c
diff options
context:
space:
mode:
authormckusick <mckusick@FreeBSD.org>2003-11-12 08:01:40 +0000
committermckusick <mckusick@FreeBSD.org>2003-11-12 08:01:40 +0000
commit6a4c30bccd39734b6409a2f64db2e39af69226d4 (patch)
tree9276085ba9980aaba9cc6dd96164deefa080feaf /sys/kern/vfs_cluster.c
parent35dbfd051029f3e008f4a6e06721ee5dc0952843 (diff)
downloadFreeBSD-src-6a4c30bccd39734b6409a2f64db2e39af69226d4.zip
FreeBSD-src-6a4c30bccd39734b6409a2f64db2e39af69226d4.tar.gz
Update the statfs structure with 64-bit fields to allow
accurate reporting of multi-terabyte filesystem sizes. You should build and boot a new kernel BEFORE doing a `make world' as the new kernel will know about binaries using the old statfs structure, but an old kernel will not know about the new system calls that support the new statfs structure. Running an old kernel after a `make world' will cause programs such as `df' that do a statfs system call to fail with a bad system call. Reviewed by: Bruce Evans <bde@zeta.org.au> Reviewed by: Tim Robbins <tjr@freebsd.org> Reviewed by: Julian Elischer <julian@elischer.org> Reviewed by: the hoards of <arch@freebsd.org> Sponsored by: DARPA & NAI Labs.
Diffstat (limited to 'sys/kern/vfs_cluster.c')
-rw-r--r--sys/kern/vfs_cluster.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/vfs_cluster.c b/sys/kern/vfs_cluster.c
index dc86fb9..3fa110b 100644
--- a/sys/kern/vfs_cluster.c
+++ b/sys/kern/vfs_cluster.c
@@ -327,8 +327,8 @@ cluster_rbuild(vp, filesize, lbn, blkno, size, run, fbp)
GIANT_REQUIRED;
KASSERT(size == vp->v_mount->mnt_stat.f_iosize,
- ("cluster_rbuild: size %ld != filesize %ld\n",
- size, vp->v_mount->mnt_stat.f_iosize));
+ ("cluster_rbuild: size %ld != filesize %jd\n",
+ size, (intmax_t)vp->v_mount->mnt_stat.f_iosize));
/*
* avoid a division
OpenPOWER on IntegriCloud