Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Feb 1999 12:30:14 +0000
From:      Mark Ovens <marko@uk.radan.com>
To:        Chris <chrismar@readington.com>
Cc:        neubyneu@twcny.rr.com, freebsd-questions@freebsd.org
Subject:   Re: Disk Quota question...
Message-ID:  <19990220123014.B185@localhost>
In-Reply-To: <Pine.BSF.4.10.9902200251200.29558-100000@walnut.readington.com>; from Chris on Sat, Feb 20, 1999 at 02:55:28AM -0500
References:  <199902200708.CAA11434@cc942873-a.ewndsr1.nj.home.com> <Pine.BSF.4.10.9902200251200.29558-100000@walnut.readington.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Feb 20, 1999 at 02:55:28AM -0500, 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?

No. By default df(1) reports the number of 512-byte blocks, but if
the environment variable BLOCKSIZE is set to 1024 it reports in
KB's. This just makes it easier to translate to MB which is what
you are probably interested in for diskspace.


> 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"
> 
> Chris
> 
> On Sat, 20 Feb 1999, Crist J. Clark wrote:
> 
> > D'oh!!!
> > 
> > A block is 512 bytes NOT 512 kB!!!
> > 
> > One block = 0.5 kB
> > 
> > 1 MB = 1000 kB = 2000 blocks
> > 
> > All my numbers were off by a factor of 1000. I'm just so used to doing
> > that conversion lke a reflex...
> > 
> > Crist J. Clark wrote,
> > > [I'll skip the lecture about using mailers that put your text all on a
> > > single line this time.]
> > > 
> > > MPN wrote,
> > > > I've just set up disk quotas.  Everything is installed correctly. My only question is what is a block?  How many bytes or megabytes is that?  I need to set a limit of say...5 MB, how many blocks would that be?  Also, what is an INODE?  All help is greatly appreciated.  Thanks in advance.  Reply to neubyneu@twcny.rr.com
> > > 
> > > Block = 512 kB = 0.5 MB, 'man df' is one place blocks are
> > > mentioned. There are probably better references.
> > > 
> > > Your limit, 5 MB = 10 Block
> > > 
> > > An inode is an integer associated with a file on the filesystem. 
> > > Inodes are unique on a file system. A filename associates a string
> > > with an inode. There are a fixed number of inodes on a given
> > > filesystem. 'man inode'
> > > -- 
> > > Crist J. Clark                           cjclark@home.com
> > 
> > -- 
> > Crist J. Clark                           cjclark@home.com
> > 
> > 
> > To Unsubscribe: send mail to majordomo@FreeBSD.org
> > with "unsubscribe freebsd-questions" in the body of the message
> > 
> 
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
> 

-- 
      FreeBSD - The Power To Serve http://www.freebsd.org
      My Webpage http://www.users.globalnet.co.uk/~markov
_______________________________________________________________
Mark Ovens, CNC Apps Engineer, Radan Computational Ltd. Bath UK
CAD/CAM solutions for Sheetmetal Working Industry
mailto:marko@uk.radan.com                  http://www.radan.com



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990220123014.B185>