From 6d68da5972bc337faa390b1426d58985fca87217 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Thu, 9 May 1996 23:37:47 +0000 Subject: (diskfs_set_statfs): Use and fill in new statfs structure. --- ufs/inode.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/ufs/inode.c b/ufs/inode.c index ab19668f..4011ff55 100644 --- a/ufs/inode.c +++ b/ufs/inode.c @@ -487,19 +487,19 @@ diskfs_write_disknode (struct node *np, int wait) /* Implement the diskfs_set_statfs callback from the diskfs library; see for the interface description. */ error_t -diskfs_set_statfs (struct fsys_statfsbuf *st) +diskfs_set_statfs (struct statfs *st) { - st->fsys_stb_type = FSTYPE_UFS; - st->fsys_stb_iosize = sblock->fs_bsize; - st->fsys_stb_bsize = sblock->fs_fsize; - st->fsys_stb_blocks = sblock->fs_dsize; - st->fsys_stb_bfree = (sblock->fs_cstotal.cs_nbfree * sblock->fs_frag - + sblock->fs_cstotal.cs_nffree); - st->fsys_stb_bavail = ((sblock->fs_dsize * (100 - sblock->fs_minfree) / 100) - - (sblock->fs_dsize - st->fsys_stb_bfree)); - st->fsys_stb_files = sblock->fs_ncg * sblock->fs_ipg - 2; /* not 0 or 1 */ - st->fsys_stb_ffree = sblock->fs_cstotal.cs_nifree; - st->fsys_stb_fsid = getpid (); + st->f_type = FSTYPE_UFS; + st->f_bsize = sblock->fs_bsize; + st->f_blocks = sblock->fs_dsize * sblock->fs_frag; + st->f_bfree = (sblock->fs_cstotal.cs_nbfree * sblock->fs_frag + + sblock->fs_cstotal.cs_nffree); + st->f_bavail = ((sblock->fs_dsize * (100 - sblock->fs_minfree) / 100) + - (sblock->fs_dsize - st->fsys_stb_bfree)); + st->f_files = sblock->fs_ncg * sblock->fs_ipg - 2; /* not 0 or 1 */ + st->f_ffree = sblock->fs_cstotal.cs_nifree; + st->f_fsid = getpid (); + st->f_namelen = 0; return 0; } -- cgit v1.2.3