opnsense-src/usr.sbin/makefs/ffs
Mark Johnston 764ccf410c makefs: Ensure that FFS superblocks are reproducible
The superblock structure has space reserved for a pointer to an
in-memory structure that gets created at mount time.  makefs populates
it since that simplifies code elsewhere.  However, the pointer value
ends up in the output file, which breaks reproducibility.

Zero the field when writing the superblock instead, as its on-disk value
is ignored.

Reviewed by:	emaste
MFC after:	2 weeks
Sponsored by:	Klara, Inc.
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D50196
2025-05-08 15:49:53 +00:00
..
buf.c usr.sbin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
buf.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
ffs_alloc.c usr.sbin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
ffs_balloc.c usr.sbin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
ffs_bswap.c usr.sbin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
ffs_extern.h usr.sbin: Remove ancient SCCS tags. 2023-11-26 22:23:56 -07:00
ffs_subr.c usr.sbin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
Makefile.inc makefs: clean up some leftovers after $FreeBSD$ tag removal 2023-08-16 16:24:37 -04:00
mkfs.c makefs: Ensure that FFS superblocks are reproducible 2025-05-08 15:49:53 +00:00
newfs_extern.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
ufs_bmap.c usr.sbin: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:01 -07:00
ufs_bswap.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
ufs_inode.h Standardize the definition of a UFS dinode. 2025-01-27 17:39:45 -08:00