Skip to content

Commit

Permalink
ocfs2: Handle error during journal load
Browse files Browse the repository at this point in the history
This patch ensures the mount fails if the fs is unable to load the journal.

Signed-off-by: Wengang Wang <wen.gang.wang@oracle.com>
Acked-by: Sunil Mushran <sunil.mushran@oracle.com>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
  • Loading branch information
Wengang Wang authored and Mark Fasheh committed Jul 14, 2008
1 parent 56753bd commit 01af482
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion fs/ocfs2/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -1703,7 +1703,11 @@ static int ocfs2_check_volume(struct ocfs2_super *osb)
local = ocfs2_mount_local(osb);

/* will play back anything left in the journal. */
ocfs2_journal_load(osb->journal, local);
status = ocfs2_journal_load(osb->journal, local);
if (status < 0) {
mlog(ML_ERROR, "ocfs2 journal load failed! %d\n", status);
goto finally;
}

if (dirty) {
/* recover my local alloc if we didn't unmount cleanly. */
Expand Down

0 comments on commit 01af482

Please sign in to comment.