opnsense-src/sys/fs/tarfs
Rick Macklem e4ac2362cc 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().

Approved by:	so
Security:	FreeBSD-SA-25:02.fs
Reviewed by:	markj
MFC after:	2 weeks

(cherry picked from commit 4db1b113b15158c7d134df83e7a7201cf46d459b)
(cherry picked from commit 155987e201)
2025-01-30 07:25:25 +01:00
..
tarfs.h tarfs: Fix the size of struct tarfs_fid and add a static assert 2025-01-30 07:25:25 +01:00
tarfs_dbg.h tarfs: Use a separate debug bit for bounce buffer usage. 2023-02-16 00:40:45 +00:00
tarfs_io.c tarfs: Don't use IO_DIRECT when reading from tarball. 2023-06-20 10:02:10 +00:00
tarfs_subr.c vfs: use __enum_uint8 for vtype and vstate 2023-07-05 15:06:30 +00:00
tarfs_vfsops.c tarfs: Inherit mnt_iosize_max from the lower vnode 2024-04-15 10:05:13 -04:00
tarfs_vnops.c tarfs: Fix the size of struct tarfs_fid and add a static assert 2025-01-30 07:25:25 +01:00