<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:27: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-2681] need to handle lsr_flags having other flags set</title>
                <link>https://jira.whamcloud.com/browse/LU-2681</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;The &quot;lsr_flags&quot; field is currently treated as if it only held LU_SEQ_RANGE_MDT or LU_SEQ_RANGE_OST values.  These cannot purely be treated as flags, since LU_SEQ_RANGE_MDT = 0 for compatibility reasons.&lt;/p&gt;

&lt;p&gt;If the lsr_flags field ever gets other flags in the future, then checks using &quot;==&quot; instead of &quot;&amp;amp;&quot; will fail, for example:&lt;/p&gt;

&lt;p&gt;lustre/osd-zfs/osd_oi.c:266&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-keyword&quot;&gt;if&lt;/span&gt; (range-&amp;gt;lsr_flags == LU_SEQ_RANGE_OST)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;A similar &quot;==&quot; check is made in fld_server_lookup().&lt;/p&gt;

&lt;p&gt;Probably an LU_SEQ_RANGE_TYPE = 1 mask should be created, and then helper function can be created to check the type:&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;unsigned fld_range_type(struct lu_seq_range *range)
{
         &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; range-&amp;gt;lsr_flags &amp;amp; LU_SEQ_RANGE_TYPE;
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;and it can be used like:&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-keyword&quot;&gt;if&lt;/span&gt; (fld_range_type(range) == LU_SEQ_RANGE_OST)
or
        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (fld_range_type(range) == LU_SEQ_RANGE_MDT)
or
        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (fld_range_type(erange) == fld_range_type(range))
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="17312">LU-2681</key>
            <summary>need to handle lsr_flags having other flags set</summary>
                <type id="7" iconUrl="https://jira.whamcloud.com/images/icons/issuetypes/task_agile.png">Technical task</type>
                            <parent id="13443">LU-1185</parent>
                                    <priority id="1" iconUrl="https://jira.whamcloud.com/images/icons/priorities/blocker.svg">Blocker</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="di.wang">Di Wang</assignee>
                                    <reporter username="adilger">Andreas Dilger</reporter>
                        <labels>
                            <label>MB</label>
                    </labels>
                <created>Fri, 25 Jan 2013 18:06:49 +0000</created>
                <updated>Thu, 11 Apr 2013 19:45:01 +0000</updated>
                            <resolved>Thu, 11 Apr 2013 19:45:01 +0000</resolved>
                                    <version>Lustre 2.4.0</version>
                                    <fixVersion>Lustre 2.4.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                            <comments>
                            <comment id="53316" author="di.wang" created="Tue, 5 Mar 2013 03:26:51 +0000"  >&lt;p&gt; &lt;a href=&quot;http://review.whamcloud.com/5589&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/5589&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="55798" author="adilger" created="Mon, 8 Apr 2013 19:56:28 +0000"  >&lt;p&gt;Di, to confirm, is the change for LU_SEQ_RANGE_ALL (or LU_SEQ_RANGE_ANY) part of the wire protocol, or is this only for local FLD queries?&lt;/p&gt;</comment>
                            <comment id="55803" author="di.wang" created="Mon, 8 Apr 2013 21:34:47 +0000"  >&lt;p&gt;This is part of wire protocol, client seq check will also need pack this RANGE_ALL(RANGE_ANY)flags.&lt;/p&gt;</comment>
                            <comment id="56036" author="adilger" created="Wed, 10 Apr 2013 18:02:48 +0000"  >&lt;p&gt;New version of patch is at &lt;a href=&quot;http://review.whamcloud.com/5999&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/5999&lt;/a&gt;, 5589 is abandoned.&lt;/p&gt;</comment>
                            <comment id="56135" author="pjones" created="Thu, 11 Apr 2013 19:45:01 +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|hzvg6f:</customfieldvalue>

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