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)
Thu, Feb 6, 7:44 PM
Unknown Object (File)
Thu, Jan 23, 12:04 PM
Unknown Object (File)
Fri, Jan 17, 8:35 PM
Unknown Object (File)
Jan 8 2025, 4:45 PM
Unknown Object (File)
Jan 7 2025, 6:45 PM
Unknown Object (File)
Dec 31 2024, 11:22 AM
Unknown Object (File)
Dec 27 2024, 3:07 AM
Unknown Object (File)
Dec 26 2024, 12:54 PM
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 Not Applicable
Unit
Tests Not Applicable

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.