diff options
author | Roland McGrath <roland@gnu.org> | 1998-12-27 10:27:06 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1998-12-27 10:27:06 +0000 |
commit | fdcdc2f1069385b3a8566fe767f03d4a827fd83a (patch) | |
tree | 9755bddc33b7dfb4aca7106b0b25eedc6b304055 /ext2fs | |
parent | 4b9fa742adb5040b982930cb1624954656c1294d (diff) |
1998-12-27 Roland McGrath <roland@baalperazim.frob.com>
* inode.c (diskfs_set_statfs): Remove __ from struct members.
1998-12-21 Mark Kettenis <kettenis@phys.uva.nl>
* inode.c (diskfs_set_statfs): Fill in statfs members that are
used to implement statvfs.
Diffstat (limited to 'ext2fs')
-rw-r--r-- | ext2fs/inode.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext2fs/inode.c b/ext2fs/inode.c index 92b00ad9..0e3d01c9 100644 --- a/ext2fs/inode.c +++ b/ext2fs/inode.c @@ -23,6 +23,8 @@ #include <unistd.h> #include <stdio.h> #include <sys/stat.h> +#include <sys/statfs.h> +#include <sys/statvfs.h> /* these flags aren't actually defined by a header file yet, so temporarily disable them if necessary. */ @@ -600,6 +602,8 @@ diskfs_set_statfs (struct statfs *st) st->f_ffree = sblock->s_free_inodes_count; st->f_fsid = getpid (); st->f_namelen = 0; + st->f_favail = st->f_ffree; + st->f_frsize = frag_size; return 0; } |