diff options
author | Richard Jones <rjones@redhat.com> | 2009-11-04 21:51:35 +0000 |
---|---|---|
committer | Richard Jones <rjones@redhat.com> | 2009-11-04 21:51:35 +0000 |
commit | 857954dfbdd287d2e00d40c8c60f6cbe5b5730e2 (patch) | |
tree | 171ecfe47324cf8b80813bcb23c9951ce0da86b4 /fish | |
parent | 3266e51054fdc1f584bd7a8611c7706e6d0b7cef (diff) | |
download | libguestfs-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')
-rw-r--r-- | fish/alloc.c | 2 | ||||
-rw-r--r-- | fish/fish.c | 4 |
2 files changed, 6 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); diff --git a/fish/fish.c b/fish/fish.c index 1039bada..3ab09b5c 100644 --- a/fish/fish.c +++ b/fish/fish.c @@ -958,6 +958,8 @@ display_builtin_command (const char *cmd) " <nn>M or <nn>MB number of megabytes\n" " <nn>G or <nn>GB number of gigabytes\n" " <nn>T or <nn>TB number of terabytes\n" + " <nn>P or <nn>PB number of petabytes\n" + " <nn>E or <nn>EB number of exabytes\n" " <nn>sects number of 512 byte sectors\n")); else if (strcasecmp (cmd, "echo") == 0) printf (_("echo - display a line of text\n" @@ -1049,6 +1051,8 @@ display_builtin_command (const char *cmd) " <nn>M or <nn>MB number of megabytes\n" " <nn>G or <nn>GB number of gigabytes\n" " <nn>T or <nn>TB number of terabytes\n" + " <nn>P or <nn>PB number of petabytes\n" + " <nn>E or <nn>EB number of exabytes\n" " <nn>sects number of 512 byte sectors\n")); else if (strcasecmp (cmd, "time") == 0) printf (_("time - measure time taken to run command\n" |