freebsd-dev/sbin
Chuck Silvers 4064755812 fsck_ffs: fix the previous change that skipped pass 5 in some cases
The previous change involved calling check_cgmagic() twice in a row
for the same CG in order to differentiate when the CG was already ok vs.
when the CG was rebuilt, but that doesn't work because the second call
(which was supposed to rebuild the CG) returns 0 (indicating that
the CG was not rebuilt) due to the prevfailcg check causing an early
failure return.  Fix this by moving the rebuild part of check_cgmagic()
out into a separate function which is called by pass1() when it wants to
rebuild a CG.

Fixes: da86e7a20d
Reported by:	pho
Discussed with:	mckusick
Sponsored by:	Netflix
2023-05-03 13:31:32 -07:00
..
adjkerntz Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
bectl bectl: document the -r flag to bectl 2023-04-26 00:33:25 -05:00
bsdlabel Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
camcontrol Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
ccdconfig Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
clri Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
comcontrol Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
conscontrol Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
ddb Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
decryptcore Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
devd ath10k: ath11k: ammend devd.conf regex 2023-04-23 21:31:07 +00:00
devfs Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07: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 Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
etherswitchcfg Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
fdisk fdisk: Use valid prototypes for function declarations with no arguments. 2023-04-24 08:53:49 -07: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 fsck_ffs: fix the previous change that skipped pass 5 in some cases 2023-05-03 13:31:32 -07:00
fsck_msdosfs Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
fsdb Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
fsirand Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
gbde gbde: stop rebuilding sha512 bits 2023-04-26 00:36:33 -05:00
geom geom: minor man page updates suggested by igor(1) 2022-12-12 19:27:17 -05:00
ggate Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
growfs Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
gvinum Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
hastctl Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
hastd Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
ifconfig Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07: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 ipfw: add [fw]mark implementation for ipfw 2023-04-25 12:40:23 +00:00
kldconfig Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
kldload Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
kldstat Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
kldunload Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
ldconfig Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
md5 Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
mdconfig Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
mdmfs Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
mknod Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
mksnap_ffs Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
mount Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
mount_cd9660 Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
mount_fusefs Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07: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 newfs: fix up 32-bit compile 2023-04-30 18:00:20 +00:00
newfs_msdos Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
nfsiod Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
nos-tun Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
nvmecontrol Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
pfctl pfctl: match expand_label_addr() prototype to definition 2023-04-26 17:09:46 +02:00
pfilctl pfilctl: improve formatting of "hooks" and "heads" command output. 2021-03-19 11:18:05 -07:00
pflogd Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
ping Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
quotacheck Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
rcorder Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
reboot Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07: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 route: show originator PID in netlink monitor 2023-04-28 13:54:54 +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 Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07: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 NVME support is only for x86 and powerpc64. 2018-06-14 01:15:19 +00:00