From 85ee267a3eb58f9aa1a73a1abcf033c5c460b324 Mon Sep 17 00:00:00 2001 From: Kirk McKusick Date: Sat, 19 Sep 2020 22:48:30 +0000 Subject: 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 --- lib/libufs/libufs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/libufs/libufs.h') diff --git a/lib/libufs/libufs.h b/lib/libufs/libufs.h index ad990bbc0930..8160fdcd68a9 100644 --- a/lib/libufs/libufs.h +++ b/lib/libufs/libufs.h @@ -136,8 +136,8 @@ int berase(struct uufsd *, ufs2_daddr_t, ufs2_daddr_t); ufs2_daddr_t cgballoc(struct uufsd *); int cgbfree(struct uufsd *, ufs2_daddr_t, long); ino_t cgialloc(struct uufsd *); -int cgget(struct uufsd *, int, struct cg *); -int cgput(struct uufsd *, struct cg *); +int cgget(int, struct fs *, int, struct cg *); +int cgput(int, struct fs *, struct cg *); int cgread(struct uufsd *); int cgread1(struct uufsd *, int); int cgwrite(struct uufsd *); -- cgit v1.2.3