aboutsummaryrefslogtreecommitdiff
path: root/lib/libufs/Makefile
diff options
context:
space:
mode:
authorKirk McKusick <mckusick@FreeBSD.org>2018-01-17 17:58:24 +0000
committerKirk McKusick <mckusick@FreeBSD.org>2018-01-17 17:58:24 +0000
commit72f854ce8f359100d957a07da44ae98591d3dfd9 (patch)
tree6603c949e870e1510902951cb2391e730e174006 /lib/libufs/Makefile
parent64e12b4140ffeaea04b7230d506ee0326e3b077d (diff)
downloadsrc-72f854ce8f359100d957a07da44ae98591d3dfd9.tar.gz
src-72f854ce8f359100d957a07da44ae98591d3dfd9.zip
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
Notes
Notes: svn path=/head/; revision=328092
Diffstat (limited to 'lib/libufs/Makefile')
-rw-r--r--lib/libufs/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libufs/Makefile b/lib/libufs/Makefile
index c80183d3b428..d24526e829c1 100644
--- a/lib/libufs/Makefile
+++ b/lib/libufs/Makefile
@@ -12,7 +12,10 @@ MAN= bread.3 cgread.3 libufs.3 sbread.3 ufs_disk_close.3
MLINKS+= bread.3 bwrite.3
MLINKS+= bread.3 berase.3
MLINKS+= cgread.3 cgread1.3
+MLINKS+= cgread.3 cgget.3
+MLINKS+= cgread.3 cgwrite.3
MLINKS+= cgread.3 cgwrite1.3
+MLINKS+= cgread.3 cgput.3
MLINKS+= sbread.3 sbwrite.3
MLINKS+= ufs_disk_close.3 ufs_disk_fillout.3
MLINKS+= ufs_disk_close.3 ufs_disk_fillout_blank.3