Make it compile again after statvfs import.

This commit is contained in:
hannken 2004-04-22 10:18:03 +00:00
parent f15d491175
commit 754675a0e1

View File

@ -1,4 +1,4 @@
/* $NetBSD: sunos_misc.c,v 1.126 2004/04/21 01:05:37 christos Exp $ */
/* $NetBSD: sunos_misc.c,v 1.127 2004/04/22 10:18:03 hannken Exp $ */
/*
* Copyright (c) 1992, 1993
@ -50,7 +50,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: sunos_misc.c,v 1.126 2004/04/21 01:05:37 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: sunos_misc.c,v 1.127 2004/04/22 10:18:03 hannken Exp $");
#if defined(_KERNEL_OPT)
#include "opt_nfsserver.h"
@ -105,7 +105,7 @@ __KERNEL_RCSID(0, "$NetBSD: sunos_misc.c,v 1.126 2004/04/21 01:05:37 christos Ex
#include <nfs/nfs.h>
#include <nfs/nfsmount.h>
static int sunstatfs __P((struct statfs *, caddr_t));
static int sunstatfs __P((struct statvfs *, caddr_t));
int
sunos_sys_stime(l, v, retval)
@ -1003,7 +1003,7 @@ sunos_sys_statfs(l, v, retval)
struct sunos_sys_statfs_args *uap = v;
struct proc *p = l->l_proc;
struct mount *mp;
struct statfs *sp;
struct statvfs *sp;
int error;
struct nameidata nd;
@ -1016,9 +1016,9 @@ sunos_sys_statfs(l, v, retval)
mp = nd.ni_vp->v_mount;
sp = &mp->mnt_stat;
vrele(nd.ni_vp);
if ((error = VFS_STATFS(mp, sp, p)) != 0)
if ((error = VFS_STATVFS(mp, sp, p)) != 0)
return (error);
sp->f_flags = mp->mnt_flag & MNT_VISFLAGMASK;
sp->f_flag = mp->mnt_flag & MNT_VISFLAGMASK;
return sunstatfs(sp, (caddr_t)SCARG(uap, buf));
}
@ -1032,7 +1032,7 @@ sunos_sys_fstatfs(l, v, retval)
struct proc *p = l->l_proc;
struct file *fp;
struct mount *mp;
struct statfs *sp;
struct statvfs *sp;
int error;
/* getvnode() will use the descriptor for us */
@ -1040,9 +1040,9 @@ sunos_sys_fstatfs(l, v, retval)
return (error);
mp = ((struct vnode *)fp->f_data)->v_mount;
sp = &mp->mnt_stat;
if ((error = VFS_STATFS(mp, sp, p)) != 0)
if ((error = VFS_STATVFS(mp, sp, p)) != 0)
goto out;
sp->f_flags = mp->mnt_flag & MNT_VISFLAGMASK;
sp->f_flag = mp->mnt_flag & MNT_VISFLAGMASK;
error = sunstatfs(sp, (caddr_t)SCARG(uap, buf));
out:
FILE_UNUSE(fp, p);