Subject: config option QUOTA is dysfunctional
To: None <netbsd-bugs@NetBSD.ORG>
From: Jim Howard <jiho@mail.c-zone.net>
List: netbsd-bugs
Date: 10/09/1996 10:56:00
|---------------------------------------------------------------------------|
| This is #2 of 3 PRs rejected yesterday by gnats, presumably because they  |
| came from BETA.  I doubt anything has changed since BETA, so if this has, |
| please speak up!  ;)                                                      |
|---------------------------------------------------------------------------|


>Submitter-Id:	net
>Originator:	Jim Howard <jiho@mail.c-zone.net>
>Organization:  
>Confidential:	no
>Synopsis:	config option QUOTA is dysfunctional
>Severity:	non-critical
>Priority:	low
>Category:	kern
>Class:		sw-bug
>Release:	NetBSD/i386 1.2_BETA
>Environment:   


>Description:
The kernel is built with ffs quota support, even when the config option
QUOTA is not supplied.  This adds useless bulk to the kernel for users who
have no use for quotas.


>How-To-Repeat:
Build a kernel without the QUOTA option, and observe the presence of the
file arch/<platform>/compile/<name>/ufs_quota.o.  Now apply the patch
provided below, build a kernel with the QUOTA option, and look again.



>Fix:
The problem results from the appropriate config option specifier for the
file ufs/ufs/ufs_quota.c having gotten lost in a shuffle in the file
conf/files.  The fix is to specify the appropriate config option in
conf/files.  The following patch does this.


*** files	Thu Oct  3 17:01:57 1996
--- /usr/src/sys/conf/files	Thu Oct  3 16:13:29 1996
***************
*** 340,346 ****
  file ufs/ufs/ufs_ihash.c		ffs | lfs | mfs
  file ufs/ufs/ufs_inode.c		ffs | lfs | mfs
  file ufs/ufs/ufs_lookup.c		ffs | lfs | mfs
! file ufs/ufs/ufs_quota.c		ffs | lfs | mfs
  file ufs/ufs/ufs_vfsops.c		ffs | lfs | mfs
  file ufs/ufs/ufs_vnops.c		ffs | lfs | mfs
  file vm/device_pager.c			devpager
--- 340,346 ----
  file ufs/ufs/ufs_ihash.c		ffs | lfs | mfs
  file ufs/ufs/ufs_inode.c		ffs | lfs | mfs
  file ufs/ufs/ufs_lookup.c		ffs | lfs | mfs
! file ufs/ufs/ufs_quota.c		quota
  file ufs/ufs/ufs_vfsops.c		ffs | lfs | mfs
  file ufs/ufs/ufs_vnops.c		ffs | lfs | mfs
  file vm/device_pager.c			devpager