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
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:
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
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:
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