HomeFreeBSD

ufs/ffs: detect endian mismatch between machine and filesystem

Description

ufs/ffs: detect endian mismatch between machine and filesystem

Mount on a LE machine a filesystem formatted for BE is not supported
currently. This adds a check for the superblock magic number using
swapped bytes to guess and warn the user that it may be a valid
superblock but endian is incompatible.

MFC after: 2 weeks
Reviewed by: mckusick
Obtained from: mckusick, alfredo
Differential Revision: https://reviews.freebsd.org/D37675

Details

Provenance
alfredoAuthored on Dec 17 2022, 2:54 AM
Reviewer
mckusick
Differential Revision
D37675: ufs/ffs: detect endian mismatch between machine and filesystem
Parents
rGe7815784cc28: Add Rockchip RK3568 SoC
Branches
Unknown
Tags
Unknown