[X-Unix] re: quotas - My math stinks!

Charles Howse chowse at charter.net
Fri Jan 9 03:38:02 PST 2009


This has been interesting and informative.
I've known the difference between a bit and a byte since the early 90's.
The last time I quoted du, I DID give it the -k parameter, thus  
2341624 kilobytes.
Man repquota says:
For each user or group, the current number of files and amount of space
      (in kilobytes) is printed, along with any quotas created with  
edquota(8).
Repquota now reports: 1040524, which is the same number given by quota.

Do we not have apples and apples at this point?

If we're talking kilobits vs kilobytes, the conversion factor would be  
8, which doesn't make the 2 different numbers equal.

If we want to make all this moot, then I could just trust quota, since  
the user is under quota at this time, but I'm fascinated by the  
difference between du and quota.  :)

I will ask ONE MORE TIME...
SHOW ME the math, don't quote the man pages or the standards.
Do it like I did in my post of 1/8 18:23.
SHOW ME how the amounts reported by du and quota are the same.  :)

On Jan 8, 2009, at 9:35 PM, Eric F Crist wrote:

> According to DU(1):
>     BLOCKSIZE  If the environment variable BLOCKSIZE is set, and the  
> -k option is not specified, the block counts will be displayed in  
> units of that size block.  If BLOCKSIZE is not set, and the -k  
> option is not specified, the block counts will be displayed in 512- 
> byte blocks.
>
> This woudl explain why you're number is so far off between repquota  
> and du.



More information about the X-Unix mailing list