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 Remove #define _KERNEL hacks from libprocstat 2021-02-21 11:38:21 +02:00
ffs_alloc.c makefs: do not call brelse if bread returns an error 2023-03-13 22:39:09 -04:00
ffs_balloc.c Remove #define _KERNEL hacks from libprocstat 2021-02-21 11:38:21 +02:00
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 Remove #define _KERNEL hacks from libprocstat 2021-02-21 11:38:21 +02:00
ffs_subr.c Fix -Wpointer-sign warnings in makefs and mkimg 2021-01-07 09:26:21 +00:00
Makefile.inc makefs: Ignore some sign comparison warnings from GCC. 2022-11-23 10:38:29 -08:00
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 makefs: whitespace cleanup (remove space before tab) 2022-09-20 10:26:24 -04:00