Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/ufs/ext2fs Put the correct fragment size in struct statv...



details:   https://anonhg.NetBSD.org/src/rev/04187fad915c
branches:  trunk
changeset: 571103:04187fad915c
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Nov 11 01:32:12 2004 +0000

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

diffstat:

 sys/ufs/ext2fs/ext2fs_vfsops.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 308f0d4e0287 -r 04187fad915c sys/ufs/ext2fs/ext2fs_vfsops.c
--- a/sys/ufs/ext2fs/ext2fs_vfsops.c    Thu Nov 11 01:14:10 2004 +0000
+++ b/sys/ufs/ext2fs/ext2fs_vfsops.c    Thu Nov 11 01:32:12 2004 +0000
@@ -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 @@
        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;



Home | Main Index | Thread Index | Old Index