public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* The segment fault with NULL point using when recovering failure
@ 2010-09-15 15:59 Mike Gao
  2010-09-17  1:44 ` Dave Chinner
  0 siblings, 1 reply; 4+ messages in thread
From: Mike Gao @ 2010-09-15 15:59 UTC (permalink / raw)
  To: xfs, Dave Chinner


[-- Attachment #1.1: Type: text/plain, Size: 679 bytes --]

xlog_recover_process_iunlinks(
    xlog_t        *log)
{
                /*
                 * Reacquire the agibuffer and continue around
                 * the loop. This should never fail as we know
                 * the buffer was good earlier on.
                 */
                error = xfs_read_agi(mp, NULL, agno, &agibp);
                ASSERT(error == 0);
                agi = XFS_BUF_TO_AGI(agibp);

}
If no defined DEBUG, ASSERT will not work and agibp could be ZERO if there
is a error in xfs_read_agi.
And the comment shouldn't say it never fail because  xfs_read_agi will
return error in function and it does when there is forced shutdown.

Thanks,
Mike Gao

[-- Attachment #1.2: Type: text/html, Size: 756 bytes --]

[-- Attachment #2: Type: text/plain, Size: 121 bytes --]

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-09-29  6:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-15 15:59 The segment fault with NULL point using when recovering failure Mike Gao
2010-09-17  1:44 ` Dave Chinner
2010-09-24 15:53   ` Mike Gao
2010-09-29  6:05     ` Dave Chinner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox