summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_bio.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/vfs_bio.c')
-rw-r--r--sys/kern/vfs_bio.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c
index 9b44e9b..b6c1caa 100644
--- a/sys/kern/vfs_bio.c
+++ b/sys/kern/vfs_bio.c
@@ -2570,6 +2570,11 @@ loop:
else
bsize = size;
+ if (vp->v_bsize != bsize) {
+ printf("WARNING: Wrong block size on vnode: %d should be %d\n", vp->v_bsize, bsize);
+ vprint("Please email phk@FreeBSD.org this info\n", vp);
+ }
+
offset = blkno * bsize;
vmio = (VOP_GETVOBJECT(vp, NULL) == 0) &&
(vp->v_vflag & VV_OBJBUF);
OpenPOWER on IntegriCloud