ocfs2: Handle error during journal load
PATCH 1/1 ocfs2: Handle error during journal load
From: Wengang Wang <[email protected]>
This patch ensures the mount fails if the fs is unable to load the journal.
Signed-off-by Wengang Wang <[email protected]>
--- fs/ocfs2/super.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-)
fs/ocfs2/super.c +5 -1
@@ -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. */
Signature · 1 line
1.5.3.2
PATCH 1/1 ocfs2: Handle error during journal load
Quoted 6 lines · wen.gang.wang at oracle.com
From: Wengang Wang <[email protected]>
This patch ensures the mount fails if the fs is unable to load the journal.
Signed-off-by Wengang Wang <[email protected]>
Signed-off-by Sunil Mushran <[email protected]>
PATCH 1/1 ocfs2: Handle error during journal load
In reply to wen.gang.wang at oracle.comQuoted 3 lines · wen.gang.wang at oracle.com
From: Wengang Wang <[email protected]>
This patch ensures the mount fails if the fs is unable to load the journal.
Ok, thanks for this.
--Mark
--
Mark Fasheh