forked from pfsense/FreeBSD-src
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the libufs cgget() and cgput() interfaces to have a similar
API to the sbget() and sbput() interfaces. Specifically they take a file descriptor pointer rather than the struct uufsd *disk pointer used by the libufs cgread() and cgwrite() interfaces. Update fsck_ffs to use these revised interfaces. No functional changes intended. Sponsored by: Netflix
- Loading branch information
Kirk McKusick
authored and
Kirk McKusick
committed
Sep 19, 2020
1 parent
a29c034
commit 85ee267
Showing
10 changed files
with
95 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ | |
.\" | ||
.\" $FreeBSD$ | ||
.\" | ||
.Dd January 19, 2018 | ||
.Dd September 2, 2020 | ||
.Dt CGREAD 3 | ||
.Os | ||
.Sh NAME | ||
|
@@ -29,9 +29,9 @@ | |
.In ufs/ffs/fs.h | ||
.In libufs.h | ||
.Ft int | ||
.Fn cgget "struct uufsd *disk" "int cg" "struct cg *cgp" | ||
.Fn cgget "int devfd" "struct fs *fs" "int cg" "struct cg *cgp" | ||
.Ft int | ||
.Fn cgput "struct uufsd *disk" "struct cg *cgp" | ||
.Fn cgput "int devfd" "struct fs *fs" "struct cg *cgp" | ||
.Ft int | ||
.Fn cgread "struct uufsd *disk" | ||
.Ft int | ||
|
@@ -64,7 +64,11 @@ function reads the cylinder group specified by | |
.Fa cg | ||
into the buffer pointed to by | ||
.Fa cgp | ||
from the disk referenced by the user-land UFS-disk structure. | ||
from the filesystem described by the | ||
.Fa fs | ||
superblock using the | ||
.Fa devfd | ||
file descriptor that references the filesystem disk. | ||
The | ||
.Fn cgget | ||
function is the only cylinder group read function that is safe to use | ||
|
@@ -74,7 +78,11 @@ The | |
.Fn cgput | ||
function writes the cylinder group specified by | ||
.Va cgp | ||
to the disk referenced by the user-land UFS-disk structure. | ||
to the filesystem described by the | ||
.Fa fs | ||
superblock using the | ||
.Fa devfd | ||
file descriptor that references the filesystem disk. | ||
The | ||
.Fn cgput | ||
function is the only cylinder group write function that is safe to use | ||
|
@@ -172,3 +180,4 @@ in | |
.Fx 5.1 . | ||
.Sh AUTHORS | ||
.An Juli Mallett Aq Mt [email protected] | ||
.An Marshall Kirk McKusick Aq Mt [email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
.\" | ||
.\" $FreeBSD$ | ||
.\" | ||
.Dd November 26, 2018 | ||
.Dd September 2, 2020 | ||
.Dt LIBUFS 3 | ||
.Os | ||
.Sh NAME | ||
|
@@ -80,6 +80,7 @@ library first appeared in | |
.Fx 5.0 . | ||
.Sh AUTHORS | ||
.An Juli Mallett Aq Mt [email protected] | ||
.An Marshall Kirk McKusick Aq Mt [email protected] | ||
.Pp | ||
.An -nosplit | ||
Additional design, feedback, and ideas were provided by | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ | |
.\" | ||
.\" $FreeBSD$ | ||
.\" | ||
.Dd January 19, 2018 | ||
.Dd September 2, 2020 | ||
.Dt SBREAD 3 | ||
.Os | ||
.Sh NAME | ||
|
@@ -145,3 +145,4 @@ in | |
.Fx 5.0 . | ||
.Sh AUTHORS | ||
.An Juli Mallett Aq Mt [email protected] | ||
.An Marshall Kirk McKusick Aq Mt [email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters