diff options
author | Kevin Wolf <kwolf@redhat.com> | 2013-06-05 14:19:27 +0200 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2013-06-06 11:27:03 +0200 |
commit | 5e00984aef7c1c317e27c0e8acf66526513c770f (patch) | |
tree | a2cbce230724bf4d8dc8270c66fb90ef476fa64e /util | |
parent | a23818f4ff3d7981f49453b739f589e4205930b5 (diff) |
cutils: Support 'P' and 'E' suffixes in strtosz()
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'util')
-rw-r--r-- | util/cutils.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/util/cutils.c b/util/cutils.c index a1658197cf..8f28896843 100644 --- a/util/cutils.c +++ b/util/cutils.c @@ -267,6 +267,10 @@ static int64_t suffix_mul(char suffix, int64_t unit) return unit * unit * unit; case STRTOSZ_DEFSUFFIX_TB: return unit * unit * unit * unit; + case STRTOSZ_DEFSUFFIX_PB: + return unit * unit * unit * unit * unit; + case STRTOSZ_DEFSUFFIX_EB: + return unit * unit * unit * unit * unit * unit; } return -1; } |