Whamcloud - gitweb
fix extent_goto for non-0 leaf levels
authorEric Sandeen <sandeen@redhat.com>
Mon, 12 May 2008 23:13:49 +0000 (18:13 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 14 May 2008 17:28:49 +0000 (13:28 -0400)
commit9817a2ba2d408077dab12090b4b4250d0d9a282a
treee09588ae6f0bb0e703238881302af7a3cfc82e3b
parent22269b8b60da320b3c27ea8d053f9e2b0fbe2ae2
fix extent_goto for non-0 leaf levels

The logic for stopping at the right level in extent_goto was wrong,
so if you asked it to go to any level other than 0 (the leaf
level) it would fail.

Also add this argument to the tst_extents goto command to test it.

(I thought this was a failure in my split code but it was this
helper that was causing problems...)

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/extent.c