<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:51:02 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-12262] Improve sbi_flags checking</title>
                <link>https://jira.whamcloud.com/browse/LU-12262</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;In &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11930&quot; title=&quot;sbi_flags printing broke&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-11930&quot;&gt;&lt;del&gt;LU-11930&lt;/del&gt;&lt;/a&gt;, Oleg described a problem with printing sbi_flags:&lt;br/&gt;
&apos;&lt;/p&gt;

&lt;p&gt;Nowadays if we do get_param on lustre-....sbi_flags we get back:&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;error: get_param: reading &apos;llite.lustre-ffff88009a0ca800.sbi_flags&apos;: Invalid argument
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;and then in the kernel&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;[  788.311079] LustreError: 10351:0:(lproc_llite.c:967:ll_sbi_flags_seq_show()) lustre: Revise array LL_SBI_FLAGS to match sbi flags please.
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;The result is of course every test that checks feature flags is now not finding anything it&apos;s looking for and skips. in particular al layoutswaps (test 184*) and a bunch of other stuff is now in perma-skip mode.&lt;/p&gt;

&lt;p&gt;This was broken in&#160;&lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11825&quot; title=&quot;Remove LU-8964/pio feature &amp;amp; supporting framework&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-11825&quot;&gt;&lt;del&gt;LU-11825&lt;/del&gt;&lt;/a&gt;&#160;&lt;a href=&quot;https://review.whamcloud.com/33912&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/33912&lt;/a&gt;&#160;it appears by removing a flag from LL_SBI_FLAGS which is something that should NEVER be done.&lt;/p&gt;

&lt;p&gt;Also I think we ned to convert that error message into an assertion.&lt;/p&gt;

&lt;p&gt;Problems like here we&apos;d catch sooner and if some client has some flags set incorrectly we are probably ok panicking there as well as there&apos;s clearly some unexpected memory corruption or whatnot going on?&quot;&lt;/p&gt;

&lt;p&gt;This ticket is to capture his suggestions at the end, to improve checking so we can&apos;t accidentally remove a flag like this in the future.&lt;/p&gt;</description>
                <environment></environment>
        <key id="55556">LU-12262</key>
            <summary>Improve sbi_flags checking</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="simmonsja">James A Simmons</assignee>
                                    <reporter username="pfarrell">Patrick Farrell</reporter>
                        <labels>
                    </labels>
                <created>Wed, 1 May 2019 19:21:14 +0000</created>
                <updated>Sun, 10 Oct 2021 13:43:04 +0000</updated>
                            <resolved>Sun, 10 Oct 2021 13:43:04 +0000</resolved>
                                    <version>Lustre 2.13.0</version>
                                    <fixVersion>Lustre 2.15.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                            <comments>
                            <comment id="257298" author="adilger" created="Tue, 29 Oct 2019 22:36:13 +0000"  >&lt;p&gt;It looks like this was fixed in patch &lt;a href=&quot;https://review.whamcloud.com/34187&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/34187&lt;/a&gt; &quot;&lt;tt&gt;&lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11930&quot; title=&quot;sbi_flags printing broke&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-11930&quot;&gt;&lt;del&gt;LU-11930&lt;/del&gt;&lt;/a&gt; llite: Restore pio flags&lt;/tt&gt;&quot;.&lt;/p&gt;</comment>
                            <comment id="257299" author="adilger" created="Tue, 29 Oct 2019 22:40:47 +0000"  >&lt;p&gt;Note that the actual &lt;tt&gt;LL&amp;#95;SBI&amp;#95;&amp;#42;&lt;/tt&gt; values are &lt;b&gt;not&lt;/b&gt; exposed outside of the &lt;tt&gt;lustre/llite&lt;/tt&gt; code.  The real bug was that a flag value was removed, and the corresponding line in the &lt;tt&gt;LL_SBI_FLAGS&lt;/tt&gt; array was also removed, but &lt;tt&gt;LL_SBI_FLAGS&lt;/tt&gt; needs to be a contiguous array in &lt;tt&gt;LL&amp;#95;SBI&amp;#95;&amp;#42;&lt;/tt&gt; order.&lt;/p&gt;</comment>
                            <comment id="257301" author="simmonsja" created="Wed, 30 Oct 2019 00:57:04 +0000"  >&lt;p&gt;I think Patrick was trying to prevent the lose of your idea:&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;enum ll_sbi_flags {
 LL_SBI_NOLCK, /* DLM locking disabled (O_DIRECT only) */
 :
 :
 LL_SBI_TINY_WRITE, /* tiny write support */
 LL_SBI_LAST /* sentinel at end of list */
 };

 #define LL_SBI_FLAGS { \
 [LL_SBI_NOLCK] = &quot;nolck&quot;, \
 [LL_SBI_CHECKSUM] = &quot;checksum&quot;, \
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&#160;&lt;br/&gt;
It&apos;s just no one got around to it.&lt;/p&gt;</comment>
                            <comment id="303076" author="adilger" created="Sat, 29 May 2021 22:34:01 +0000"  >&lt;p&gt;Andreas Dilger (adilger@whamcloud.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/43871&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/43871&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-12262&quot; title=&quot;Improve sbi_flags checking&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-12262&quot;&gt;&lt;del&gt;LU-12262&lt;/del&gt;&lt;/a&gt; llite: improve ll_sbi_flags_seq_show()&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 2&lt;br/&gt;
Commit: d6c0836e03f07c2c7bed3cf7173fa8a29e00ebe6&lt;/p&gt;</comment>
                            <comment id="309709" author="gerrit" created="Tue, 10 Aug 2021 00:30:43 +0000"  >&lt;p&gt;&quot;James Simmons &amp;lt;jsimmons@infradead.org&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/44541&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/44541&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-12262&quot; title=&quot;Improve sbi_flags checking&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-12262&quot;&gt;&lt;del&gt;LU-12262&lt;/del&gt;&lt;/a&gt; llite: harden ll_sbi ll_flags&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 235a51483680d88c9467cb8e868a4bf1065a802f&lt;/p&gt;</comment>
                            <comment id="315130" author="gerrit" created="Sun, 10 Oct 2021 03:31:33 +0000"  >&lt;p&gt;&quot;Oleg Drokin &amp;lt;green@whamcloud.com&amp;gt;&quot; merged in patch &lt;a href=&quot;https://review.whamcloud.com/44541/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/44541/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-12262&quot; title=&quot;Improve sbi_flags checking&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-12262&quot;&gt;&lt;del&gt;LU-12262&lt;/del&gt;&lt;/a&gt; llite: harden ll_sbi ll_flags&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 47e6f6abdacd6a3c1fdb320b4c9c331c0f493cce&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="54785">LU-11930</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="54395">LU-11825</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="51963">LU-10948</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </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|i00frr:</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>