*BSD News Article 11184


Return to BSD News archive

Received: by minnie.vk1xwt.ampr.org with NNTP
	id AA1358 ; Tue, 23 Feb 93 14:36:39 EST
Newsgroups: comp.unix.bsd
Path: sserve!manuel.anu.edu.au!munnari.oz.au!spool.mu.edu!clark!serval!news.u.washington.edu!usenet.coe.montana.edu!saimiri.primate.wisc.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!howland.reston.ans.net!bogus.sura.net!darwin.sura.net!sgiblab!a2i!kent
From: kent@rahul.net (Kent Talarico)
Subject: [386BSD] quotacheck patch
Message-ID: <C2HBx5.Aut@rahul.net>
Sender: news@rahul.net (Usenet News)
Nntp-Posting-Host: bolero
Organization: a2i network
Date: Mon, 15 Feb 1993 07:39:04 GMT
Lines: 56

Quotacheck has two uninitialized variables. With this patch
I've gotten quotas working.

The quota support programs don't come with 386BSD; you'll
have to get them from net-2, compile the kernel with option QUOTA,
edit /etc/fstab, and un-comment the 4 lines in /etc/rc that turn on quotas.

These are the programs needed from net-2 (ftp.uu.net:/packages/bsd-sources):
/sbin/quotacheck
/usr/sbin/edquota
/usr/sbin/quotaon
/usr/sbin/repquota
/usr/bin/quota

Kent Talarico
kent@rahul.net


*** /usr/src/sbin/quotacheck/quotacheck.c.orig	Fri Feb 12 19:14:57 1993
--- /usr/src/sbin/quotacheck/quotacheck.c	Sun Feb 14 22:42:01 1993
***************
*** 72,76 ****
  } un;
  #define	sblock	un.sblk
! long dev_bsize = 1;
  long maxino;
  
--- 72,76 ----
  } un;
  #define	sblock	un.sblk
! long dev_bsize;
  long maxino;
  
***************
*** 111,115 ****
  	register struct passwd *pw;
  	register struct group *gr;
! 	int i, argnum, maxrun, errs = 0;
  	long auxdata, done = 0;
  	char ch, *name, *blockcheck();
--- 111,115 ----
  	register struct passwd *pw;
  	register struct group *gr;
! 	int i, argnum, maxrun = 0, errs = 0;
  	long auxdata, done = 0;
  	char ch, *name, *blockcheck();
***************
*** 245,248 ****
--- 245,249 ----
  	}
  	sync();
+ 	dev_bsize = 1;
  	bread(SBOFF, (char *)&sblock, (long)SBSIZE);
  	dev_bsize = sblock.fs_fsize / fsbtodb(&sblock, 1);
-- 
Kent Talarico <kent@rahul.net>