Put the correct fragment size in struct statvfs. From Kevin Lahey.

This commit is contained in:
christos 2004-11-11 01:32:12 +00:00
parent 3b40bfaefe
commit e98accb116
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: ext2fs_vfsops.c,v 1.76 2004/09/21 03:10:35 thorpej Exp $ */
/* $NetBSD: ext2fs_vfsops.c,v 1.77 2004/11/11 01:32:12 christos Exp $ */
/*
* Copyright (c) 1989, 1991, 1993, 1994
@ -65,7 +65,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: ext2fs_vfsops.c,v 1.76 2004/09/21 03:10:35 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: ext2fs_vfsops.c,v 1.77 2004/11/11 01:32:12 christos Exp $");
#if defined(_KERNEL_OPT)
#include "opt_compat_netbsd.h"
@ -783,7 +783,7 @@ ext2fs_statvfs(mp, sbp, p)
overhead += ngroups * (1 + fs->e2fs_ngdb);
sbp->f_bsize = fs->e2fs_bsize;
sbp->f_frsize = fs->e2fs.e2fs_fsize;
sbp->f_frsize = 1024 << fs->e2fs.e2fs_fsize;
sbp->f_iosize = fs->e2fs_bsize;
sbp->f_blocks = fs->e2fs.e2fs_bcount - overhead;
sbp->f_bfree = fs->e2fs.e2fs_fbcount;