git: 262b581d1791 - main - Properly specify the level of indirect block being looked up. The value is used only for diagnostic purposes so no functional change should result.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 05 May 2022 23:58:24 UTC
The branch main has been updated by mckusick: URL: https://cgit.FreeBSD.org/src/commit/?id=262b581d1791fa5905d8771bef7fc201ed46d790 commit 262b581d1791fa5905d8771bef7fc201ed46d790 Author: Kirk McKusick <mckusick@FreeBSD.org> AuthorDate: 2022-05-05 23:57:03 +0000 Commit: Kirk McKusick <mckusick@FreeBSD.org> CommitDate: 2022-05-05 23:58:03 +0000 Properly specify the level of indirect block being looked up. The value is used only for diagnostic purposes so no functional change should result. --- sbin/fsck_ffs/inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/fsck_ffs/inode.c b/sbin/fsck_ffs/inode.c index dafc99bd92da..47f72c84a1f2 100644 --- a/sbin/fsck_ffs/inode.c +++ b/sbin/fsck_ffs/inode.c @@ -213,7 +213,7 @@ iblock(struct inodesc *idesc, off_t isize, int type) idesc->id_lbn++; n = (*func)(idesc); } else { - n = iblock(idesc, isize, type); + n = iblock(idesc, isize, type - 1); idesc->id_level++; } if (n & STOP) {