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, Nov 10, 1:51 AM
Unknown Object (File)
Fri, Oct 31, 5:27 AM
Unknown Object (File)
Tue, Oct 28, 2:46 PM
Unknown Object (File)
Tue, Oct 14, 12:20 AM
Unknown Object (File)
Oct 12 2025, 9:55 AM
Unknown Object (File)
Oct 10 2025, 6:15 AM
Unknown Object (File)
Oct 9 2025, 9:15 PM
Unknown Object (File)
Oct 5 2025, 6:38 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