Page MenuHomeFreeBSD

ufs/ffs: detect endian mismatch between machine and filesystem
AbandonedPublic

Authored by alfredo on Dec 17 2022, 3:00 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Dec 1, 5:19 PM
Unknown Object (File)
Nov 13 2025, 11:52 PM
Unknown Object (File)
Nov 13 2025, 2:46 AM
Unknown Object (File)
Nov 13 2025, 2:46 AM
Unknown Object (File)
Nov 12 2025, 10:31 PM
Unknown Object (File)
Nov 10 2025, 1:51 AM
Unknown Object (File)
Oct 31 2025, 5:27 AM
Unknown Object (File)
Oct 28 2025, 2:46 PM
Subscribers

Details

Reviewers
None
Summary

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

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 48737
Build 45623: arc lint + arc unit