[PATCH v4] commit.rc: Add helper for math operation using bc

Alex Elder aelder at sgi.com
Mon Sep 26 16:32:17 CDT 2011


On Mon, 2011-09-26 at 20:45 +0200, Lukas Czerner wrote:
> Sometimes using bash $(()) math might not be enough due to some
> limitation (big numbers), so add helper using 'bc' program. For
> now the results are only in perfect numbers (as in bash) since this is
> all I need for now.
> 
> This commit also adds _require_math() helper which should be called by
> every test which uses _math() since it requires "bc" to be installed on
> the system.
> 
> Signed-off-by: Lukas Czerner <lczerner at redhat.com>

Looks fine.  Thanks for updating it.

Reviewed-by: Alex Elder <aelder at sgi.com>





More information about the xfs mailing list