All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH]ext4: Enable mount ext4 with AGGRESSIVE_TEST
@ 2009-08-27  4:54 Akira Fujita
  2009-08-28 14:40 ` Theodore Tso
  0 siblings, 1 reply; 3+ messages in thread
From: Akira Fujita @ 2009-08-27  4:54 UTC (permalink / raw)
  To: tytso@mit.edu >> Theodore Tso, linux-ext4

When the AGGRESSIVE_TEST is enabled,
the maximum extent count of inode becomes '3' in ext4_ext_space_root(),
but __ext4_ext_check() which is called via ext4_fill_super()
checks eh_max is larger '4', therefore we always get -EIO and can not mount ext4.
The patch fix this issue.

Aug 26 15:43:50 bsd086 kernel: [   96.070277] EXT4-fs error (device sda8): ext4_ext_check_inode: bad header/extent in inode #8: too large eh_max - magic f30a, entries 1, max 4(3), depth 0(0)
Aug 26 15:43:50 bsd086 kernel: [   96.070526] EXT4-fs (sda8): no journal found


Signed-off-by: Akira Fujita <a-fujita@rs.jp.nec.com>
---
 extents.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
--- linux-2.6.31-rc4-A/fs/ext4/extents.c        2009-08-26 14:59:47.000000000 +0900
+++ linux-2.6.31-rc4-B/fs/ext4/extents.c        2009-08-26 15:45:31.000000000 +0900
@@ -263,8 +263,8 @@ static int ext4_ext_space_root(struct in
        size -= sizeof(struct ext4_extent_header);
        size /= sizeof(struct ext4_extent);
 #ifdef AGGRESSIVE_TEST
-       if (size > 3)
-               size = 3;
+       if (size > 4)
+               size = 4;
 #endif
        return size;
 }


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-09-01  1:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-27  4:54 [PATCH]ext4: Enable mount ext4 with AGGRESSIVE_TEST Akira Fujita
2009-08-28 14:40 ` Theodore Tso
2009-09-01  1:35   ` Akira Fujita

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.