Dariusz Stojaczyk ec6a1afbdb util: add a helper function for parsing capacities (1K, 128M, 2G)
Also used it in parsing `-m` SPDK app param,
meaning that it can now accept numbers
followed by a binary prefix - like 512M or 2G.

Change-Id: If458dc08429237f2cb3f3f661bcaf382468df0f0
Signed-off-by: Dariusz Stojaczyk <dariuszx.stojaczyk@intel.com>
Reviewed-on: https://review.gerrithub.io/391670
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
2017-12-13 21:19:53 -05:00
..
2017-12-13 13:06:16 -05:00
2017-12-11 14:59:12 -05:00
2017-07-12 18:12:52 -04:00
2017-12-12 15:01:17 -05:00
2017-09-26 14:28:24 -04:00
2017-08-11 19:36:30 -04:00
2017-10-31 18:28:21 -04:00