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)
Sat, Jul 18, 6:23 AM
Unknown Object (File)
Jun 11 2026, 1:29 AM
Unknown Object (File)
Jun 10 2026, 12:41 PM
Unknown Object (File)
Jun 4 2026, 11:16 PM
Unknown Object (File)
May 14 2026, 11:29 PM
Unknown Object (File)
May 14 2026, 4:19 PM
Unknown Object (File)
May 12 2026, 4:06 AM
Unknown Object (File)
May 11 2026, 4:28 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