<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:01:04 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-6536] lum-&gt;lmm_stripe_count used unswabbed in llapi_layout_get_by_fd()</title>
                <link>https://jira.whamcloud.com/browse/LU-6536</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;&lt;tt&gt;llapi_layout_get_by_fd()&lt;/tt&gt; contains this code which uses &lt;tt&gt;lmm_stripe_count&lt;/tt&gt; without first checking if the &lt;tt&gt;lov_user_md&lt;/tt&gt; needs to be byte-swapped. This causes a false error on PowerPC clients.&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; (!S_ISDIR(st.st_mode) &amp;amp;&amp;amp; object_count != lum-&amp;gt;lmm_stripe_count) {
                errno = EINTR;
                &lt;span class=&quot;code-keyword&quot;&gt;goto&lt;/span&gt; out;
        }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="29761">LU-6536</key>
            <summary>lum-&gt;lmm_stripe_count used unswabbed in llapi_layout_get_by_fd()</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.whamcloud.com/images/icons/priorities/major.svg">Major</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="emoly.liu">Emoly Liu</assignee>
                                    <reporter username="nedbass">Ned Bass</reporter>
                        <labels>
                            <label>patch</label>
                    </labels>
                <created>Tue, 28 Apr 2015 18:19:08 +0000</created>
                <updated>Tue, 1 Sep 2015 21:12:19 +0000</updated>
                            <resolved>Tue, 7 Jul 2015 11:50:17 +0000</resolved>
                                                    <fixVersion>Lustre 2.8.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                            <comments>
                            <comment id="113660" author="gerrit" created="Tue, 28 Apr 2015 18:20:19 +0000"  >&lt;p&gt;Ned Bass (bass6@llnl.gov) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/14633&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/14633&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-6536&quot; title=&quot;lum-&amp;gt;lmm_stripe_count used unswabbed in llapi_layout_get_by_fd()&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-6536&quot;&gt;&lt;del&gt;LU-6536&lt;/del&gt;&lt;/a&gt; llapi: lmm_stripe_count used unswabbed&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 325652177c8a7365943b792dde77afdc7759c987&lt;/p&gt;</comment>
                            <comment id="113793" author="green" created="Wed, 29 Apr 2015 18:18:00 +0000"  >&lt;p&gt;HM, it&apos;s eally strange we don&apos;t do all theswabbing in the kernel and need to ask userspace to do it too.&lt;/p&gt;

&lt;p&gt;Is this all that wise? Should we onvert to all-in-kernel swabbing?&lt;/p&gt;</comment>
                            <comment id="113794" author="nedbass" created="Wed, 29 Apr 2015 18:33:09 +0000"  >&lt;p&gt;Hi Oleg.  The kernel swabs the &lt;tt&gt;lustre_user_md&lt;/tt&gt; through the &lt;tt&gt;ioctl()&lt;/tt&gt; interface but not &lt;tt&gt;getxattr()&lt;/tt&gt;.  The &lt;tt&gt;llapi_layout&lt;/tt&gt; library functions use &lt;tt&gt;getxattr()&lt;/tt&gt; to accommodate function shipping platforms that don&apos;t grok the ioctls. I recall discussing this behavior at length with John Hammond and we settled on things as they stand today.  I&apos;ll have to dig up that discussion. I forget which Jira issue or gerrit review it happened in.&lt;/p&gt;</comment>
                            <comment id="113795" author="green" created="Wed, 29 Apr 2015 18:37:16 +0000"  >&lt;p&gt;Ah, for xattr interface I agree we have no business changing anything&lt;/p&gt;</comment>
                            <comment id="113796" author="nedbass" created="Wed, 29 Apr 2015 18:41:07 +0000"  >&lt;p&gt;Oleg, see the review comments here &lt;a href=&quot;http://review.whamcloud.com/#/c/5737/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/5737/&lt;/a&gt;. The caveat for byte swapping through getxattr() is that setxattr() would have to accept LUM data in either endianness to avoid breaking tar.  We decided not to go that route.&lt;/p&gt;</comment>
                            <comment id="114674" author="gerrit" created="Thu, 7 May 2015 23:18:59 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;http://review.whamcloud.com/14633/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/14633/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-6536&quot; title=&quot;lum-&amp;gt;lmm_stripe_count used unswabbed in llapi_layout_get_by_fd()&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-6536&quot;&gt;&lt;del&gt;LU-6536&lt;/del&gt;&lt;/a&gt; llapi: lmm_stripe_count used unswabbed&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 3742646beeb658f321745f5c275836879b9d077d&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="17913">LU-2973</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|hzxc13:</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>
                                                                                                                                                                                                                                                                                                                                                                                                                </customfields>
    </item>
</channel>
</rss>