summaryrefslogtreecommitdiff
path: root/isofs
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1998-12-27 09:03:15 +0000
committerRoland McGrath <roland@gnu.org>1998-12-27 09:03:15 +0000
commit2ea7b2c821fe4f14418696911e5f815b1c97f829 (patch)
treef2d6fb408d52eeb4455816404467e9da30835535 /isofs
parentf2b516cf4db7822e09437a13d2ee72e3378c0f78 (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')
-rw-r--r--isofs/inode.c15
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;
}