From: Akinobu Mita <akinobu.mita@gmail.com>
To: linux-ext4@vger.kernel.org
Cc: Akinobu Mita <akinobu.mita@gmail.com>
Subject: [PATCH] mke2fs: fix numeric progress meter for huge filesystem
Date: Sun, 8 Feb 2015 21:25:30 +0900 [thread overview]
Message-ID: <1423398330-16342-1-git-send-email-akinobu.mita@gmail.com> (raw)
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
reply other threads:[~2015-02-08 12:25 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1423398330-16342-1-git-send-email-akinobu.mita@gmail.com \
--to=akinobu.mita@gmail.com \
--cc=linux-ext4@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).