freebsd-dev/sbin/newfs
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
..
Makefile pkgbase: Put ufs related tools and lib in their own package 2022-10-26 19:46:34 +02:00
Makefile.depend Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
mkfs.c ffs: restore backward compatibility of newfs and makefs with older binaries 2023-05-29 19:26:28 -07:00
newfs.8 Enable taking snapshots on UFS/FFS filesystems using journaled soft updates. 2022-11-12 22:56:03 -08:00
newfs.c Remove #define _KERNEL hacks from libprocstat 2021-02-21 11:38:21 +02:00
newfs.h General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
ref.test
runtest01.sh *: Do not use the no-op -r flag for bsdlabel(8) 2022-03-17 17:28:07 +01:00
runtest00.sh *: Do not use the no-op -r flag for bsdlabel(8) 2022-03-17 17:28:07 +01:00