From 4dcea5f49807b10a5204a8c16dff05168abe48a8 Mon Sep 17 00:00:00 2001 From: Barry Naujok Date: Thu, 27 Apr 2006 15:40:08 +0000 Subject: [PATCH] Fix up check of right most branch in a multi-level extent btree Merge of master-melb:xfs-cmds:25836a by kenmcd. pv:952341 Fix up check of right most branch in a multi-level extent btree --- repair/scan.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/repair/scan.c b/repair/scan.c index 32c73efa3..ee0eac553 100644 --- a/repair/scan.c +++ b/repair/scan.c @@ -434,17 +434,18 @@ _("out-of-order bmap key (file offset) in inode %llu, %s fork, fsbno %llu\n"), } /* - * Check that the last child block's forward sibling pointer - * is NULL. + * If we're the last node at our level, check that the last child + * block's forward sibling pointer is NULL. */ if (check_dups == 0 && + bm_cursor->level[level].right_fsbno == NULLDFSBNO && bm_cursor->level[level - 1].right_fsbno != NULLDFSBNO) { do_warn( _("bad fwd (right) sibling pointer (saw %llu should be NULLDFSBNO)\n" "\tin inode %llu (%s fork) bmap btree block %llu\n"), bm_cursor->level[level - 1].right_fsbno, ino, forkname, - bm_cursor->level[level].fsbno); + bm_cursor->level[level - 1].fsbno); return(1); } -- 2.47.2