freebsd-dev/sbin
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
..
adjkerntz spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
bectl bectl.8: update /home 2023-05-24 22:08:39 -05:00
bsdlabel Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
camcontrol spdx: The BSD-2-Clause-NetBSD identifier is obsolete, drop -NetBSD 2023-05-12 10:44:04 -06:00
ccdconfig spdx: The BSD-2-Clause-NetBSD identifier is obsolete, drop -NetBSD 2023-05-12 10:44:04 -06:00
clri Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
comcontrol spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
conscontrol spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
ddb spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
decryptcore Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
devd spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
devfs spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
devmatch Make SYNOPSIS match DESCRIPTION. 2022-11-03 00:20:12 +01:00
dhclient Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
dmesg Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
dump Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
dumpfs Yet another try to fix printf format conflict. 2023-04-30 00:00:23 -07:00
dumpon dumpon: provide diag info when PEM_read_RSA_PUBKEY fails 2023-05-26 18:05:04 -07:00
etherswitchcfg spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
fdisk spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
ffsinfo Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
fsck Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
fsck_ffs Fix a bug in fsck_ffs(8) triggered by corrupted filesystems. 2023-05-29 14:58:20 -07:00
fsck_msdosfs spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
fsdb Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
fsirand spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
gbde spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
geom spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
ggate spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
growfs Fix size differences between architectures of the UFS/FFS CGSIZE macro value. 2023-05-15 12:57:15 -07:00
gvinum spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
hastctl spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
hastd spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
ifconfig ifconfig: fix ifconfig IFX inet[6] ADDR -alias 2023-05-25 15:03:35 +00:00
init Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
ipf Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
ipfw spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
kldconfig spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
kldload spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
kldstat spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
kldunload spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
ldconfig spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
md5 md5: Add missing <errno.h>. 2023-05-11 06:24:02 +00:00
mdconfig spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
mdmfs spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
mknod Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
mksnap_ffs mksnap_ffs.8: update /home examples 2023-05-24 10:31:50 -05:00
mount spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
mount_cd9660 Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
mount_fusefs spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
mount_msdosfs Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
mount_nfs Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
mount_nullfs Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
mount_udf Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
mount_unionfs Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
natd Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
newfs ffs: restore backward compatibility of newfs and makefs with older binaries 2023-05-29 19:26:28 -07:00
newfs_msdos spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
nfsiod Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
nos-tun spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
nvmecontrol nvmecontrol: Fix power subcommand output. 2023-05-15 16:48:50 -04:00
pfctl pfctl: match expand_label_addr() prototype to definition 2023-04-26 17:09:46 +02:00
pfilctl spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
pflogd Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
ping spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
quotacheck Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
rcorder spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
reboot spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
recoverdisk Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
resolvconf pkgbase: Put resolvconf in its own package 2022-10-26 19:46:26 +02:00
restore Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
route netlink: use newly-added snl(3) array parsing for handling multipath 2023-05-27 11:13:14 +00:00
routed Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
rtsol Update Makefile.depend files 2019-12-11 17:37:53 +00:00
savecore Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
setkey setkey(8): document NAT-T and NAT-T MTU extensions syntax 2023-05-30 01:10:02 +03:00
shutdown Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
swapon Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
sysctl Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
tests
tunefs Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
umount Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
veriexec veriexec: Add SPDX-License-Identifier 2023-04-16 21:23:00 -04:00
zfsbootcfg Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
Makefile Retire WITHOUT_CXX option 2023-01-26 21:13:16 -05:00
Makefile.amd64 retire sconfig(8) ce(4)/cp(4) configuration tool 2022-12-13 15:25:13 -05:00
Makefile.arm
Makefile.i386 retire sconfig(8) ce(4)/cp(4) configuration tool 2022-12-13 15:25:13 -05:00
Makefile.inc build: provide a default WARNS for all in-tree builds 2020-09-18 17:17:46 +00:00
Makefile.powerpc64