If we're shrinking a sparse_super2 filesystem to a single block group, the superblock will be in block 0. This is perfectly valid (for block group 0 with a blocksize > 1024) so don't exit. Signed-off-by: Darrick J. Wong <darrick.wong@xxxxxxxxxx> --- resize/resize2fs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resize/resize2fs.c b/resize/resize2fs.c index 8c5db86..4861719 100644 --- a/resize/resize2fs.c +++ b/resize/resize2fs.c @@ -2126,7 +2126,7 @@ static errcode_t reserve_sparse_super2_last_group(ext2_resize_t rfs, if (retval) return retval; - if (!sb) { + if (last_bg && !sb) { fputs(_("Should never happen! No sb in last super_sparse bg?\n"), stderr); exit(1); -- To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html