HomeFreeBSD

fs: Add static asserts for the size of fid structures

Description

fs: Add static asserts for the size of fid structures

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 adds _Static_assert()s to check for this.

ZFS and fuse already have _Static_assert()s.

(cherry picked from commit 91b5592a1e1af97480d615cf508be05b5674d2f3)

Details

Provenance
rmacklemAuthored on Fri, Dec 6, 1:56 AM
Parents
rG705337455f06: amd iommu: remove unused function
Branches
Unknown
Tags
Unknown