btrfs-progs: add options to tune units for fi df output
authorDavid Sterba <dsterba@suse.cz>
Sat, 30 Aug 2014 18:27:00 +0000 (15:27 -0300)
committerDavid Sterba <dsterba@suse.cz>
Fri, 10 Oct 2014 16:58:28 +0000 (18:58 +0200)
commit0b90a24e11484548801a30a6ad4bbafc0b3d682f
tree37583cda03a1fba56928a4d2a109c6709a41297c
parentf404c1ab6cc4cbfa67037cc530714f582127f326
btrfs-progs: add options to tune units for fi df output

The size unit format is a longstanding annoyance. This patch is based on
the work of Nils and Alexandre and enhances the options. It's possible
to select raw bytes, SI-based or IEC-based compact units (human
frientdly) or a fixed base from kilobytes to terabytes. The default is
compact human readable IEC-based, no change to current version.

CC: Nils Steinger <nst@voidptr.de>
CC: Alexandre Oliva <oliva@gnu.org>
Reviewed-by: Hugo Mills <hugo@carfax.org.uk>
Signed-off-by: David Sterba <dsterba@suse.cz>
Documentation/btrfs-filesystem.txt
cmds-filesystem.c
utils.c
utils.h