]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
Do no skip a rootino even if it doesn't appear to be a directory, in traverse_function().
authorMadan Valluri <mvalluri@sgi.com>
Wed, 31 Jan 2007 03:58:09 +0000 (03:58 +0000)
committerMadan Valluri <mvalluri@sgi.com>
Wed, 31 Jan 2007 03:58:09 +0000 (03:58 +0000)
Do no skip a rootino even if it doesn't appear to be a directory, in traverse_function().

repair/phase6.c

index 28a8bdf20802ac7564517fa75f7cc1dc3bb5b494..3ad2bc196c4fd270c342f6cf4f632bf3bdd24307 100644 (file)
@@ -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);