Correctly describe the return values for the libufs library sbget()
and sbput() functions that respectively read and write the superblock. PR: 247425 Sponsored by: Netflix
This commit is contained in:
parent
92c839a156
commit
d7fcdf5d48
@ -109,28 +109,30 @@ function will write to all the alternate superblock locations if the
|
|||||||
.Fa all
|
.Fa all
|
||||||
value is non-zero.
|
value is non-zero.
|
||||||
.Sh RETURN VALUES
|
.Sh RETURN VALUES
|
||||||
.Rv -std sbget sbput sbread sbwrite
|
.Rv -std sbread sbwrite
|
||||||
.Sh ERRORS
|
|
||||||
The
|
The
|
||||||
.Fn sbget
|
.Fn sbget
|
||||||
and
|
and
|
||||||
|
.Fn sbput
|
||||||
|
functions return the value 0 if successful;
|
||||||
|
otherwise they return one of the errors described below.
|
||||||
|
.Sh ERRORS
|
||||||
|
The errors returned by
|
||||||
|
.Fn sbget
|
||||||
|
and
|
||||||
.Fn sbread
|
.Fn sbread
|
||||||
functions may fail and set
|
include any of the errors specified for the library function
|
||||||
.Va errno
|
|
||||||
for any of the errors specified for the library function
|
|
||||||
.Xr bread 3 .
|
.Xr bread 3 .
|
||||||
Additionally, it may follow the
|
Additionally, they may follow the
|
||||||
.Xr libufs 3
|
.Xr libufs 3
|
||||||
error methodologies in situations where no usable superblock could be
|
error methodologies in situations where no usable superblock could be
|
||||||
found.
|
found.
|
||||||
.Pp
|
.Pp
|
||||||
The
|
The errors returned by
|
||||||
.Fn sbput
|
.Fn sbput
|
||||||
and
|
and
|
||||||
.Fn sbwrite
|
.Fn sbwrite
|
||||||
functions may fail and set
|
include any of the errors specified for the library function
|
||||||
.Va errno
|
|
||||||
for any of the errors specified for the library function
|
|
||||||
.Xr bwrite 3 .
|
.Xr bwrite 3 .
|
||||||
.Sh SEE ALSO
|
.Sh SEE ALSO
|
||||||
.Xr bread 3 ,
|
.Xr bread 3 ,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user