Whamcloud - gitweb
resize2fs: fix inode table move for the backwards move case
authorTheodore Ts'o <tytso@mit.edu>
Mon, 28 Apr 2014 14:07:16 +0000 (10:07 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 5 May 2014 03:15:49 +0000 (23:15 -0400)
commitcd84e9a337987658b8508fac2e4de4bd52e4b48d
treedde6f7832eb63a8532c0968096900b32287214a7
parentd51072af0a9c458e12391be0639a129ede1d2931
resize2fs: fix inode table move for the backwards move case

In the case where the new location of the inode table is before the
old inode table, the optimization which tries to optimize zero block
moves breaks.  Fix it.

This fixes a bug that was tickled by the reproduction described in the
previous commit.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
resize/resize2fs.c