btrfs-progs: Use common unit parser for btrfs filesystem command
authorZhao Lei <zhaolei@cn.fujitsu.com>
Tue, 1 Sep 2015 07:12:06 +0000 (15:12 +0800)
committerDavid Sterba <dsterba@suse.com>
Tue, 1 Sep 2015 12:02:48 +0000 (14:02 +0200)
commit665dc49ef6eee19cc5d31270d13531e9b248424a
tree23a6ecfa49e51b06d9468411302a6196afb997f1
parent71d856ba3c325151472ae2460a302d65e37bd012
btrfs-progs: Use common unit parser for btrfs filesystem command

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@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
cmds-fi-usage.c
cmds-filesystem.c