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
F132128179: D37720.id114214.diff
Tue, Oct 14, 12:20 AM
Unknown Object (File)
Sun, Oct 12, 9:55 AM
Unknown Object (File)
Fri, Oct 10, 6:15 AM
Unknown Object (File)
Thu, Oct 9, 9:15 PM
Unknown Object (File)
Sun, Oct 5, 6:38 PM
Unknown Object (File)
Sat, Oct 4, 12:19 AM
Unknown Object (File)
Fri, Oct 3, 11:22 AM
Unknown Object (File)
Thu, Oct 2, 1:36 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