freebsd-nq/sbin/fsck_ffs
Kirk McKusick 72f854ce8f Correct fsck journal-recovery code to update a cylinder-group
check-hash after making changes to the cylinder group. The problem
was that the journal-recovery code was calling the libufs bwrite()
function instead of the cgput() function. The cgput() function updates
the cylinder-group check-hash before writing the cylinder group.

This change required the additions of the cgget() and cgput() functions
to the libufs API to avoid a gratuitous bcopy of every cylinder group
to be read or written. These new functions have been added to the
libufs manual pages. This was the first opportunity that I have had
to use and document the use of the EDOOFUS error code.

Reviewed by: kib
Reported by: emaste and others
2018-01-17 17:58:24 +00:00
..
dir.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
ea.c various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
fsck_ffs.8 Exit fsck_ffs with non-zero status when file system is not repaired. 2018-01-15 19:25:11 +00:00
fsck.h Rename cgget => cglookup to clear name space for new libufs function cgget. 2018-01-17 06:31:21 +00:00
fsutil.c Rename cgget => cglookup to clear name space for new libufs function cgget. 2018-01-17 06:31:21 +00:00
gjournal.c Correct fsck journal-recovery code to update a cylinder-group 2018-01-17 17:58:24 +00:00
globs.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
inode.c Rename cgget => cglookup to clear name space for new libufs function cgget. 2018-01-17 06:31:21 +00:00
main.c Exit fsck_ffs with non-zero status when file system is not repaired. 2018-01-15 19:25:11 +00:00
Makefile sbin: normalize paths using SRCTOP-relative paths or :H when possible 2017-03-04 11:33:01 +00:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
pass1.c Rename cgget => cglookup to clear name space for new libufs function cgget. 2018-01-17 06:31:21 +00:00
pass1b.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
pass2.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
pass3.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
pass4.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
pass5.c Rename cgget => cglookup to clear name space for new libufs function cgget. 2018-01-17 06:31:21 +00:00
setup.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
suj.c Correct fsck journal-recovery code to update a cylinder-group 2018-01-17 17:58:24 +00:00
utilities.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00