summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.cz>2014-11-04 18:22:51 +0100
committerDavid Sterba <dsterba@suse.cz>2014-11-04 18:22:51 +0100
commit0287f03a8cd1309093d80dfe2da2e1d7acadd9ec (patch)
tree4ef7ab3791344824b4f496718a3f31a0af202ef5
parentcafacda441120976105d01c07286e843cb7cbb94 (diff)
btrfs-progs: use the correct SI prefixes
The SI standard defines lowercase 'k' and uppercase for the rest. Signed-off-by: David Sterba <dsterba@suse.cz>
-rw-r--r--Documentation/btrfs-filesystem.txt6
-rw-r--r--cmds-filesystem.c8
-rw-r--r--utils.c2
3 files changed, 8 insertions, 8 deletions
diff --git a/Documentation/btrfs-filesystem.txt b/Documentation/btrfs-filesystem.txt
index 6e63d2c9..a8f2972a 100644
--- a/Documentation/btrfs-filesystem.txt
+++ b/Documentation/btrfs-filesystem.txt
@@ -35,11 +35,11 @@ select the 1000 base for the following options, according to the SI standard
-k|--kbytes::::
show sizes in KiB, or kB with --si
-m|--mbytes::::
-show sizes in MiB, or mB with --si
+show sizes in MiB, or MB with --si
-g|--gbytes::::
-show sizes in GiB, or gB with --si
+show sizes in GiB, or GB with --si
-t|--tbytes::::
-show sizes in TiB, or tB with --si
+show sizes in TiB, or TB with --si
If conflicting options are passed, the last one takes precedence.
diff --git a/cmds-filesystem.c b/cmds-filesystem.c
index af56fbeb..e4b27859 100644
--- a/cmds-filesystem.c
+++ b/cmds-filesystem.c
@@ -128,11 +128,11 @@ static const char * const cmd_df_usage[] = {
"-h human friendly numbers, base 1024 (default)",
"-H human friendly numbers, base 1000",
"--iec use 1024 as a base (KiB, MiB, GiB, TiB)",
- "--si use 1000 as a base (kB, mB, gB, tB)",
+ "--si use 1000 as a base (kB, MB, GB, TB)",
"-k|--kbytes show sizes in KiB, or kB with --si",
- "-m|--mbytes show sizes in MiB, or mB with --si",
- "-g|--gbytes show sizes in GiB, or gB with --si",
- "-t|--tbytes show sizes in TiB, or tB with --si",
+ "-m|--mbytes show sizes in MiB, or MB with --si",
+ "-g|--gbytes show sizes in GiB, or GB with --si",
+ "-t|--tbytes show sizes in TiB, or TB with --si",
NULL
};
diff --git a/utils.c b/utils.c
index f51bc564..4b3bace4 100644
--- a/utils.c
+++ b/utils.c
@@ -1328,7 +1328,7 @@ out:
static const char* unit_suffix_binary[] =
{ "B", "KiB", "MiB", "GiB", "TiB", "PiB", "EiB"};
static const char* unit_suffix_decimal[] =
- { "B", "kB", "mB", "gB", "tB", "pB", "eB"};
+ { "B", "kB", "MB", "GB", "TB", "PB", "EB"};
int pretty_size_snprintf(u64 size, char *str, size_t str_size, unsigned unit_mode)
{