summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-05-09 23:37:47 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-05-09 23:37:47 +0000
commit6d68da5972bc337faa390b1426d58985fca87217 (patch)
tree985158a4c88a2eb2983eee59b544538971c865d1
parentdd6125558aa2543434423c0cbfb8837a8379bda2 (diff)
(diskfs_set_statfs): Use and fill in new statfs structure.
-rw-r--r--ufs/inode.c24
1 files 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 <hurd/diskfs.h> 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;
}