freebsd-dev/usr.sbin/makefs
Chuck Silvers d464a7698d ffs: restore backward compatibility of newfs and makefs with older binaries
The previous change to CGSIZE had the unintended side-effect of allowing
newfs and makefs to create file systems that would fail validation when
examined by older commands and kernels, by allowing newfs/makefs to pack
slightly more blocks into a CG than those older binaries think is valid.
Fix this by having newfs/makefs artificially restrict the number of blocks
in a CG to the slightly smaller value that those older binaries will accept.
The validation code will continue to accept the slightly larger value
that the current newfs/makefs (before this change) could create.

Fixes:		0a6e34e950
Reviewed by:	mckusick
MFC after:	3 days
Sponsored by:	Netflix
2023-05-29 19:26:28 -07:00
..
cd9660 spdx: The BSD-2-Clause-NetBSD identifier is obsolete, drop -NetBSD 2023-05-12 10:44:04 -06:00
ffs ffs: restore backward compatibility of newfs and makefs with older binaries 2023-05-29 19:26:28 -07:00
msdos makefs: call brelse from bread 2023-04-16 15:45:17 -04:00
sys Fix makefs bootstrap after d485c77f20 2021-02-22 17:55:45 +00:00
tests spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
zfs makefs/zfs: Avoid generating a GUID of zero 2023-05-26 15:38:08 -04:00
cd9660.c spdx: The BSD-2-Clause-NetBSD identifier is obsolete, drop -NetBSD 2023-05-12 10:44:04 -06:00
cd9660.h spdx: The BSD-2-Clause-NetBSD identifier is obsolete, drop -NetBSD 2023-05-12 10:44:04 -06:00
ffs.c makefs: call brelse from bread 2023-04-16 15:45:17 -04:00
ffs.h Allocate extra inodes in makefs when leaving free space in UFS images. 2021-04-06 13:43:29 -04:00
Makefile makefs: Add ZFS support 2022-08-05 13:42:29 -04:00
Makefile.depend Update Makefile.depend files 2019-12-11 17:37:53 +00:00
Makefile.depend.host Build host tools on non-FreeBSD host with DIRDEPS_BUILD 2023-04-22 13:13:22 -07:00
Makefile.depend.options Build host tools on non-FreeBSD host with DIRDEPS_BUILD 2023-04-22 13:13:22 -07:00
makefs.8 makefs: Add ZFS support 2022-08-05 13:42:29 -04:00
makefs.c makefs: remove vestigial '?' cases from top-level getopt(3) loop 2023-03-30 09:20:00 -04:00
makefs.h makefs: whitespace cleanup (remove space before tab) 2022-09-20 10:26:24 -04:00
msdos.c makefs: remove set but not used variables 2021-11-21 21:21:34 -05:00
msdos.h Fix makefs bootstrap after d485c77f20 2021-02-22 17:55:45 +00:00
mtree.c spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
walk.c
zfs.c makefs/zfs: Avoid generating a GUID of zero 2023-05-26 15:38:08 -04:00