We are already fine with checking for different endianess. Now we
also succeed if systems's page size does not match.
Note that page_size is only really used if INCLUDE_FS_TESTS is
defined, see followups.
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
if (super.flags & ~CRAMFS_SUPPORTED_FLAGS)
errx(FSCK_EX_ERROR, _("unsupported filesystem features"));
- if (super.size < page_size)
+ /* What are valid superblock sizes? */
+ if (super.size < sizeof(struct cramfs_super))
errx(FSCK_EX_UNCORRECTED, _("superblock size (%d) too small"),
super.size);