New libutil function: parse_capacity(3).

Dan Nelson dnelson at allantgroup.com
Thu Sep 16 18:11:19 PDT 2004


In the last episode (Sep 17), Giorgos Keramidas said:
> On 2004-09-16 20:42, Pawel Jakub Dawidek <pjd at freebsd.org> wrote:
> > http://people.freebsd.org/~pjd/patches/parse_capacity.patch
> > Any comments before committing?
> 
> Is it intentional that it works even for "negative" capacities?
> 
> : $ ./foo
> :        -10 fffffffffffffff6 |        -10 fffffffffffffff6
> :     -10240 ffffffffffffd800 |       -10k ffffffffffffd800

I'd call that a feature.  Imagine a "resizefs" command, where you would
enter a positive number to grow, and a negative one to shrink.

-- 
	Dan Nelson
	dnelson at allantgroup.com


More information about the freebsd-arch mailing list