On Tue, Sep 01, 2015 at 03:12:06PM +0800, Zhao Lei wrote:
> Move to use get_unit_mode_from_arg() for cmds-filesystem.c,
> to make "btrfs filesystem df/show/usage"'s unit argument same.
>
> Also have cleanup effect: 19 insertions(+), 181 deletions(-)
>
> Signed-off-by: Zhao Lei <zhaolei@xxxxxxxxxxxxxx>
Applied, thanks.
> ---
> cmds-fi-usage.c | 63 ++++------------------------
> cmds-filesystem.c | 121 ++++++------------------------------------------------
> 2 files changed, 20 insertions(+), 164 deletions(-)
>
> diff --git a/cmds-fi-usage.c b/cmds-fi-usage.c
> index adf1c27..ea967d1 100644
> --- a/cmds-fi-usage.c
> +++ b/cmds-fi-usage.c
> @@ -859,76 +859,29 @@ out:
> const char * const cmd_filesystem_usage_usage[] = {
> "btrfs filesystem usage [options] <path> [<path>..]",
> "Show detailed information about internal filesystem usage .",
> - "-b|--raw raw numbers in bytes",
> - "-h|--human-readable",
> - " 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)",
> - "-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",
> + HELPINFO_OUTPUT_UNIT,
HELPINFO_OUTPUT_UNIT_DF
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html