<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:30:18 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-3023] Fix fuzzy logic in get_root_path()</title>
                <link>https://jira.whamcloud.com/browse/LU-3023</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;While analyzing the Lustre code with Coverity, we found an incorrect logic in the get_root_path() function.&lt;/p&gt;

&lt;p&gt;Here is Andreas&apos; comment from &lt;a href=&quot;http://review.whamcloud.com/#patch,sidebyside,5271,5,lustre/utils/liblustreapi.c:&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#patch,sidebyside,5271,5,lustre/utils/liblustreapi.c:&lt;/a&gt;&lt;br/&gt;
&quot;In that case, why have the &quot;if (!ptr&quot; check above? Probably Coverity is confused that ptr is checked against NULL above, but can fall through in the &quot;len != 0&quot; case and dereference the NULL ptr.&lt;/p&gt;

&lt;p&gt;I suspect the reader and coverity would be happier if there was &quot;LASSERT(ptr != NULL)&quot; after strrchr(), though definitely your comment clearly explains why this LASSERT() would be true, and it should be kept.&lt;/p&gt;

&lt;p&gt;Code style says this should have been &quot;if (ptr == NULL &amp;amp;&amp;amp; len == 0)&quot;. This makes me wonder about the above check as well. Why should the scanning be aborted if (len == 0) (i.e. no other mountpoint is found)? Since IMHO it should just continue on, and ptr is never NULL, I think the above check and -EINVAL could just be removed, perhaps in a separate patch.&quot;&lt;/p&gt;

&lt;p&gt;I will propose a patch to address remark from Andreas.&lt;/p&gt;</description>
                <environment></environment>
        <key id="18080">LU-3023</key>
            <summary>Fix fuzzy logic in get_root_path()</summary>
                <type id="3" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11318&amp;avatarType=issuetype">Task</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="jamesanunez">James Nunez</assignee>
                                    <reporter username="sebastien.buisson">Sebastien Buisson</reporter>
                        <labels>
                            <label>coverity</label>
                            <label>patch</label>
                    </labels>
                <created>Mon, 25 Mar 2013 13:50:43 +0000</created>
                <updated>Wed, 26 Mar 2014 13:38:30 +0000</updated>
                            <resolved>Fri, 3 May 2013 14:39:26 +0000</resolved>
                                    <version>Lustre 2.4.0</version>
                                    <fixVersion>Lustre 2.4.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="54752" author="sebastien.buisson" created="Mon, 25 Mar 2013 13:59:10 +0000"  >&lt;p&gt;The patch is at:&lt;br/&gt;
&lt;a href=&quot;http://review.whamcloud.com/5832&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/5832&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Sebastien.&lt;/p&gt;</comment>
                            <comment id="54795" author="pjones" created="Mon, 25 Mar 2013 20:27:49 +0000"  >&lt;p&gt;James&lt;/p&gt;

&lt;p&gt;Could you please take care of this one?&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;

&lt;p&gt;Peter&lt;/p&gt;</comment>
                            <comment id="57635" author="jamesanunez" created="Fri, 3 May 2013 14:39:26 +0000"  >&lt;p&gt;Landed for 2.4&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|hzvm2v:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>7360</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                </customfields>
    </item>
</channel>
</rss>