Thread (9 messages) 9 messages, 2 authors, 2016-11-18

Re: [PATCH 3/4] ext4: use more strict checks for inodes_per_block on mount

From: Eric Biggers <hidden>
Date: 2016-11-18 20:30:49
Also in: stable

On Fri, Nov 18, 2016 at 01:38:41PM -0500, Theodore Ts'o wrote:
Centralize the checks for inodes_per_block and be more strict to make
sure the inodes_per_block_group can't end up being zero.
Nit: this should say 's_inodes_per_group', not 'inodes_per_block_group'.
+	    sbi->s_inodes_per_group > blocksize * 8) {
+		ext4_msg(sb, KERN_ERR, "invalid inodes per group: %lu\n",
+			 sbi->s_blocks_per_group);
+		goto failed_mount;
+	}
Should print out s_inodes_per_group, not s_blocks_per_group.

Eric
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help