[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20121221031956.GB5014@thunk.org>
Date: Thu, 20 Dec 2012 22:19:56 -0500
From: Theodore Ts'o <tytso@....edu>
To: Ext4 Developers List <linux-ext4@...r.kernel.org>
Cc: forrestl@...ology.com
Subject: Re: [PATCH 3/3] e2fsck: make sure the extent tree is consistent
after bogus node in the tree
And here is the test case....
BTW, #protip: You can use the split_node command in tst_extents
debugging program not only to perform node splits (which will make the
tree wider), but if you try splitting at the root node, it will
allocate a new extent tree block, and then move all of the extent tree
nodes at the top-level, in the inode, into the new exterior extent
tree block. In effect, this will make the tree deeper.
This should allow you to make fairly arbitrarily deep and complex
extent trees by hand, without having to resort to using fallocate and
punch hole commands, which tend to take a lot longer than using the
"insert_extent", "replace_extent", and "split_node" commands in
tst_extent when creating test cases.
This also makes it easier to create small test file system images so
we don't have to bloat the e2fsprogs source tree with huge test file
systems in our regression test suite (which also tend to very much
slow down running said regression test suite).
Regards,
- Ted
View attachment "0001-tests-add-test-of-an-incorrect-interior-node-in-an-e.patch" of type "text/x-diff" (3290 bytes)
Powered by blists - more mailing lists