Page MenuHomeFreeBSD

ext2fs: 'struct ufid': Re-order fields and unpack
ClosedPublic

Authored by olce on Dec 6 2024, 10:19 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Aug 26, 10:34 PM
Unknown Object (File)
Jul 25 2026, 6:10 AM
Unknown Object (File)
Jul 24 2026, 4:44 PM
Unknown Object (File)
Jul 23 2026, 2:27 AM
Unknown Object (File)
Jul 18 2026, 9:34 AM
Unknown Object (File)
Jul 11 2026, 5:59 PM
Unknown Object (File)
Jul 9 2026, 6:15 AM
Unknown Object (File)
Jul 3 2026, 3:50 AM
Subscribers

Details

Summary

Re-ordering the fields suppresses the trailing padding which was causing
the structure to overflow 'struct fid'.

While here, re-indent in a more visually pleasing way.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 60996
Build 57880: arc lint + arc unit

Event Timeline

olce requested review of this revision.Dec 6 2024, 10:19 PM
This revision is now accepted and ready to land.Dec 6 2024, 11:33 PM

Yes ext2fs conveniently has a 32-bit field that can be relocated so we can avoid __packed.