]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
make us more tolerant in the face of failure - continue gracefully,
authorNathan Scott <nathans@sgi.com>
Fri, 17 May 2002 03:17:50 +0000 (03:17 +0000)
committerNathan Scott <nathans@sgi.com>
Fri, 17 May 2002 03:17:50 +0000 (03:17 +0000)
don't dump core.  theres still a problem lurking here somewhere for
1K blocksizes though..

repair/phase4.c

index 41103ff8433b9831517d0f3b008c8a3a1e4cc474..f7c99ee829f706694d79e3515e6e3d35867d8414 100644 (file)
@@ -237,7 +237,8 @@ longform_delete_orphanage(xfs_mount_t       *mp,
        res = 0;
 
        do {
-               ASSERT(fsbno != NULLDFSBNO);
+               if (fsbno == NULLDFSBNO)
+                       break;
                bp = libxfs_readbuf(mp->m_dev, XFS_FSB_TO_DADDR(mp, fsbno),
                                        XFS_FSB_TO_BB(mp, 1), 0);
                if (!bp) {