Allow better inspection of sizes using an environment variable.
Not pretty, but convenient to determine the exact size of a filesystem,
eg when resizing an underlying partition or LUN.
Pierre Carrier (2):
utils.c: fix sizes in B malloc in pretty_sizes
utils.c: offer to limit divisions
Before, sizes below 1KB where displayed in KB,
but without a unit.
Signed-off-by: Pierre Carrier pie...@spotify.com
diff --git a/utils.c b/utils.c
index aade9e2..dde0513 100644
--- a/utils.c
+++ b/utils.c
@@ -1108,13 +1108,20 @@ char *pretty_sizes(u64 size)
size /= 1024
62.16GB used 62.16GB path /dev/sda5
devid1 size 62.16GB used 62.16GB path /dev/sda5
Pierre Carrier (2):
utils.c: fix sizes in B malloc in pretty_sizes
utils.c: offer to limit divisions in pretty_sizes
utils.c | 17 ++---
1 file changed, 14 insertions(+), 3 deletions
Before, sizes below 1KB are still displayed in KB,
but without a unit.
Signed-off-by: Pierre Carrier pie...@spotify.com
diff --git a/utils.c b/utils.c
index aade9e2..937e763 100644
--- a/utils.c
+++ b/utils.c
@@ -1108,13 +1108,20 @@ char *pretty_sizes(u64 size)
size /= 1024
62.16GB path /dev/sda5
Label: 'home' uuid: 10453c4c-1c5b-4df5-b4a5-43a7f377430a
Total devices 1 FS bytes used 44884524.00KB
devid1 size 65182236.00KB used 65182208.00KB path /dev/sda5
Signed-off-by: Pierre Carrier pie...@spotify.com
diff --git a/utils.c b/utils.c
index