Always override f_iosize from stat() to DEV_BSIZE for now. Places such

as vnd use the information, so until "dealing with it" is defined, it's
overriden by the kernel.
This commit is contained in:
pooka 2006-11-18 19:46:32 +00:00
parent a1485f3144
commit e1444e745f

View File

@ -1,4 +1,4 @@
/* $NetBSD: puffs_vfsops.c,v 1.10 2006/11/18 12:50:59 pooka Exp $ */
/* $NetBSD: puffs_vfsops.c,v 1.11 2006/11/18 19:46:32 pooka Exp $ */
/*
* Copyright (c) 2005, 2006 Antti Kantee. All Rights Reserved.
@ -33,7 +33,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: puffs_vfsops.c,v 1.10 2006/11/18 12:50:59 pooka Exp $");
__KERNEL_RCSID(0, "$NetBSD: puffs_vfsops.c,v 1.11 2006/11/18 19:46:32 pooka Exp $");
#include <sys/param.h>
#include <sys/mount.h>
@ -174,8 +174,7 @@ puffs_start2(struct puffs_mount *pmp, struct puffs_startreq *sreq)
/* do the VFS_STATVFS() we missed out on in sys_mount() */
copy_statvfs_info(&sreq->psr_sb, mp);
(void)memcpy(&mp->mnt_stat, &sreq->psr_sb, sizeof(mp->mnt_stat));
if (mp->mnt_stat.f_iosize == 0)
mp->mnt_stat.f_iosize = DEV_BSIZE;
mp->mnt_stat.f_iosize = DEV_BSIZE;
DPRINTF(("puffs_start2: root vp %p, cur root pnode %p, cookie %p\n",
pmp->pmp_root, pn, sreq->psr_cookie));
@ -350,9 +349,7 @@ puffs_statvfs(struct mount *mp, struct statvfs *sbp, struct lwp *l)
error = puffs_vfstouser(pmp, PUFFS_VFS_STATVFS,
statvfs_arg, sizeof(*statvfs_arg));
if (statvfs_arg->pvfsr_sb.f_iosize == 0)
statvfs_arg->pvfsr_sb.f_iosize = DEV_BSIZE;
statvfs_arg->pvfsr_sb.f_iosize = DEV_BSIZE;
/*
* Try to produce a sensible result even in the event