Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys Add vfs_quotactl.c. This is where filesystem-independent...
details: https://anonhg.NetBSD.org/src/rev/37cedb759cf8
branches: trunk
changeset: 773161:37cedb759cf8
user: dholland <dholland%NetBSD.org@localhost>
date: Sun Jan 29 06:26:54 2012 +0000
description:
Add vfs_quotactl.c. This is where filesystem-independent quota
handling will go.
diffstat:
sys/conf/files | 3 +-
sys/kern/vfs_quotactl.c | 40 +++++++++++++++++++++++++++++++
sys/rump/librump/rumpvfs/Makefile.rumpvfs | 4 +-
3 files changed, 44 insertions(+), 3 deletions(-)
diffs (79 lines):
diff -r a4af37644762 -r 37cedb759cf8 sys/conf/files
--- a/sys/conf/files Sun Jan 29 06:23:20 2012 +0000
+++ b/sys/conf/files Sun Jan 29 06:26:54 2012 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: files,v 1.1040 2012/01/28 08:37:22 nisimura Exp $
+# $NetBSD: files,v 1.1041 2012/01/29 06:26:54 dholland Exp $
# @(#)files.newconf 7.5 (Berkeley) 5/10/93
version 20100430
@@ -1622,6 +1622,7 @@
file kern/vfs_lockf.c
file kern/vfs_lookup.c
file kern/vfs_mount.c
+file kern/vfs_quotactl.c
file kern/vfs_subr.c
file kern/vfs_syscalls.c
file kern/vfs_trans.c
diff -r a4af37644762 -r 37cedb759cf8 sys/kern/vfs_quotactl.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/kern/vfs_quotactl.c Sun Jan 29 06:26:54 2012 +0000
@@ -0,0 +1,40 @@
+/* $NetBSD: vfs_quotactl.c,v 1.1 2012/01/29 06:26:55 dholland Exp $ */
+
+/*
+ * Copyright (c) 1982, 1986, 1990, 1993, 1995
+ * The Regents of the University of California. All rights reserved.
+ *
+ * This code is derived from software contributed to Berkeley by
+ * Robert Elz at The University of Melbourne.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * 3. Neither the name of the University nor the names of its contributors
+ * may be used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ *
+ * @(#)ufs_quota.c 8.5 (Berkeley) 5/20/95
+ * From ufs_quota.c,v 1.70 2011/03/24 17:05:46 bouyer Exp
+ */
+
+#include <sys/cdefs.h>
+__KERNEL_RCSID(0, "$NetBSD: vfs_quotactl.c,v 1.1 2012/01/29 06:26:55 dholland Exp $");
+
diff -r a4af37644762 -r 37cedb759cf8 sys/rump/librump/rumpvfs/Makefile.rumpvfs
--- a/sys/rump/librump/rumpvfs/Makefile.rumpvfs Sun Jan 29 06:23:20 2012 +0000
+++ b/sys/rump/librump/rumpvfs/Makefile.rumpvfs Sun Jan 29 06:26:54 2012 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.rumpvfs,v 1.31 2011/04/02 04:28:58 rmind Exp $
+# $NetBSD: Makefile.rumpvfs,v 1.32 2012/01/29 06:26:55 dholland Exp $
#
.include "${RUMPTOP}/Makefile.rump"
@@ -52,7 +52,7 @@
SRCS+= mfs_miniroot.c
#quota2 plists
-SRCS+= quota1_subr.c
+SRCS+= quota1_subr.c vfs_quotactl.c
# dev
# firmload is technically part of rumpdev, but it's pure vfs in nature.
Home |
Main Index |
Thread Index |
Old Index