diff options
author | Michael I. Bushnell <mib@gnu.org> | 1996-05-10 00:24:11 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1996-05-10 00:24:11 +0000 |
commit | 148dc191b1b59b4ec320b3f3277d79d13140728c (patch) | |
tree | fc82999d7854f5302cb6814751577f5d7b4ba1ca /nfs | |
parent | 89c1a08047e16c89c2e4b7fbf3c0691e3cf6a5b9 (diff) |
(netfs_attempt_statfs): Expect and fill in new statfs buffer.
Diffstat (limited to 'nfs')
-rw-r--r-- | nfs/ops.c | 23 |
1 files changed, 13 insertions, 10 deletions
@@ -258,7 +258,7 @@ netfs_attempt_set_size (struct netcred *cred, struct node *np, <hurd/netfs.h>. */ error_t netfs_attempt_statfs (struct netcred *cred, struct node *np, - struct fsys_statfsbuf *st) + struct statfs *st) { int *p; void *rpcbuf; @@ -273,16 +273,19 @@ netfs_attempt_statfs (struct netcred *cred, struct node *np, if (!err) { - st->fsys_stb_iosize = *p++; - st->fsys_stb_bsize = *p++; - st->fsys_stb_blocks = *p++; - st->fsys_stb_bfree = *p++; - st->fsys_stb_bavail = *p++; + long iosize, bsize; + iosize = *p++; + bsize = *p++; + st->f_bsize = iosize; + st->f_blocks = ((*p++) * bsize) / iosize; + st->f_bfree = ((*p++) * bsize) / iosize; + st->f_bavail = ((*p++) * bsize) / iosize; - st->fsys_stb_type = FSTYPE_NFS; - st->fsys_stb_files = 0; - st->fsys_stb_ffree = 0; - st->fsys_stb_fsid = 0; /* XXX wrong */ + st->f_type = FSTYPE_NFS; + st->f_files = 0; + st->f_ffree = 0; + st->f_fsid = 0; /* XXX wrong */ + st->f_namelen = 0; } free (rpcbuf); |