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)
Sun, Oct 12, 8:28 AM
Unknown Object (File)
Fri, Oct 10, 3:55 PM
Unknown Object (File)
Wed, Oct 8, 4:34 PM
Unknown Object (File)
Mon, Oct 6, 5:04 AM
Unknown Object (File)
Tue, Sep 23, 10:41 PM
Unknown Object (File)
Fri, Sep 19, 6:22 PM
Unknown Object (File)
Sep 14 2025, 1:53 PM
Unknown Object (File)
Sep 13 2025, 12:27 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.