From owner-freebsd-hackers Thu Apr 11 21:48:33 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from albatross.prod.itd.earthlink.net (albatross.mail.pas.earthlink.net [207.217.120.120]) by hub.freebsd.org (Postfix) with ESMTP id 0FE6037B419; Thu, 11 Apr 2002 21:48:25 -0700 (PDT) Received: from pool0115.cvx40-bradley.dialup.earthlink.net ([216.244.42.115] helo=mindspring.com) by albatross.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 16vsyt-000749-00; Thu, 11 Apr 2002 21:48:15 -0700 Message-ID: <3CB666EE.2D4CBDEA@mindspring.com> Date: Thu, 11 Apr 2002 21:47:42 -0700 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: John Baldwin Cc: Dan Nelson , freebsd-hackers@FreeBSD.ORG, "Michael R. Wayne" Subject: Re: quotactl issues References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG John Baldwin wrote: > > Note the warnx() call. It writes directly to the quota file so you can > > set quotas even if your current kernel is not capable of enforcing > > them. Is your kernel compiled with "options QUOTA"? I can tell you on > > all my 4.* systems (4.0 through 4.5) edquota calls quotactl and it > > succeeds: > > > > 90883 edquota CALL quotactl(0x8057828,0x40000,0x3e8,0x8057808) > > 90883 edquota NAMI "/usr" > > 90883 edquota RET quotactl 0 > > He didn't get EOPNOTSUPP, he got EINVAL. Perhaps it is a bug in edquota > to edit the quota file directly for an errno other than EOPNOTSUPP? "edquota" tries to do for quotas what vipw does for password entries. The file you edit is not the real "quota file", but a temp copy. For all practical purposes, you don't modify a quota until you have issued a successful "quotactl" call to set the new quota (or delete it). What's happening is expected: it's just like pwd_mkdb failing after editing the password file with vipw. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message