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, Mar 11, 2:19 PM
Unknown Object (File)
Fri, Mar 6, 7:30 AM
Unknown Object (File)
Tue, Mar 3, 6:56 PM
Unknown Object (File)
Sat, Feb 28, 9:49 PM
Unknown Object (File)
Feb 8 2026, 8:08 AM
Unknown Object (File)
Jan 31 2026, 10:07 AM
Unknown Object (File)
Jan 7 2026, 1:39 AM
Unknown Object (File)
Dec 30 2025, 11:36 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.