git: bfae35b39be7 - stable/13 - Properly specify the level of indirect block being looked up.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 11 Dec 2022 00:38:09 UTC
The branch stable/13 has been updated by mckusick:
URL: https://cgit.FreeBSD.org/src/commit/?id=bfae35b39be7c3be8a2983afdb746b9d94817075
commit bfae35b39be7c3be8a2983afdb746b9d94817075
Author: Kirk McKusick <mckusick@FreeBSD.org>
AuthorDate: 2022-05-05 23:57:03 +0000
Commit: Kirk McKusick <mckusick@FreeBSD.org>
CommitDate: 2022-12-11 00:37:16 +0000
Properly specify the level of indirect block being looked up.
(cherry picked from commit 262b581d1791fa5905d8771bef7fc201ed46d790)
Sponsored by: The FreeBSD Foundation
---
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 ccfe8782ac88..8a93ad092a4a 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) {