<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:51:44 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>Whamcloud Community JIRA</title>
    <link>https://jira.whamcloud.com</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.4.14</version>
        <build-number>940014</build-number>
        <build-date>05-12-2023</build-date>
    </build-info>


<item>
            <title>[LU-5466] suspicious else statement in lfsck_del_target()</title>
                <link>https://jira.whamcloud.com/browse/LU-5466</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;@@ -2684,10 +2684,6 @@ void lfsck_del_target(&lt;span class=&quot;code-keyword&quot;&gt;const&lt;/span&gt; struct lu_en

 unlock:
        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (ltd == NULL) {
*               &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (for_ost)
*                       head = &amp;amp;lfsck-&amp;gt;li_ost_descs.ltd_orphan;
*               &lt;span class=&quot;code-keyword&quot;&gt;else&lt;/span&gt;
*                       head = &amp;amp;lfsck-&amp;gt;li_ost_descs.ltd_orphan;

                list_for_each_entry(ltd, head, ltd_orphan_list) {
                        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (ltd-&amp;gt;ltd_tgt == tgt) {
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Found by the coccinelle script:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;&lt;span class=&quot;code-comment&quot;&gt;// If branch and &lt;span class=&quot;code-keyword&quot;&gt;else&lt;/span&gt; branch have same statement.
&lt;/span&gt;&lt;span class=&quot;code-comment&quot;&gt;// Based on a coverity check mentioned in a blog post by Dave Jones.
&lt;/span&gt;
@@
statement S;
@@

* &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (...) S &lt;span class=&quot;code-keyword&quot;&gt;else&lt;/span&gt; S

&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="25925">LU-5466</key>
            <summary>suspicious else statement in lfsck_del_target()</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="4" iconUrl="https://jira.whamcloud.com/images/icons/priorities/minor.svg">Minor</priority>
                        <status id="5" iconUrl="https://jira.whamcloud.com/images/icons/statuses/resolved.png" description="A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">Resolved</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="1">Fixed</resolution>
                                        <assignee username="yong.fan">nasf</assignee>
                                    <reporter username="jhammond">John Hammond</reporter>
                        <labels>
                            <label>lfsck</label>
                    </labels>
                <created>Fri, 8 Aug 2014 15:02:15 +0000</created>
                <updated>Mon, 25 Aug 2014 23:19:02 +0000</updated>
                            <resolved>Mon, 25 Aug 2014 23:19:02 +0000</resolved>
                                    <version>Lustre 2.7.0</version>
                                    <fixVersion>Lustre 2.7.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="91194" author="rread" created="Fri, 8 Aug 2014 15:49:36 +0000"  >&lt;p&gt;That reminds me of something...&lt;/p&gt;</comment>
                            <comment id="91308" author="jlevi" created="Mon, 11 Aug 2014 17:23:50 +0000"  >&lt;p&gt;Fan Yong,&lt;br/&gt;
Can you please comment on this one?&lt;br/&gt;
Thank you!&lt;/p&gt;</comment>
                            <comment id="91348" author="yong.fan" created="Tue, 12 Aug 2014 00:01:08 +0000"  >&lt;p&gt;Here is the patch:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://review.whamcloud.com/11407&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/11407&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="92365" author="yong.fan" created="Mon, 25 Aug 2014 23:19:02 +0000"  >&lt;p&gt;The patch has been landed to master.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                            <customfield id="customfield_10890" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10390" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hzwt8v:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>15225</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10060" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Severity</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10022"><![CDATA[3]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        </customfields>
    </item>
</channel>
</rss>