freebsd-src/sbin
Chuck Silvers 89bd147dbf 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

(cherry picked from commit d464a7698d)
2023-06-04 04:00:22 -07:00
..
adjkerntz
bectl pkgbase: Put zfs utilities and lib in their own package 2023-02-02 10:32:55 +01:00
bsdlabel
camcontrol
ccdconfig
clri pkgbase: Put ufs related tools and lib in their own package 2023-02-02 10:32:55 +01:00
comcontrol
conscontrol
ddb
decryptcore
devd devd.conf.5: Fix a typo in the manual page 2023-03-31 09:50:37 +02:00
devfs sbin/devfs: Correct usage 2023-02-03 23:47:41 +08:00
devmatch pkgbase: Put devmatch in its own package 2023-02-02 10:32:56 +01:00
dhclient pkgbase: Put dhclient in its own package 2023-02-02 10:32:55 +01:00
dmesg
dump Rewrite function definitions with identifier lists. 2023-03-29 21:32:32 -07:00
dumpfs Yet another try to fix printf format conflict. 2023-05-19 15:42:12 -07:00
dumpon dumpon: warn if the configured netdump link is down 2022-05-27 13:22:48 -03:00
etherswitchcfg
fdisk
ffsinfo pkgbase: Put ufs related tools and lib in their own package 2023-02-02 10:32:55 +01:00
fsck Document the mntopts(3) functions. 2023-02-06 15:17:39 -08:00
fsck_ffs Fix size differences between architectures of the UFS/FFS CGSIZE macro value. 2023-05-26 14:25:50 -07:00
fsck_msdosfs
fsdb Add `chdb' command to fsdb(8) to set direct block numbers. 2023-04-29 11:04:53 -07:00
fsirand pkgbase: Put ufs related tools and lib in their own package 2023-02-02 10:32:55 +01:00
gbde pkgbase: Put geom utilities in their own package 2023-02-02 10:32:55 +01:00
geom geom.8: Fix typos and wordsmith 2023-05-12 12:10:59 +02:00
ggate ggatec: Use ANSI C definition for init_initial_buffer_size. 2022-05-10 17:04:10 -07:00
growfs Fix size differences between architectures of the UFS/FFS CGSIZE macro value. 2023-05-26 14:25:50 -07:00
gvinum pkgbase: Put geom utilities in their own package 2023-02-02 10:32:55 +01:00
hastctl hastd and hastctl: use zlib's crc32 implementation. 2023-02-22 21:03:11 -08:00
hastd hastd and hastctl: use zlib's crc32 implementation. 2023-02-22 21:03:11 -08:00
ifconfig ifconfig: Fix configuring if_bridge with additional operating parameters 2023-04-10 12:15:05 +08:00
init init: fix shutdown race 2022-12-06 15:41:34 +01:00
ipf ipfilter: Removed unused ioctl typedef 2022-10-15 17:33:00 -07:00
ipfw ipfw.8: MFC: improve description for interface matching 2023-04-28 12:52:15 +07:00
iscontrol
kldconfig
kldload kldload: Bring functionality in line with manual page 2022-07-01 17:16:22 +02:00
kldstat
kldunload
ldconfig
md5 md5: fix *sum -c with missing files 2023-02-15 21:29:46 -06:00
mdconfig
mdmfs
mknod
mksnap_ffs FFS/UFS snapshots: improve documentation for removal (deletion) and unlinking. 2023-03-19 22:22:06 -07:00
mount Fix for getmntpoint(3) when checking for NFS mount points. 2023-02-06 15:17:39 -08:00
mount_cd9660
mount_fusefs fusefs: use the fsname mount option if set 2022-05-23 13:11:11 -06:00
mount_msdosfs
mount_nfs mount_nfs.8: Update man page for the "syskrb5" option 2023-05-25 18:10:45 -07:00
mount_nullfs mount_nullfs.8: Bump .Dd for file mounts update. 2023-01-06 07:57:57 +00:00
mount_udf
mount_unionfs mount_unionfs: remove jokey cautions from man page 2022-11-10 16:47:48 -05:00
natd
newfs ffs: restore backward compatibility of newfs and makefs with older binaries 2023-06-04 04:00:22 -07:00
newfs_msdos newfs_msdos: fix type of kern.maxphys 2022-07-27 09:50:52 -04:00
nfsiod
nos-tun
nvmecontrol nvmecontrol: Fix power subcommand output. 2023-05-28 20:56:05 -04:00
pfctl pfctl: rule.label is a two-dimensional array 2023-01-31 04:29:47 +01:00
pfilctl
pflogd
ping ping: Avoid magic numbers 2023-03-24 12:58:01 -04:00
quotacheck
rcorder
reboot
recoverdisk
resolvconf pkgbase: Put resolvconf in its own package 2023-02-02 10:32:55 +01:00
restore pkgbase: Put ufs related tools and lib in their own package 2023-02-02 10:32:55 +01:00
route route.8: mention DXR in FIB_ALGO section 2023-05-27 10:31:42 +02:00
routed Bump .Dd for recently modified manual pages 2022-09-24 10:25:07 +02:00
rtsol
savecore savecore: add an option to save a live minidump 2022-06-27 16:32:06 -03:00
sconfig Add deprecation notices to ce,cp sync serial drivers 2022-12-22 10:47:14 -05:00
setkey setkey(8): add -e option to take script from the command line 2023-04-10 08:10:06 +03:00
shutdown shutdown.8: Add a note about needed priviledges to run the command 2022-11-14 08:53:42 +01:00
spppcontrol
swapon
sysctl sysctl.8: Reference sysctl(9) 2022-07-07 11:56:18 +02:00
tests
tunefs Document the mntopts(3) functions. 2023-02-06 15:17:39 -08:00
umount umount(8): Remove a double word in a source code comment 2022-04-14 08:06:55 +02:00
veriexec veriexec(4): Fix a compiler error 2023-04-14 09:38:38 +02:00
zfsbootcfg
Makefile
Makefile.amd64
Makefile.arm
Makefile.i386
Makefile.inc
Makefile.mips
Makefile.powerpc64