Source-Changes-HG archive

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

[src/trunk]: src/sys/fs/sysvbfs calculate inode capacities using the correct ...



details:   https://anonhg.NetBSD.org/src/rev/542c1b0df1da
branches:  trunk
changeset: 779729:542c1b0df1da
user:      agc <agc%NetBSD.org@localhost>
date:      Thu Jun 14 01:08:22 2012 +0000

description:
calculate inode capacities using the correct values

diffstat:

 sys/fs/sysvbfs/sysvbfs_vfsops.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r 7f816deee0fe -r 542c1b0df1da sys/fs/sysvbfs/sysvbfs_vfsops.c
--- a/sys/fs/sysvbfs/sysvbfs_vfsops.c   Thu Jun 14 00:56:37 2012 +0000
+++ b/sys/fs/sysvbfs/sysvbfs_vfsops.c   Thu Jun 14 01:08:22 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sysvbfs_vfsops.c,v 1.40 2012/06/13 22:56:50 joerg Exp $        */
+/*     $NetBSD: sysvbfs_vfsops.c,v 1.41 2012/06/14 01:08:22 agc Exp $  */
 
 /*-
  * Copyright (c) 2004 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sysvbfs_vfsops.c,v 1.40 2012/06/13 22:56:50 joerg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sysvbfs_vfsops.c,v 1.41 2012/06/14 01:08:22 agc Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -277,8 +277,8 @@
        f->f_bfree = free_block;
        f->f_bavail = f->f_bfree;
        f->f_bresvd = 0;
-       f->f_files = bfs->n_inode;
-       f->f_ffree = bfs->max_inode - f->f_files;
+       f->f_files = bfs->max_inode;
+       f->f_ffree = bfs->max_inode - bfs->n_inode;
        f->f_favail = f->f_ffree;
        f->f_fresvd = 0;
        copy_statvfs_info(f, mp);



Home | Main Index | Thread Index | Old Index