Convert QUOTA to new-style option.

This commit is contained in:
wollman 1996-01-05 18:31:58 +00:00
parent 1693c596cf
commit 26b6c4cd73
19 changed files with 46 additions and 42 deletions

View File

@ -5,6 +5,7 @@ KTRACE
NULLFS opt_staticfs.h
PORTAL opt_staticfs.h
PROCFS opt_staticfs.h
QUOTA
SYSVSHM opt_sysvipc.h
SYSVSEM opt_sysvipc.h
SYSVMSG opt_sysvipc.h

View File

@ -1,4 +1,4 @@
/* $Id: msdosfs_vfsops.c,v 1.9 1995/11/07 14:10:19 phk Exp $ */
/* $Id: msdosfs_vfsops.c,v 1.10 1995/11/16 11:48:08 bde Exp $ */
/* $NetBSD: msdosfs_vfsops.c,v 1.19 1994/08/21 18:44:10 ws Exp $ */
/*-
@ -469,15 +469,6 @@ mountmsdosfs(devvp, mp, p)
mp->mnt_stat.f_fsid.val[0] = (long)dev;
mp->mnt_stat.f_fsid.val[1] = MOUNT_MSDOS;
mp->mnt_flag |= MNT_LOCAL;
#ifdef QUOTA
/*
* If we ever do quotas for DOS filesystems this would be a place
* to fill in the info in the msdosfsmount structure. You dolt,
* quotas on dos filesystems make no sense because files have no
* owners on dos filesystems. of course there is some empty space
* in the directory entry where we could put uid's and gid's.
*/
#endif
devvp->v_specflags |= SI_MOUNTEDON;
return 0;
@ -529,8 +520,6 @@ msdosfs_unmount(mp, mntflags, p)
return EINVAL;
flags |= FORCECLOSE;
}
#ifdef QUOTA
#endif
error = vflush(mp, NULLVP, flags);
if (error)
return error;
@ -572,11 +561,7 @@ msdosfs_quotactl(mp, cmds, uid, arg, p)
caddr_t arg;
struct proc *p;
{
#ifdef QUOTA
return EOPNOTSUPP;
#else
return EOPNOTSUPP;
#endif
}
static int

View File

@ -42,6 +42,8 @@
#if !defined(__FreeBSD__)
#include "quota.h"
#include "diagnostic.h"
#else
#include "opt_quota.h"
#endif
#include <sys/param.h>

View File

@ -42,6 +42,8 @@
#if !defined(__FreeBSD__)
#include "quota.h"
#include "diagnostic.h"
#else
#include "opt_quota.h"
#endif
#include <sys/param.h>

View File

@ -41,6 +41,8 @@
#if !defined(__FreeBSD__)
#include "quota.h"
#else
#include "opt_quota.h"
#endif
#include <sys/param.h>

View File

@ -42,6 +42,8 @@
#if !defined(__FreeBSD__)
#include "quota.h"
#include "diagnostic.h"
#else
#include "opt_quota.h"
#endif
#include <sys/param.h>

View File

@ -42,6 +42,8 @@
#if !defined(__FreeBSD__)
#include "quota.h"
#include "diagnostic.h"
#else
#include "opt_quota.h"
#endif
#include <sys/param.h>

View File

@ -41,6 +41,8 @@
#if !defined(__FreeBSD__)
#include "quota.h"
#else
#include "opt_quota.h"
#endif
#include <sys/param.h>

View File

@ -1,4 +1,4 @@
/* $Id: msdosfs_vfsops.c,v 1.9 1995/11/07 14:10:19 phk Exp $ */
/* $Id: msdosfs_vfsops.c,v 1.10 1995/11/16 11:48:08 bde Exp $ */
/* $NetBSD: msdosfs_vfsops.c,v 1.19 1994/08/21 18:44:10 ws Exp $ */
/*-
@ -469,15 +469,6 @@ mountmsdosfs(devvp, mp, p)
mp->mnt_stat.f_fsid.val[0] = (long)dev;
mp->mnt_stat.f_fsid.val[1] = MOUNT_MSDOS;
mp->mnt_flag |= MNT_LOCAL;
#ifdef QUOTA
/*
* If we ever do quotas for DOS filesystems this would be a place
* to fill in the info in the msdosfsmount structure. You dolt,
* quotas on dos filesystems make no sense because files have no
* owners on dos filesystems. of course there is some empty space
* in the directory entry where we could put uid's and gid's.
*/
#endif
devvp->v_specflags |= SI_MOUNTEDON;
return 0;
@ -529,8 +520,6 @@ msdosfs_unmount(mp, mntflags, p)
return EINVAL;
flags |= FORCECLOSE;
}
#ifdef QUOTA
#endif
error = vflush(mp, NULLVP, flags);
if (error)
return error;
@ -572,11 +561,7 @@ msdosfs_quotactl(mp, cmds, uid, arg, p)
caddr_t arg;
struct proc *p;
{
#ifdef QUOTA
return EOPNOTSUPP;
#else
return EOPNOTSUPP;
#endif
}
static int

View File

@ -31,9 +31,11 @@
* SUCH DAMAGE.
*
* @(#)ffs_alloc.c 8.8 (Berkeley) 2/21/94
* $Id: ffs_alloc.c,v 1.21 1995/12/15 03:36:25 peter Exp $
* $Id: ffs_alloc.c,v 1.22 1995/12/17 21:09:29 phk Exp $
*/
#include "opt_quota.h"
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/buf.h>

View File

@ -31,9 +31,11 @@
* SUCH DAMAGE.
*
* @(#)ffs_inode.c 8.5 (Berkeley) 12/30/93
* $Id: ffs_inode.c,v 1.17 1995/12/07 12:47:50 davidg Exp $
* $Id: ffs_inode.c,v 1.18 1995/12/11 04:57:37 dyson Exp $
*/
#include "opt_quota.h"
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/mount.h>

View File

@ -31,9 +31,11 @@
* SUCH DAMAGE.
*
* @(#)ffs_vfsops.c 8.8 (Berkeley) 4/18/94
* $Id: ffs_vfsops.c,v 1.31 1995/12/11 04:57:39 dyson Exp $
* $Id: ffs_vfsops.c,v 1.32 1995/12/17 21:09:35 phk Exp $
*/
#include "opt_quota.h"
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/namei.h>

View File

@ -31,9 +31,11 @@
* SUCH DAMAGE.
*
* @(#)lfs_alloc.c 8.4 (Berkeley) 1/4/94
* $Id: lfs_alloc.c,v 1.8 1995/04/16 11:25:47 davidg Exp $
* $Id: lfs_alloc.c,v 1.9 1995/12/07 12:47:55 davidg Exp $
*/
#include "opt_quota.h"
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h>

View File

@ -31,9 +31,11 @@
* SUCH DAMAGE.
*
* @(#)lfs_inode.c 8.5 (Berkeley) 12/30/93
* $Id: lfs_inode.c,v 1.10 1995/09/04 00:21:00 dyson Exp $
* $Id: lfs_inode.c,v 1.11 1995/12/07 12:47:55 davidg Exp $
*/
#include "opt_quota.h"
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/mount.h>

View File

@ -31,9 +31,11 @@
* SUCH DAMAGE.
*
* @(#)lfs_vfsops.c 8.7 (Berkeley) 4/16/94
* $Id: lfs_vfsops.c,v 1.12 1995/08/28 09:19:12 julian Exp $
* $Id: lfs_vfsops.c,v 1.13 1995/12/17 21:09:53 phk Exp $
*/
#include "opt_quota.h"
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/namei.h>

View File

@ -36,9 +36,11 @@
* SUCH DAMAGE.
*
* @(#)ufs_inode.c 8.4 (Berkeley) 1/21/94
* $Id: ufs_inode.c,v 1.6 1995/01/04 23:48:04 gibbs Exp $
* $Id: ufs_inode.c,v 1.7 1995/11/05 23:35:57 dyson Exp $
*/
#include "opt_quota.h"
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/proc.h>

View File

@ -34,8 +34,11 @@
* SUCH DAMAGE.
*
* @(#)ufs_quota.c 8.2 (Berkeley) 12/30/93
* $Id: ufs_quota.c,v 1.5 1995/05/30 08:15:36 rgrimes Exp $
* $Id: ufs_quota.c,v 1.6 1995/12/22 15:58:56 phk Exp $
*/
#include "opt_quota.h" /* not really necessary... */
#include <sys/param.h>
#include <sys/kernel.h>
#include <sys/systm.h>

View File

@ -36,9 +36,11 @@
* SUCH DAMAGE.
*
* @(#)ufs_vfsops.c 8.4 (Berkeley) 4/16/94
* $Id: ufs_vfsops.c,v 1.3 1994/10/08 06:57:28 phk Exp $
* $Id: ufs_vfsops.c,v 1.4 1995/03/10 22:06:39 davidg Exp $
*/
#include "opt_quota.h"
#include <sys/param.h>
#include <sys/mbuf.h>
#include <sys/mount.h>

View File

@ -36,9 +36,11 @@
* SUCH DAMAGE.
*
* @(#)ufs_vnops.c 8.10 (Berkeley) 4/1/94
* $Id: ufs_vnops.c,v 1.34 1995/11/19 19:46:23 dyson Exp $
* $Id: ufs_vnops.c,v 1.35 1995/12/11 04:57:49 dyson Exp $
*/
#include "opt_quota.h"
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/namei.h>