[OpenAFS-devel] Brief proposal on numbers

Dale Ghent daleg@umbc.edu
Fri, 2 Nov 2007 16:35:49 -0400


On Nov 2, 2007, at 1:43 PM, Jim Rees wrote:

> John Hascall wrote:
>
>  I don't suppose it can be changed, but the whole idea
>  of measuring and doling out volume-quota using 1KB units
>  seems pretty silly these days.
>
> After more thought, I now think we should be consistent with "df."   
> We could
> add a "-h" flag to "fs set/getquota" for those who don't want to count
> zeros, and just use powers of ten (bytes).  Then df can convert to  
> blocks
> internally.
>
> % fs sq . 6T -h

Not to nit pick, but the code should detect suffixes of k|K, m|M, g|G,  
and t|T to preclude the need of a -h flag when setting the quota. -h  
should only be needed when viewing quota via fs lq, and should also be  
extended to 'vos examine'

/dale

--
Dale Ghent
Specialist, Storage and UNIX Systems
UMBC - Office of Information Technology
ECS 201 - x51705