diff options
author | Roland McGrath <roland@gnu.org> | 1998-12-27 09:03:15 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1998-12-27 09:03:15 +0000 |
commit | 2ea7b2c821fe4f14418696911e5f815b1c97f829 (patch) | |
tree | f2d6fb408d52eeb4455816404467e9da30835535 /isofs/inode.c | |
parent | f2b516cf4db7822e09437a13d2ee72e3378c0f78 (diff) |
1998-12-21 Mark Kettenis <kettenis@phys.uva.nl>
* inode.c (diskfs_set_statfs): Fill in statfs members with
sensible values.
Diffstat (limited to 'isofs/inode.c')
-rw-r--r-- | isofs/inode.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/isofs/inode.c b/isofs/inode.c index cba3e691..0926ca28 100644 --- a/isofs/inode.c +++ b/isofs/inode.c @@ -547,8 +547,19 @@ diskfs_write_disknode (struct node *np, int wait) error_t diskfs_set_statfs (struct statfs *st) { - /* XXX return something useful */ - bzero (st, sizeof *st); + /* There is no easy way to determine the number of files on an + ISO 9660 filesystem. */ + st->f_type = FSTYPE_ISO9660; + st->f_bsize = logical_block_size; + st->f_blocks = isonum_733 (sblock->vol_sp_size); + st->f_bfree = 0; + st->f_bavail = 0; + st->f_files = 0; + st->f_ffree = 0; + st->f_fsid = getpid (); + st->f_namelen = 0; + st->__f_favail = 0; + st->__f_frsize = logical_block_size; return 0; } |