Skip to contentSkip to conversation

ocfs2_clear_journal_error review

Ocfs2-devel Zhangguanghui 1 participant 1 message Apr 1, 2016 1 message not in the archive OCFS2

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Hi
I get a issue while mounting the volume at a time. Missing jbd2_journal_update_sb_errno() may cause this issue. So far as i know, in jbd2_journal_clear_err, journal->j_errno = 0, but don't call jbd2_journal_update_sb_errno update sb->s_errno.
? in __journal_abort_soft? journal->j_errno and sb->s_errno record the abort error status.

    the value of sb->s_errno is always EIO, jbd2_journal_load->load_superblock->journal->j_errno = be32_to_cpu(sb->s_errno);
    the next time mounting the volume, still get the same issues.  so jbd2_journal_update_sb_errno should be called after jbd2_journal_clear_err
     in ocfs2_clear_journal_error.  Anybody ever see this, is it reasonable??Thanks

    ocfs2_journal_load
       --jbd2_journal_load
       -- ocfs2_clear_journal_error
            --jbd2_journal_errno
            --jbd2_journal_ack_err
            --jbd2_journal_clear_err
            -- jbd2_journal_update_sb_errno  --update sb_error

    (mount.ocfs2,7417,38):ocfs2_clear_journal_error:1052 ERROR: File system error -5 recorded in journal 2.
    (mount.ocfs2,7417,38):ocfs2_clear_journal_error:1054 ERROR: File system on device dm-1 needs checking

Thanks.

________________________________
zhangguanghui

-------------------------------------------------------------------------------------------------------------------------------------
???????????????????????????????????????? ???????????????????????????????????????? ????????????????????????????????????????
???
This e-mail and its attachments contain confidential information from H3C, which is intended only for the person or entity whose address is listed above. Any use of the information contained herein in any way (including, but not limited to, total or partial disclosure, reproduction, or dissemination) by persons other than the intended recipient(s) is prohibited. If you receive this e-mail in error, please notify the sender by phone or email immediately and delete it!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://oss.oracle.com/pipermail/ocfs2-devel/attachments/20160401/1a82de15/attachment.html