[patch 0/4] Size reporting of btrfs tool

2010-10-17 Thread hugo-lkml
While playing around with resizing volumes recently, I realised that I didn't know whether btrfs fi show and btrfs fi df reported sizes in ISO (e.g. powers of 10^3) units, as they appear to from the labels they use, or in binary (powers of 2^10) units. Also, a mere three significant figures is

[patch 2/4] Add an option to show ISO, binary or raw bytes counts using df.

2010-10-17 Thread hugo-lkml
Change btrfs filesystem df to allow the user to control the scales used for sizes in the output. Signed-off-by: Hugo Mills h...@carfax.org.uk --- btrfs.c |5 +++-- btrfs_cmds.c | 37 - 2 files changed, 35 insertions(+), 7 deletions(-) Index:

[patch 4/4] Add an option to show ISO, binary or raw bytes counts using btrfs-show.

2010-10-17 Thread hugo-lkml
Change btrfs-show to allow the user to control the scales used for sizes in the output. Signed-off-by: Hugo Mills h...@carfax.org.uk --- btrfs-show.c | 24 +--- 1 file changed, 17 insertions(+), 7 deletions(-) Index: btrfs-progs-unstable/btrfs-show.c

[patch 3/4] Add an option to show ISO, binary or raw bytes counts using show.

2010-10-17 Thread hugo-lkml
Change btrfs filesystem show to allow the user to control the scales used for sizes in the output. Signed-off-by: Hugo Mills h...@carfax.org.uk --- btrfs.c |5 +++-- btrfs_cmds.c | 42 +++--- 2 files changed, 38 insertions(+), 9 deletions(-) Index:

[patch 1/4] Update pretty-printer for different multiple systems.

2010-10-17 Thread hugo-lkml
Make the pretty-printer for data sizes capable of printing in ISO (powers of 10^3), binary (powers of 2^10) or raw (a simple byte count). We default to binary sizes, maintaining the original behaviour, but print (e.g.) MiB to indicate that it's a power of 2^10. Signed-off-by: Hugo Mills