diff options
author | Michael I. Bushnell <mib@gnu.org> | 1996-05-09 23:37:47 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1996-05-09 23:37:47 +0000 |
commit | b2aecd50c2d7ed75af2bac0d4edce6a6bd0b845a (patch) | |
tree | ee2357692b792021848bfc77f7737985b8935531 /ufs | |
parent | c57f21bd975cd0b82daca86c521f6635625358bd (diff) |
(diskfs_set_statfs): Use and fill in new statfs structure.
Diffstat (limited to 'ufs')
-rw-r--r-- | ufs/inode.c | 24 |
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; } |