mke2fs: fix numeric progress meter for huge filesystem
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.
Signed-off-by Akinobu Mita <[email protected]>
--- lib/ext2fs/progress.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
lib/ext2fs/progress.c +1 -1
@@ -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