* [PATCH] mke2fs: fix numeric progress meter for huge filesystem
@ 2015-02-08 12:25 Akinobu Mita
0 siblings, 0 replies; only message in thread
From: Akinobu Mita @ 2015-02-08 12:25 UTC (permalink / raw)
To: linux-ext4; +Cc: Akinobu Mita
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 <akinobu.mita@gmail.com>
---
lib/ext2fs/progress.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/ext2fs/progress.c b/lib/ext2fs/progress.c
index 83556b1..0c93591 100644
--- a/lib/ext2fs/progress.c
+++ b/lib/ext2fs/progress.c
@@ -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;
--
1.9.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2015-02-08 12:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-08 12:25 [PATCH] mke2fs: fix numeric progress meter for huge filesystem Akinobu Mita
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).