Commits
Kir Kolyshkin authored 9023b1fbebc
tools parse_size(): print error Add option name parameter to parse_size(), and make it print an error about invalid argument or tool large value. Modify all callers accordingly. Before: # ploop grow -s 8T DiskDescriptor.xml Usage: ploop grow -s NEW_SIZE -d DEVICE ... After: # ploop grow -s 8T DiskDescriptor.xml ERROR: Invalid argument to option -s: 8T Usage: ploop grow -s NEW_SIZE -d DEVICE ... # ploop grow -s 4096000G DiskDescriptor.xml ERROR: Too large value for option -s: 4096000G ... Signed-off-by: Kir Kolyshkin <kir@openvz.org>