Skip to contentSkip to conversation

mke2fs: fix numeric progress meter for huge filesystem

PATCH New Akinobu Mita 1 participant 1 message Feb 8, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mke2fs: fix numeric progress meter for huge filesystem

When creating a huge filesystem like 16TB, numeric progress meter for discarding device blocks doesn't work correctly. Because it does not correctly calculate the number of backspaces to flush the previous number.

Fix argument type of int_log10() so that it can handle more than UINT_MAX.

---
 lib/ext2fs/progress.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/ext2fs/progress.c +1 -1
index 83556b1..0c93591 100644
@@ -25,7 +25,7 @@ struct ext2fs_progress_ops ext2fs_numeric_progress_ops = {
 	.close		= ext2fs_numeric_progress_close,
 };
 
-static int int_log10(unsigned int arg)
+static int int_log10(unsigned long long arg)
 {
 	int	l;
 
Signature · 1 line
1.9.1