summaryrefslogtreecommitdiff
path: root/ext2fs/inode.c
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-05-10 00:18:47 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-05-10 00:18:47 +0000
commitd15fc56d40630fc4aee2ccdf54f9cf7c5385dc72 (patch)
tree7e1b4a17332bb82f5a8d0626ade6c312e4bcb8b7 /ext2fs/inode.c
parente31dc38725bc0505f26df59f9bb567435d7f4f5e (diff)
(diskfs_set_statfs): Expect and fill in new format statfs buffer.
Diffstat (limited to 'ext2fs/inode.c')
-rw-r--r--ext2fs/inode.c20
1 files 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;
}