Thank you both for the rapid turn-around with this patch. I can confirm it solves the original problem with the in-place ext3 to ext4 conversion I'm doing. As regards the f_detect_junk test, it seems a change in "debugfs" is emitting an extra message "Checksum errors in superblock! Retrying..." which is not present in the "expect" output. It appears this was introduced in commit https://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git/commit/?id=bf615bb0ccadeb1579463f94a2a4752e7ec53f57 Perhaps debugfs could print that message to stderr so it's not picked up? I'm testing with the git master branch, but my git skills are weak so I could well be doing something wrong! Kind Regards, Marc