[PATCH] mke2fs: fix numeric progress meter for huge filesystem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
---
 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@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Reiser Filesystem Development]     [Ceph FS]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite National Park]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Media]

  Powered by Linux