btrfs-progs: make btrfs qgroups show human readable sizes
authorFan Chengniang <fancn.fnst@cn.fujitsu.com>
Mon, 19 Jan 2015 07:18:18 +0000 (15:18 +0800)
committerDavid Sterba <dsterba@suse.cz>
Wed, 21 Jan 2015 17:13:18 +0000 (18:13 +0100)
commit4d13434539052dcdcc738b68535d5e9bdb116dda
tree2007d2a6a3163e1f53684a1b7bfbc25855bf88ca
parent07ce7005fc81289eb4c7dde7d601be08c977b92c
btrfs-progs: make btrfs qgroups show human readable sizes

add --raw, --si, --iec, --kbytes, --mbytes, --gbytes, --tbytes options
make columns which show sizes align to right. Others aligned to left.

example:
qgroupid         rfer         excl     max_rfer     max_excl parent  child
--------         ----         ----     --------     -------- ------  -----
0/5         299.58MiB    299.58MiB    300.00MiB    300.00MiB 1/1     ---
0/265       299.58MiB     16.00KiB    400.00MiB        0.00B 1/1     ---
0/266       299.58MiB     16.00KiB    350.00MiB        0.00B ---     ---
1/1         599.16MiB    299.59MiB    800.00MiB        0.00B ---     0/5,0/265

Signed-off-by: Fan Chengniang <fancn.fnst@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
Documentation/btrfs-qgroup.txt
cmds-qgroup.c
qgroup.c
qgroup.h