Allow passing in human-readable units for specifying amounts of space
authorEvan Broder <broder@mit.edu>
Wed, 25 Mar 2009 23:18:09 +0000 (18:18 -0500)
committerJeffrey Altman <jaltman@openafs.org>
Mon, 13 Jul 2009 21:42:34 +0000 (15:42 -0600)
commit54c0a3f3e6575fa5af39ddd797d5381c36b48001
tree7b04ecf02c4ae91a6cb7ee00373bf36b7d3af58a
parent2510a6ec675669739a625305bcc11ab2ad671122
Allow passing in human-readable units for specifying amounts of space

Add a util_GetHumanInt32 function for parsing numbers human-readable
units using single-character, uppercase suffixes for indicating orders
of magnitude (e.g. 'M', 'G').

Use this function to parse human readable values for all arguments
that previously accepted a value in kilobytes: fs setquota, fs
setcachesize, vos setfields, and vos create.

Reviewed-on: http://gerrit.openafs.org/66
Verified-by: Marc Dionne <marc.c.dionne@gmail.com>
Reviewed-by: Russ Allbery <rra@stanford.edu>
Verified-by: Jeffrey Altman <jaltman@openafs.org>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
src/WINNT/afsd/fs.c
src/config/stds.h
src/util/afsutil_prototypes.h
src/util/volparse.c
src/venus/fs.c
src/volser/vos.c