All of lore.kernel.org
 help / color / mirror / Atom feed
* [Ocfs2-devel] [PATCH 1/1] ocfs2: Handle error during journal load
@ 2008-06-10  6:24 wen.gang.wang at oracle.com
  2008-06-10 16:32 ` Sunil Mushran
  2008-06-11 18:49 ` Mark Fasheh
  0 siblings, 2 replies; 3+ messages in thread
From: wen.gang.wang at oracle.com @ 2008-06-10  6:24 UTC (permalink / raw)
  To: ocfs2-devel

From: Wengang Wang <wen.gang.wang@oracle.com>

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>
---
 fs/ocfs2/super.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/fs/ocfs2/super.c b/fs/ocfs2/super.c
index df63ba2..ccecfe5 100644
--- a/fs/ocfs2/super.c
+++ b/fs/ocfs2/super.c
@@ -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. */
-- 
1.5.3.2

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

end of thread, other threads:[~2008-06-11 18:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-10  6:24 [Ocfs2-devel] [PATCH 1/1] ocfs2: Handle error during journal load wen.gang.wang at oracle.com
2008-06-10 16:32 ` Sunil Mushran
2008-06-11 18:49 ` Mark Fasheh

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.