summaryrefslogtreecommitdiff
path: root/isofs/inode.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1998-12-27 10:19:38 +0000
committerRoland McGrath <roland@gnu.org>1998-12-27 10:19:38 +0000
commitec10364b89a9355798af92c714683c235e64681a (patch)
tree6095e546924f855e603582587ba34ea5f9b9cc83 /isofs/inode.c
parentdc431a92c14959845a080f3a29ba6a7293f56151 (diff)
1998-12-27 Roland McGrath <roland@baalperazim.frob.com>
* inode.c (diskfs_set_statfs): Remove __ from struct statfs members. Use bzero first instead of setting individual fields to zero.
Diffstat (limited to 'isofs/inode.c')
-rw-r--r--isofs/inode.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/isofs/inode.c b/isofs/inode.c
index 0926ca28..a364c19e 100644
--- a/isofs/inode.c
+++ b/isofs/inode.c
@@ -1,4 +1,4 @@
-/*
+/*
Copyright (C) 1997, 1998 Free Software Foundation, Inc.
Written by Thomas Bushnell, n/BSG.
@@ -549,17 +549,12 @@ diskfs_set_statfs (struct statfs *st)
{
/* There is no easy way to determine the number of files on an
ISO 9660 filesystem. */
+ bzero (st, sizeof *st);
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;
+ st->f_frsize = logical_block_size;
return 0;
}