HomeFreeBSD

ext2fs: Fix the size of struct ufid and add a static assert

Description

ext2fs: Fix the size of struct ufid and add a static assert

File system specific *fid structures are copied into the generic
struct fid defined in sys/mount.h.
As such, they cannot be larger than struct fid.

This patch packed the structure and checks via a __Static_assert().

Reviewed by: markj
MFC after: 2 weeks

(cherry picked from commit bfc8e3308bee23d0f7836d57f32ed8d47da02627)

Details

Provenance
rmacklemAuthored on Dec 6 2024, 2:05 AM
olceCommitted on Fri, Jan 17, 1:59 PM
Parents
rG1bf531bcd791: audit: Fix short-circuiting in syscallenter()
Branches
Unknown
Tags
Unknown