<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:10:14 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-14493] return only existing objects from mdt_object_find()</title>
                <link>https://jira.whamcloud.com/browse/LU-14493</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;In &lt;b&gt;almost&lt;/b&gt; every place where we call &lt;tt&gt;mdt_object_find()&lt;/tt&gt; we expect that the object exists. So lets check &lt;tt&gt;mdt_object_exists()&lt;/tt&gt; before returning from &lt;tt&gt;mdt_object_find()&lt;/tt&gt; and return &lt;tt&gt;ERR_PTR(-ENOENT)&lt;/tt&gt; if it doesn&apos;t.&lt;/p&gt;

&lt;p&gt;For the few remaining cases where it&apos;s OK for the object not to exist. We should have a new function. This save typing and prevent failed &lt;tt&gt;ASSERTION( ((o)&lt;del&gt;&amp;gt;lo_header&lt;/del&gt;&amp;gt;loh_attr &amp;amp; LOHA_EXISTS) != 0 )&lt;/tt&gt; assertions in places where people forgot to check if the object exists before calling &lt;tt&gt;lu_object_attr()&lt;/tt&gt;.&lt;/p&gt;

&lt;p&gt;One way to do this would be to rename &lt;tt&gt;mdt_object_find()&lt;/tt&gt; to &lt;tt&gt;mdt_object_find_nx()&lt;/tt&gt; and then create a new &lt;tt&gt;mdt_object_find()&lt;/tt&gt; that calls &lt;tt&gt;mdt_object_find_nx()&lt;/tt&gt;, does the check, returns existing objects, puts non-existing objects, and returns appropriately.&lt;/p&gt;</description>
                <environment></environment>
        <key id="63214">LU-14493</key>
            <summary>return only existing objects from mdt_object_find()</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="1" iconUrl="https://jira.whamcloud.com/images/icons/statuses/open.png" description="The issue is open and ready for the assignee to start work on it.">Open</status>
                    <statusCategory id="2" key="new" colorName="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="tappro">Mikhail Pershin</assignee>
                                    <reporter username="jhammond">John Hammond</reporter>
                        <labels>
                    </labels>
                <created>Fri, 5 Mar 2021 18:43:37 +0000</created>
                <updated>Tue, 30 Mar 2021 19:11:01 +0000</updated>
                                                                                <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="294118" author="jhammond" created="Fri, 5 Mar 2021 18:44:06 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.whamcloud.com/secure/ViewProfile.jspa?name=tappro&quot; class=&quot;user-hover&quot; rel=&quot;tappro&quot;&gt;tappro&lt;/a&gt; can you take a look at this?&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                                        </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="63215">LU-14494</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <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|i01oof:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</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>