From owner-freebsd-hackers Thu Apr 11 13:49:11 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from harrier.prod.itd.earthlink.net (harrier.mail.pas.earthlink.net [207.217.120.12]) by hub.freebsd.org (Postfix) with ESMTP id 9250E37B404 for ; Thu, 11 Apr 2002 13:49:08 -0700 (PDT) Received: from pool0116.cvx40-bradley.dialup.earthlink.net ([216.244.42.116] helo=mindspring.com) by harrier.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 16vlVC-00073L-00; Thu, 11 Apr 2002 13:49:06 -0700 Message-ID: <3CB5F6A8.BBD071D@mindspring.com> Date: Thu, 11 Apr 2002 13:48:40 -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: "Michael R. Wayne" Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: quotactl issues References: <200204101733.NAA65972@manor.msen.com> <20020411132409.J56996@staff.msen.com> 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 "Michael R. Wayne" wrote: > No replies on this. Nobody has any ideas? Nobody has seen it until now. > On Wed, Apr 10, 2002 at 01:33:21PM -0400, Michael R. Wayne wrote: > > Ported some code that uses quotactl to 4.3 p19 and it fails with EINVAL > > when trying to: > > quotactl("var/mail", QCMD(Q_GETQUOTA, USRQUOTA), VALID_UID, &blk) > > Looked at the source for edquota on 4.5 RELEASE (what I had handy), > > and ran a copy of it through gdb, it fails with the same error, > > then it goes in and reads/writes the quota files directly! > > > > So, is quotactl just not supported or do the filesystems need to > > be converted or what? 1) Path should be absolute 2) Path *must* refer to a mount point; you look like you are treating quotas as if they are more granular than they are. Quotas are on a per FS basis *only*. 3) Setting a manifest "VALID_UID" doesn't make it valid, just because you name it that. 8-). 4) "[EINVAL] Cmd or the command type is invalid." 5) Are you sure that quotas are enables on this FS already? 6) Are you sure blk is a struct dqblk? 7) Quota UID and GID ranges are more limited than FreeBSD otherwise limits UID/GID ranges. Make sure that "VALID_UID" isn't larger than 65535 or smaller than 0. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message