Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 May 2021 16:44:23 GMT
From:      Chuck Silvers <chs@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 84768d114951 - main - fsdb: add missing bufinit() call
Message-ID:  <202105251644.14PGiNXP021476@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by chs:

URL: https://cgit.FreeBSD.org/src/commit/?id=84768d114951e88288024f09d4beae0956c3cf21

commit 84768d114951e88288024f09d4beae0956c3cf21
Author:     Chuck Silvers <chs@FreeBSD.org>
AuthorDate: 2021-05-25 16:42:10 +0000
Commit:     Chuck Silvers <chs@FreeBSD.org>
CommitDate: 2021-05-25 16:42:10 +0000

    fsdb: add missing bufinit() call
    
    The bufinit() call in fsck_ffs was moved in commit f190f9193bc10
    from a function that is shared with fsdb to one that is private to fsck_ffs,
    so add a bufinit() call in fsdb to compensate for that.
    
    Reviewed by:    mckusick
    Sponsored by:   Netflix
---
 sbin/fsdb/fsdb.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sbin/fsdb/fsdb.c b/sbin/fsdb/fsdb.c
index 785aeb2b5a75..b8f0dd9f9772 100644
--- a/sbin/fsdb/fsdb.c
+++ b/sbin/fsdb/fsdb.c
@@ -111,6 +111,7 @@ main(int argc, char *argv[])
 		fsys = argv[0];
 
 	sblock_init();
+	bufinit();
 	if (!setup(fsys))
 		errx(1, "cannot set up file system `%s'", fsys);
 	if (fswritefd < 0)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202105251644.14PGiNXP021476>