resize2fs: fix crash when there is an ea block and no blocks to migrate
This fixes a bug introduced in 1.43 by commit fb47b94fffc: "resize2fs:
rewrite extent/dir/ea block checksums when migrating". If there is an
extended attribute block and there are no blocks that need to migrate,
we will crash.
The bug was caused by a botched De Morgan's transformation.
Note that e2fsprogs 1.43.3-1 is in Debian unstable, and the only reason why it's blocked from entering testing for the last three weeks is because of the glibc 2.24 transition.
Known problem, fixed in e2fsprogs 1.42.2 or 1.42.3 in commit:
commit 3d6fc974831a360 aee460e54c44253 8445f3017c
Author: Theodore Ts'o <email address hidden>
Date: Wed Aug 10 15:49:35 2016 -0400
resize2fs: fix crash when there is an ea block and no blocks to migrate
This fixes a bug introduced in 1.43 by commit fb47b94fffc: "resize2fs:
rewrite extent/dir/ea block checksums when migrating". If there is an
extended attribute block and there are no blocks that need to migrate,
we will crash.
The bug was caused by a botched De Morgan's transformation.
Signed-off-by: Theodore Ts'o <email address hidden>
Note that e2fsprogs 1.43.3-1 is in Debian unstable, and the only reason why it's blocked from entering testing for the last three weeks is because of the glibc 2.24 transition.