diff options
author | Kirk McKusick <mckusick@FreeBSD.org> | 2020-09-19 22:48:30 +0000 |
---|---|---|
committer | Kirk McKusick <mckusick@FreeBSD.org> | 2020-09-19 22:48:30 +0000 |
commit | 85ee267a3eb58f9aa1a73a1abcf033c5c460b324 (patch) | |
tree | 76560a561871fae0dc3150bedadc7fd8751ceb9c /sbin/fsck_ffs/suj.c | |
parent | a29c0348f0653c25adb65e340e6f5a7edc86b8a2 (diff) | |
download | src-85ee267a3eb58f9aa1a73a1abcf033c5c460b324.tar.gz src-85ee267a3eb58f9aa1a73a1abcf033c5c460b324.zip |
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
Notes
Notes:
svn path=/head/; revision=365919
Diffstat (limited to 'sbin/fsck_ffs/suj.c')
-rw-r--r-- | sbin/fsck_ffs/suj.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/fsck_ffs/suj.c b/sbin/fsck_ffs/suj.c index e1e3da19e195..8ecd1f686ea7 100644 --- a/sbin/fsck_ffs/suj.c +++ b/sbin/fsck_ffs/suj.c @@ -1912,7 +1912,7 @@ cg_write(struct suj_cg *sc) * before writing the block. */ fs->fs_cs(fs, sc->sc_cgx) = cgp->cg_cs; - if (cgput(&disk, cgp) == -1) + if (cgput(fswritefd, fs, cgp) == -1) err_suj("Unable to write cylinder group %d\n", sc->sc_cgx); } |