freebsd-src/lib/libufs
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
..
block.c lib: further adoption of SPDX licensing ID tags. 2017-11-26 02:00:33 +00:00
bread.3 use .Mt to mark up email addresses consistently (part3) 2014-06-23 08:23:05 +00:00
cgread.3 Correct fsck journal-recovery code to update a cylinder-group 2018-01-17 17:58:24 +00:00
cgroup.c Correct fsck journal-recovery code to update a cylinder-group 2018-01-17 17:58:24 +00:00
inode.c lib: further adoption of SPDX licensing ID tags. 2017-11-26 02:00:33 +00:00
libufs.3 Correct fsck journal-recovery code to update a cylinder-group 2018-01-17 17:58:24 +00:00
libufs.h Correct fsck journal-recovery code to update a cylinder-group 2018-01-17 17:58:24 +00:00
Makefile Correct fsck journal-recovery code to update a cylinder-group 2018-01-17 17:58:24 +00:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
sblock.c lib: further adoption of SPDX licensing ID tags. 2017-11-26 02:00:33 +00:00
sbread.3 use .Mt to mark up email addresses consistently (part3) 2014-06-23 08:23:05 +00:00
type.c Missing disk close in libufs. 2017-12-26 23:16:11 +00:00
ufs_disk_close.3 use .Mt to mark up email addresses consistently (part3) 2014-06-23 08:23:05 +00:00