From: Eric Sandeen <sandeen@redhat.com>
To: "Theodore Ts'o" <tytso@mit.edu>
Cc: ext4 development <linux-ext4@vger.kernel.org>
Subject: Re: [PATCH] e2fsck: Fix incorrect interior node logical start values
Date: Thu, 29 Nov 2012 09:22:31 -0600 [thread overview]
Message-ID: <50B77DB7.70307@redhat.com> (raw)
In-Reply-To: <20121129133129.GC20413@thunk.org>
On 11/29/12 7:31 AM, Theodore Ts'o wrote:
> Hmm, it looks like you didn't run the regression test script before
> submitting this patch?
No :( I ran it against several filesystems mangled by xfstests,
IIRC, but TBH I forgot to run the e2fsprogs suite. My mistake,
I've gotten out of that habit. Mea culpa.
> It looks like it's not a bug which your patch introduced, but rather,
> it uncovered a bug. This was a failure in the second run of
> f_extent_bad_node, because in the fix we didn't make sure we updated
> the starting block of parent node when we cleared a node in the extent
> tree. (see below)
>
> This brings up another question. Did you test file systems after
> running punch on a number of different files to make sure the e2fsck
> is happy withe file systems which current kernels might generate?
I'm pretty sure I did test it against punched files, but I can
do further testing if you have a particular concern ....
> In this particular test case, even though the logical start didn't
> match, it doesn't cause any problems because it's at the left-most
> branch of the tree. I want to make sure we aren't triggering failures
> for file systems where the kernel is creating which is technically
> incorrect, but which isn't causing problems in practice...
But it's a weird inconsistency isn't it, and fixing it up in fsck should
be the right thing to do anyway?
-Eric
> - Ted
>
> % ./test_script f_extent_bad_node
> f_extent_bad_node: bad interior node in extent tree: failed
> --- ../../tests/f_extent_bad_node/expect.2 2012-07-06 13:37:27.316253023 +0000
> +++ f_extent_bad_node.2.log 2012-11-29 13:24:11.119306973 +0000
> @@ -1,7 +1,23 @@
> Pass 1: Checking inodes, blocks, and sizes
> +Interior extent node level 0 of inode 12:
> +Logical start 0 does not match logical start 3 at next level. Fix? yes
> +
> +Inode 12, i_blocks is 8, should be 6. Fix? yes
> +
> Pass 2: Checking directory structure
> Pass 3: Checking directory connectivity
> Pass 4: Checking reference counts
> Pass 5: Checking group summary information
> -test_filesys: 12/16 files (0.0% non-contiguous), 25/100 blocks
> -Exit status is 0
> +Block bitmap differences: -24
> +Fix? yes
> +
> +Free blocks count wrong for group #0 (75, counted=76).
> +Fix? yes
> +
> +Free blocks count wrong (75, counted=76).
> +Fix? yes
> +
> +
> +test_filesys: ***** FILE SYSTEM WAS MODIFIED *****
> +test_filesys: 12/16 files (0.0% non-contiguous), 24/100 blocks
> +Exit status is 1
> 125 tests succeeded 1 tests failed
> Tests failed: f_extent_bad_node
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
next prev parent reply other threads:[~2012-11-29 15:22 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-15 19:47 [PATCH] e2fsck: Fix incorrect interior node logical start values Eric Sandeen
2012-11-16 2:54 ` Andreas Dilger
2012-11-16 3:10 ` Eric Sandeen
[not found] ` <20121129044609.GC8029@thunk.org>
2012-11-29 4:52 ` Theodore Ts'o
2012-11-29 5:49 ` Eric Sandeen
2012-11-29 13:22 ` Theodore Ts'o
2012-11-29 13:31 ` Theodore Ts'o
2012-11-29 15:22 ` Eric Sandeen [this message]
2012-11-29 16:40 ` Theodore Ts'o
2012-11-29 16:43 ` Eric Sandeen
2012-11-29 18:56 ` Eric Sandeen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=50B77DB7.70307@redhat.com \
--to=sandeen@redhat.com \
--cc=linux-ext4@vger.kernel.org \
--cc=tytso@mit.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.