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)
Nov 19 2024, 1:09 AM
Unknown Object (File)
Nov 18 2024, 11:25 PM
Unknown Object (File)
Nov 18 2024, 12:45 AM
Unknown Object (File)
Nov 17 2024, 9:33 PM
Unknown Object (File)
Nov 17 2024, 8:04 AM
Unknown Object (File)
Nov 10 2024, 4:01 PM
Unknown Object (File)
Nov 5 2024, 9:32 PM
Unknown Object (File)
Oct 19 2024, 8:42 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