freebsd-dev/usr.sbin/makefs/ffs
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
..
buf.c makefs: call brelse from bread 2023-04-16 15:45:17 -04:00
buf.h
ffs_alloc.c makefs: do not call brelse if bread returns an error 2023-03-13 22:39:09 -04:00
ffs_balloc.c
ffs_bswap.c spdx: The BSD-2-Clause-NetBSD identifier is obsolete, drop -NetBSD 2023-05-12 10:44:04 -06:00
ffs_extern.h
ffs_subr.c
Makefile.inc
mkfs.c ffs: restore backward compatibility of newfs and makefs with older binaries 2023-05-29 19:26:28 -07:00
newfs_extern.h spdx: The BSD-2-Clause-NetBSD identifier is obsolete, drop -NetBSD 2023-05-12 10:44:04 -06:00
ufs_bmap.c
ufs_bswap.h spdx: The BSD-2-Clause-NetBSD identifier is obsolete, drop -NetBSD 2023-05-12 10:44:04 -06:00
ufs_inode.h