lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1423398330-16342-1-git-send-email-akinobu.mita@gmail.com>
Date:	Sun,  8 Feb 2015 21:25:30 +0900
From:	Akinobu Mita <akinobu.mita@...il.com>
To:	linux-ext4@...r.kernel.org
Cc:	Akinobu Mita <akinobu.mita@...il.com>
Subject: [PATCH] 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 <akinobu.mita@...il.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

--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists