#
cf0ede72 |
| 06-Dec-2024 |
Olivier Certner <olce@FreeBSD.org> |
tarfs: 'struct tarfs_fid': Switch 'gen' to 'u_int', avoid packing
As the 'gen' field in 'struct tarfs_node' (and then 'struct tarfs_fid') is filled with arc4random() which returns an unsigned int, c
tarfs: 'struct tarfs_fid': Switch 'gen' to 'u_int', avoid packing
As the 'gen' field in 'struct tarfs_node' (and then 'struct tarfs_fid') is filled with arc4random() which returns an unsigned int, change its type in both structures. This allows reordering fields in 'struct tarfs_fid' to reduce its size, finally avoiding the use of '__packed' to ensure it fits into 'struct fid'.
While here, remove the 'data0' field which wasn't necessary from the start.
Reviewed by: markj, rmacklem, des Approved by: markj (mentor) MFC after: 5 days Differential Revision: https://reviews.freebsd.org/D47954
show more ...
|
#
4db1b113 |
| 06-Dec-2024 |
Rick Macklem <rmacklem@FreeBSD.org> |
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 tha
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
show more ...
|
Revision tags: release/14.2.0, release/13.4.0, release/14.1.0, release/13.3.0, release/14.0.0, release/13.2.0 |
|
#
ba8cc6d7 |
| 12-Mar-2023 |
Mateusz Guzik <mjg@FreeBSD.org> |
vfs: use __enum_uint8 for vtype and vstate
This whacks hackery around only reading v_type once.
Bump __FreeBSD_version to 1400093
|
#
57aa6302 |
| 03-Feb-2023 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
tarfs: Remove unused code.
Sponsored by: Juniper Networks, Inc. Sponsored by: Klara, Inc.
|
#
69d94f4c |
| 02-Feb-2023 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
Add tarfs, a filesystem backed by tarballs.
Sponsored by: Juniper Networks, Inc. Sponsored by: Klara, Inc. Reviewed by: pauamma, imp Differential Revision: https://reviews.freebsd.org/D37753
|