From owner-freebsd-questions Sat Feb 20 12: 4:43 1999 Delivered-To: freebsd-questions@freebsd.org Received: from cc942873-a.ewndsr1.nj.home.com (cc942873-a.ewndsr1.nj.home.com [24.2.89.207]) by hub.freebsd.org (Postfix) with ESMTP id 8278D11985 for ; Sat, 20 Feb 1999 11:58:05 -0800 (PST) (envelope-from cjc@cc942873-a.ewndsr1.nj.home.com) Received: (from cjc@localhost) by cc942873-a.ewndsr1.nj.home.com (8.8.8/8.8.8) id OAA14936; Sat, 20 Feb 1999 14:59:02 -0500 (EST) (envelope-from cjc) From: "Crist J. Clark" Message-Id: <199902201959.OAA14936@cc942873-a.ewndsr1.nj.home.com> Subject: Re: Disk Quota question... In-Reply-To: from Chris at "Feb 20, 99 02:55:28 am" To: chrismar@readington.com (Chris) Date: Sat, 20 Feb 1999 14:59:02 -0500 (EST) Cc: cjclark@home.com, neubyneu@twcny.rr.com, freebsd-questions@FreeBSD.ORG Reply-To: cjclark@home.com X-Mailer: ELM [version 2.4ME+ PL40 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Chris wrote, > Forgive me if I'm wrong, but when you do a 'df' it says > Filesystem 1K-blocks, so wouldn't that mean that a block > for quota would be 1k? You get '1K-blocks' if you have your 'BLOCKSIZE' varaible set to 'k.' Here is my output, [103:~] unsetenv BLOCKSIZE [104:~] df Filesystem 512-blocks Used Avail Capacity Mounted on /dev/wd0s2a 196958 34886 146316 19% / /dev/wd0s2f 8946500 3545268 4685512 43% /usr /dev/wd0s2e 2383390 1838546 354174 84% /var procfs 8 8 0 100% /proc /dev/wd0s1 3992288 2100296 1891992 53% /mnt/c [105:~] setenv BLOCKSIZE k [106:~] df Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/wd0s2a 98479 17443 73158 19% / /dev/wd0s2f 4473250 1772634 2342756 43% /usr /dev/wd0s2e 1191695 919273 177087 84% /var procfs 4 4 0 100% /proc /dev/wd0s1 1996144 1050148 945996 53% /mnt/c > When I set up my quotas I would > give everyone 5000 blocks, which I thought roughly > translated in 5 MB. I haven't had any complaints yet > about how "I'm supposed to get 5 MB, but I'm only > able to use 2.5" This should be easy enough to test. Assuming a user has all or the vast majority of his files in his home directory, [107:~] du -s ~user Will give the usage in 512-blocks (or 1k-blocks if you have BLOCKSIZE set to 'k'). Then compare that to, [108:~] quota -vu user Which also prints usage and quotas. I wonder if 'quota' is affected by 'BLOCKSIZE.' I'd try this out, but I do not have quotas set up on my personal machine here. -- Crist J. Clark cjclark@home.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message