[LWN Logo]

From:	"Stephen C. Tweedie" <sct@redhat.com>
Date:	Fri, 28 Jan 2000 17:48:36 +0000 (GMT)
To:	Matt Nelson <mnelson@dynatec.com>
Subject: Re: Big Quotas?

Hi,

On Wed, 26 Jan 2000 09:57:43 -0800 (PST), Matt Nelson
<mnelson@dynatec.com> said:

> My question: how do I get my system to recognize quotas larger than
> 4G?

> Handy, since I'm soon going to be building a system with ~200G of storage
> for only a half-dozen users.  The document then later points to a site to
> obtain quota-1.55-10. 

Hmm, you mean quota has been broken _again_? 

> Well, I'm using quota-1.66-8, and still cant get it to work right.

OK, fixed in the patch below, and I've queued it on bugzilla.  Only
edquota was broken: quotacheck, repquota and quota all seem happy with
the larger quota limits.

Is anyone maintaining the core quota code at the moment?  The last time
I sent in these fixes was a good while ago.

--Stephen

----------------------------------------------------------------
--- quota-1.66/utils/edquota.c.~1~	Fri Jan 28 17:23:37 2000
+++ quota-1.66/utils/edquota.c	Fri Jan 28 17:30:08 2000
@@ -459,10 +459,6 @@
          return (0);
       }
 	   
-      dqblk.dqb_curblocks  = btodb(dqblk.dqb_curblocks * 1024);
-      dqblk.dqb_bsoftlimit = btodb(dqblk.dqb_bsoftlimit * 1024);
-      dqblk.dqb_bhardlimit = btodb(dqblk.dqb_bhardlimit * 1024);
-
       for (qup = quplist; qup; qup = qup->next) {
          if (strcmp(fsp, qup->fsname))
             continue;
@@ -519,10 +515,6 @@
          fprintf(stderr, "%s:%s: bad format\n", fsp, cp);
          return (0);
       }
-
-      dqblk.dqb_curblocks = btodb(dqblk.dqb_curblocks * 1024);
-      dqblk.dqb_bsoftlimit = btodb(dqblk.dqb_bsoftlimit * 1024);
-      dqblk.dqb_bhardlimit = btodb(dqblk.dqb_bhardlimit * 1024);
 
       if ((cp = strtok(line2, "\n")) == NULL) {
          fprintf(stderr, "%s: %s: bad format\n", fsp, line2);

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/