<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style>body { line-height: 1.5; }blockquote { margin-top: 0px; margin-bottom: 0px; margin-left: 0.5em; }p { margin-top: 0px; margin-bottom: 0px; }div.foxdiv20160401154409122594 { }body { font-size: 16pt; font-family: 微软雅黑; color: rgb(0, 0, 0); line-height: 1.5; }</style>
</head>
<body>
<div style="font-size: 16px;"><span style="line-height: 1.5; background-color: window;">Hi</span></div>
<div><span style="font-size: 16px; background-color: rgba(0, 0, 0, 0); line-height: 1.5;"> </span><font size="3"><span style="line-height: 1.5;"> </span><font><span style="line-height: 19px;">I get a issue while m</span><span style="line-height: 19px;">ounting
the </span><span style="line-height: 16.0160007476807px; widows: 1;">volume at a time. </span></font><span style="line-height: 19px;">Missing </span></font><span style="font-size: 16px; background-color: rgba(0, 0, 0, 0);">jbd2_journal_update_sb_errno</span><font size="3"><span style="line-height: 19px;">()
may cause this issue.</span></font></div>
<div style="font-size: 16px;"><span style="background-color: rgba(0, 0, 0, 0);"> So far as i know, </span><span style="background-color: rgba(0, 0, 0, 0); line-height: 1.5;"> in </span><span style="background-color: rgba(0, 0, 0, 0); line-height: 1.5;"> </span><span style="line-height: 1.5; background-color: window;">jbd2_journal_clear_err,
</span><span style="line-height: 1.5; background-color: window;">journal->j_errno = 0, but don't call </span><span style="background-color: window;">jbd2_journal_update_sb_errno update </span><span style="background-color: window;">sb->s_errno.</span></div>
<div style="font-size: 16px;"> in <span style="background-color: rgba(0, 0, 0, 0); line-height: 1.5;">__journal_abort_soft, </span><span style="line-height: 1.5; background-color: window;">journal->j_errno and </span><span style="background-color: window;"> </span><span style="background-color: window;">sb->s_errno </span><span style="line-height: 1.5; background-color: window;">record
the abort error status.</span></div>
<div><font size="3"><span style="background-color: rgb(255, 255, 255);"> the value of sb->s_errno is always EIO,<span style="line-height: 1.5;"> </span><span style="line-height: 1.5;">jbd2_journal_load-></span><span style="line-height: 1.5;">load_superblock-></span><span style="line-height: 1.5;">journal->j_errno
= be32_to_cpu(sb->s_errno);</span></span></font></div>
<div><font size="3"><span style="background-color: rgb(255, 255, 255);"><span style="line-height: 1.5;"> </span> 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</span></font></div>
<div><font size="3"><span style="background-color: rgb(255, 255, 255);"><span style="line-height: 1.5;"> </span> in ocfs2_clear_journal_error. <span style="line-height: 19px;"> </span><span style="line-height: 19px;">Anybody ever see this, is it </span><span style="line-height: 30px; widows: 1;">reasonable</span><span style="line-height: 19px;">? Thanks</span></span></font></div>
<div style="font-size: 16px;"><span style="background-color: window;"><br>
</span></div>
<div style="font-size: 16px;"><span style="background-color: rgba(0, 0, 0, 0); line-height: 1.5;"> </span><font size="2" style="font-size: 16px;">ocfs2_journal_load</font></div>
<div style="font-size: 16px;"><font size="2" style="font-size: 16px;"> </font><span style="background-color: rgba(0, 0, 0, 0); line-height: 1.5;"> </span><span style="line-height: 1.5; background-color: window;">--</span><span style="line-height: 1.5; background-color: window;">jbd2_journal_load</span></div>
<div style="font-size: 16px;"><font size="2" style="font-size: 16px;"> </font><span style="background-color: rgba(0, 0, 0, 0); line-height: 1.5;"> </span><span style="line-height: 1.5; background-color: window;">-- </span><span style="line-height: 1.5; background-color: window;">ocfs2_clear_journal_error</span></div>
<div style="font-size: 16px;"><font size="2" style="font-size: 16px;"> </font><span style="background-color: rgba(0, 0, 0, 0); line-height: 1.5;"> </span><span style="line-height: 1.5; background-color: window;">--</span><span style="line-height: 1.5; background-color: window;">jbd2_journal_errno</span></div>
<div style="font-size: 16px;"><font size="2" style="font-size: 16px;"> </font><span style="background-color: rgba(0, 0, 0, 0); line-height: 1.5;"> </span><span style="line-height: 1.5; background-color: window;">--</span><span style="line-height: 1.5; background-color: window;">jbd2_journal_ack_err</span></div>
<div style="font-size: 16px;"><font size="2" style="font-size: 16px;"> <span style="line-height: 1.5;"> </span></font><span style="background-color: rgba(0, 0, 0, 0); line-height: 1.5;"> </span><span style="line-height: 1.5; background-color: window;">--</span><span style="line-height: 1.5; background-color: window;">jbd2_journal_clear_err</span></div>
<div style="font-size: 16px;"><span style="background-color: rgba(0, 0, 0, 0);"> </span><span style="background-color: rgba(0, 0, 0, 0); line-height: 1.5;"> </span><span style="background-color: rgba(0, 0, 0, 0); line-height: 1.5;"> -- </span><span style="background-color: window;">jbd2_journal_update_sb_errno
--update sb_error</span></div>
<div style="font-size: 16px;"><span style="background-color: window;"><br>
</span></div>
<div><span style="font-size: 16px; line-height: 1.5; background-color: rgba(0, 0, 0, 0);"> </span><font style="font-size: 16px; line-height: 24px;">(mount.ocfs2,7417,38):ocfs2_clear_journal_error:1052 ERROR: File system error -5 recorded in journal 2.<br>
</font><span style="font-size: 16px; line-height: 24px; background-color: rgba(0, 0, 0, 0);"> </span><font style="font-size: 16px; line-height: 24px;">(mount.ocfs2,7417,38):ocfs2_clear_journal_error:1054 ERROR: File system on device dm-1 needs checking</font></div>
<div><span style="background-color: rgba(0, 0, 0, 0);"> </span></div>
<div><font size="3"><span style="background-color: rgb(255, 255, 255);"> Thanks.</span></font></div>
<div><br>
</div>
<hr style="width: 210px; height: 1px;" color="#b5c4df" size="1" align="left">
<div><span>
<div style="MARGIN: 10px; FONT-FAMILY: verdana; FONT-SIZE: 10pt">
<div>zhangguanghui</div>
</div>
</span></div>
<blockquote style="margin-top: 0px; margin-bottom: 0px; margin-left: 0.5em;">
<div>
<div class="FoxDiv20160401154409122594">
<p></p>
</div>
</div>
</blockquote>
<span style="font-size:7.5pt;font-family:华文细黑;color:gray"><span lang="EN-US">-------------------------------------------------------------------------------------------------------------------------------------<br>
</span>本邮件及其附件含有杭州华三通信技术有限公司的保密信息,仅限于发送给上面地址中列出<span lang="EN-US"><br>
</span>的个人或群组。禁止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、<span lang="EN-US"><br>
</span>或散发)本邮件中的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本<span lang="EN-US"><br>
</span>邮件!<span lang="EN-US"><br>
</span></span><span lang="EN-US" style="font-size:7.5pt;font-family:"Arial","sans-serif";color:gray">This e-mail and its attachments contain confidential information from H3C, which is
<br>
intended only for the person or entity whose address is listed above. Any use of the
<br>
information contained herein in any way (including, but not limited to, total or partial
<br>
disclosure, reproduction, or dissemination) by persons other than the intended <br>
recipient(s) is prohibited. If you receive this e-mail in error, please notify the sender
<br>
by phone or email immediately and delete it!</span>
</body>
</html>