Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/compat/common If we don't compile a kernel with QUOTA, w...



details:   https://anonhg.NetBSD.org/src/rev/067071a0c60e
branches:  trunk
changeset: 999728:067071a0c60e
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Jun 17 12:27:40 2019 +0000

description:
If we don't compile a kernel with QUOTA, we don't support the compat quota
syscalls. XXX: need to fix the modules build.

diffstat:

 sys/compat/common/vfs_syscalls_50.c |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (50 lines):

diff -r 1d3930430941 -r 067071a0c60e sys/compat/common/vfs_syscalls_50.c
--- a/sys/compat/common/vfs_syscalls_50.c       Mon Jun 17 10:15:08 2019 +0000
+++ b/sys/compat/common/vfs_syscalls_50.c       Mon Jun 17 12:27:40 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vfs_syscalls_50.c,v 1.19 2019/01/27 02:08:39 pgoyette Exp $    */
+/*     $NetBSD: vfs_syscalls_50.c,v 1.20 2019/06/17 12:27:40 christos Exp $    */
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -36,10 +36,11 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_syscalls_50.c,v 1.19 2019/01/27 02:08:39 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_syscalls_50.c,v 1.20 2019/06/17 12:27:40 christos Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_compat_netbsd.h"
+#include "opt_quota.h"
 #endif
 
 #include <sys/param.h>
@@ -68,9 +69,11 @@
 
 #include <ufs/lfs/lfs_extern.h>
 
+#ifdef QUOTA
 #include <sys/quota.h>
 #include <sys/quotactl.h>
 #include <ufs/ufs/quota1.h>
+#endif
 
 #include <compat/common/compat_util.h>
 #include <compat/common/compat_mod.h>
@@ -341,6 +344,7 @@
            SCARG(uap, dev), retval, UIO_USERSPACE);
 }
 
+#ifdef QUOTA
 /* ARGSUSED */
 int   
 compat_50_sys_quotactl(struct lwp *l, const struct compat_50_sys_quotactl_args *uap, register_t *retval)
@@ -450,6 +454,7 @@
        vrele(vp);
        return error;
 }
+#endif
 
 int             
 vfs_syscalls_50_init(void)



Home | Main Index | Thread Index | Old Index