Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/ufs/lfs Fix inode reporting in lfs_statfs (the meaning o...
details: https://anonhg.NetBSD.org/src/rev/105a3667e1f8
branches: trunk
changeset: 471800:105a3667e1f8
user: perseant <perseant%NetBSD.org@localhost>
date: Sun Apr 11 23:58:17 1999 +0000
description:
Fix inode reporting in lfs_statfs (the meaning of f_files and f_ffree was
reversed).
diffstat:
sys/ufs/lfs/lfs_vfsops.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (20 lines):
diff -r 046b4819130b -r 105a3667e1f8 sys/ufs/lfs/lfs_vfsops.c
--- a/sys/ufs/lfs/lfs_vfsops.c Sun Apr 11 23:31:09 1999 +0000
+++ b/sys/ufs/lfs/lfs_vfsops.c Sun Apr 11 23:58:17 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lfs_vfsops.c,v 1.30 1999/04/11 23:31:09 perseant Exp $ */
+/* $NetBSD: lfs_vfsops.c,v 1.31 1999/04/11 23:58:17 perseant Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -570,8 +570,8 @@
- (u_int64_t)(fs->lfs_dsize - fs->lfs_bfree);
#endif
sbp->f_bavail = dbtofrags(fs, sbp->f_bavail);
- sbp->f_files = fs->lfs_nfiles;
- sbp->f_ffree = sbp->f_bfree * INOPB(fs);
+ sbp->f_files = dbtofsb(fs,fs->lfs_bfree) * INOPB(fs);
+ sbp->f_ffree = sbp->f_files - fs->lfs_nfiles;
if (sbp != &mp->mnt_stat) {
bcopy(mp->mnt_stat.f_mntonname, sbp->f_mntonname, MNAMELEN);
bcopy(mp->mnt_stat.f_mntfromname, sbp->f_mntfromname, MNAMELEN);
Home |
Main Index |
Thread Index |
Old Index