summaryrefslogtreecommitdiffstats
path: root/fish/alloc.c
diff options
context:
space:
mode:
authorRichard Jones <rjones@redhat.com>2009-11-04 21:51:35 +0000
committerRichard Jones <rjones@redhat.com>2009-11-04 21:51:35 +0000
commit857954dfbdd287d2e00d40c8c60f6cbe5b5730e2 (patch)
tree171ecfe47324cf8b80813bcb23c9951ce0da86b4 /fish/alloc.c
parent3266e51054fdc1f584bd7a8611c7706e6d0b7cef (diff)
downloadlibguestfs-857954dfbdd287d2e00d40c8c60f6cbe5b5730e2.tar.gz
libguestfs-857954dfbdd287d2e00d40c8c60f6cbe5b5730e2.tar.xz
libguestfs-857954dfbdd287d2e00d40c8c60f6cbe5b5730e2.zip
fish: Allow <nn>P and <nn>E for petabyte and exabyte allocations.
Diffstat (limited to 'fish/alloc.c')
-rw-r--r--fish/alloc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fish/alloc.c b/fish/alloc.c
index 3b0de27e..fd5be2cf 100644
--- a/fish/alloc.c
+++ b/fish/alloc.c
@@ -144,6 +144,8 @@ parse_size (const char *str, off_t *size_rtn)
case 'm': case 'M': size *= 1024L * 1024; break;
case 'g': case 'G': size *= 1024L * 1024 * 1024; break;
case 't': case 'T': size *= 1024L * 1024 * 1024 * 1024; break;
+ case 'p': case 'P': size *= 1024L * 1024 * 1024 * 1024 * 1024; break;
+ case 'e': case 'E': size *= 1024L * 1024 * 1024 * 1024 * 1024 * 1024; break;
case 's': size *= 512; break;
default:
fprintf (stderr, _("could not parse size specification '%s'\n"), str);