From: Madan Valluri Date: Wed, 31 Jan 2007 03:58:09 +0000 (+0000) Subject: Do no skip a rootino even if it doesn't appear to be a directory, in traverse_function(). X-Git-Tag: v2.9.0~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9553ab05cec082a6b91fed02cf723947173d24c7;p=thirdparty%2Fxfsprogs-dev.git Do no skip a rootino even if it doesn't appear to be a directory, in traverse_function(). Do no skip a rootino even if it doesn't appear to be a directory, in traverse_function(). --- diff --git a/repair/phase6.c b/repair/phase6.c index 28a8bdf20..3ad2bc196 100644 --- a/repair/phase6.c +++ b/repair/phase6.c @@ -3838,8 +3838,12 @@ traverse_function(xfs_mount_t *mp, xfs_agnumber_t agno) while (irec != NULL) { for (j = 0; j < XFS_INODES_PER_CHUNK; j++) { - if (!inode_isadir(irec, j)) - continue; + if (!inode_isadir(irec, j)) { + ino = XFS_AGINO_TO_INO(mp, agno, + irec->ino_startnum + j); + if (mp->m_sb.sb_rootino != ino) + continue; + } ino = XFS_AGINO_TO_INO(mp, agno, irec->ino_startnum + j);