aboutsummaryrefslogtreecommitdiff
path: root/lib/libufs/libufs.3
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/libufs.3
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/libufs.3')
-rw-r--r--lib/libufs/libufs.35
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/libufs/libufs.3 b/lib/libufs/libufs.3
index 5b5dd9b1c898..595df91e0e95 100644
--- a/lib/libufs/libufs.3
+++ b/lib/libufs/libufs.3
@@ -7,7 +7,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd June 4, 2003
+.Dd January 19, 2018
.Dt LIBUFS 3
.Os
.Sh NAME
@@ -55,8 +55,11 @@ to a string describing the error.
.Sh SEE ALSO
.Xr bread 3 ,
.Xr bwrite 3 ,
+.Xr cgget 3 ,
+.Xr cgput 3 ,
.Xr cgread 3 ,
.Xr cgread1 3 ,
+.Xr cgwrite 3 ,
.Xr cgwrite1 3 ,
.Xr sbread 3 ,
.Xr sbwrite 3 ,