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
F151300892: D47955.id.diff
Tue, Apr 7, 10:34 AM
Unknown Object (File)
Mon, Apr 6, 6:42 AM
Unknown Object (File)
Sun, Apr 5, 8:22 AM
Unknown Object (File)
Sat, Apr 4, 2:07 PM
Unknown Object (File)
Thu, Apr 2, 6:29 AM
Unknown Object (File)
Sat, Mar 28, 11:37 AM
Unknown Object (File)
Thu, Mar 26, 10:09 PM
Unknown Object (File)
Thu, Mar 26, 12:20 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 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.