HomeFreeBSD

tarfs: Fix the size of struct tarfs_fid and add a static assert

Description

tarfs: Fix the size of struct tarfs_fid 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 packs the structure and checks via a __Static_assert().

Reviewed by: markj
MFC after: 2 weeks

(cherry picked from commit 4db1b113b15158c7d134df83e7a7201cf46d459b)

Details

Provenance
rmacklemAuthored on Dec 6 2024, 2:09 AM
olceCommitted on Fri, Jan 17, 1:50 PM
Parents
rGf97d802a3d89: tarfs(5): Grammar fix for a source code comment
Branches
Unknown
Tags
Unknown