[<prev] [next>] [day] [month] [year] [list]
Message-ID: <CAGBYx2aKccYzUov41aHuPXF3p_wKvRSOb=wHpDdH=sZd+MuQHw@mail.gmail.com>
Date: Mon, 30 Dec 2013 16:02:01 +0800
From: Yongqiang Yang <xiaoqiangnk@...il.com>
To: Ext4 Developers List <linux-ext4@...r.kernel.org>,
"Theodore Ts'o" <tytso@....edu>
Subject: Fwd: [PATCH] mkfs: default ipg exceeds blocksize * 8 in 64K bigalloc
If bigalloc is used and the cluster size is set to 64KB, then
default inodes per group exceeds blocksize * 8, this patch simply
fixes it. I am not sure if the fix is reasonable.
Signed-off-by: Yongqiang Yang <xiaoqiangnk@...il.com>
---
lib/ext2fs/initialize.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lib/ext2fs/initialize.c b/lib/ext2fs/initialize.c
index 62a19b3..916c12c 100644
--- a/lib/ext2fs/initialize.c
+++ b/lib/ext2fs/initialize.c
@@ -308,6 +308,8 @@ retry:
ext2fs_blocks_count(param));
super->s_clusters_per_group = super->s_blocks_per_group;
goto retry;
+ } else if (bigalloc_flag) {
+ ipg = fs->blocksize * 8;
} else {
retval = EXT2_ET_TOO_MANY_INODES;
goto cleanup;
--
1.8.5.2
--
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