From d15fc56d40630fc4aee2ccdf54f9cf7c5385dc72 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Fri, 10 May 1996 00:18:47 +0000 Subject: (diskfs_set_statfs): Expect and fill in new format statfs buffer. --- ext2fs/inode.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/ext2fs/inode.c b/ext2fs/inode.c index d2863d22..744ac9da 100644 --- a/ext2fs/inode.c +++ b/ext2fs/inode.c @@ -452,17 +452,17 @@ diskfs_write_disknode (struct node *np, int wait) /* Set *ST with appropriate values to reflect the current state of the filesystem. */ error_t -diskfs_set_statfs (struct fsys_statfsbuf *st) +diskfs_set_statfs (struct statfs *st) { - st->fsys_stb_type = FSTYPE_EXT2FS; - st->fsys_stb_iosize = block_size; - st->fsys_stb_bsize = frag_size; - st->fsys_stb_blocks = sblock->s_blocks_count; - st->fsys_stb_bfree = sblock->s_free_blocks_count; - st->fsys_stb_bavail = st->fsys_stb_bfree - sblock->s_r_blocks_count; - st->fsys_stb_files = sblock->s_inodes_count; - st->fsys_stb_ffree = sblock->s_free_inodes_count; - st->fsys_stb_fsid = getpid (); + st->f_type = FSTYPE_EXT2FS; + st->f_bsize = block_size; + st->f_blocks = sblock->s_blocks_count; + st->f_bfree = sblock->s_free_blocks_count; + st->f_bavail = st->fsys_stb_bfree - sblock->s_r_blocks_count; + st->f_files = sblock->s_inodes_count; + st->f_ffree = sblock->s_free_inodes_count; + st->f_fsid = getpid (); + st->f_namelen = 0; return 0; } -- cgit v1.2.3