<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:37:13 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-3825] mdt_hsm_release() clobbers ma_valid</title>
                <link>https://jira.whamcloud.com/browse/LU-3825</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;In mdt_hsm_release() we have:&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;        ma-&amp;gt;ma_need = MA_HSM | MA_LOV;
        rc = mdt_attr_get_complex(info, o, ma);
        if (rc != 0)
                GOTO(out_unlock, rc);

        ...

        ma-&amp;gt;ma_valid = MA_INODE;
        ma-&amp;gt;ma_attr.la_valid &amp;amp;= LA_SIZE | LA_MTIME | LA_ATIME;
        rc = mo_attr_set(info-&amp;gt;mti_env, mdt_object_child(o), ma);
        if (rc &amp;lt; 0)
                GOTO(out_unlock, rc);

        if (!(ma-&amp;gt;ma_valid &amp;amp; MA_LOV)) {
                /* Even empty file are released */
                memset(ma-&amp;gt;ma_lmm, 0, sizeof(*ma-&amp;gt;ma_lmm));
                ma-&amp;gt;ma_lmm-&amp;gt;lmm_magic = cpu_to_le32(LOV_MAGIC_V1_DEF);
                ma-&amp;gt;ma_lmm-&amp;gt;lmm_pattern = cpu_to_le32(LOV_PATTERN_RAID0);
		ma-&amp;gt;ma_lmm-&amp;gt;lmm_stripe_size = cpu_to_le32(LOV_MIN_STRIPE_SIZE);
                ma-&amp;gt;ma_valid |= MA_LOV;
        } else {
                /* Magic must be LOV_MAGIC_Vx_DEF otherwise LOD will interpret            
                 * ma_lmm as lov_user_md, then it will be confused by union of            
                 * layout_gen and stripe_offset. */
                if (le32_to_cpu(ma-&amp;gt;ma_lmm-&amp;gt;lmm_magic) == LOV_MAGIC_V1)
                        ma-&amp;gt;ma_lmm-&amp;gt;lmm_magic = cpu_to_le32(LOV_MAGIC_V1_DEF);
		else if (le32_to_cpu(ma-&amp;gt;ma_lmm-&amp;gt;lmm_magic) == LOV_MAGIC_V3)
                        ma-&amp;gt;ma_lmm-&amp;gt;lmm_magic = cpu_to_le32(LOV_MAGIC_V3_DEF);
                else
                        GOTO(out_unlock, rc = -EINVAL);
        }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="20565">LU-3825</key>
            <summary>mdt_hsm_release() clobbers ma_valid</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="6" iconUrl="https://jira.whamcloud.com/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="3">Duplicate</resolution>
                                        <assignee username="jhammond">John Hammond</assignee>
                                    <reporter username="jhammond">John Hammond</reporter>
                        <labels>
                            <label>HSM</label>
                    </labels>
                <created>Thu, 22 Aug 2013 15:02:12 +0000</created>
                <updated>Mon, 21 Oct 2013 22:24:06 +0000</updated>
                            <resolved>Mon, 21 Oct 2013 22:24:06 +0000</resolved>
                                    <version>Lustre 2.5.0</version>
                                                        <due></due>
                            <votes>0</votes>
                                    <watches>7</watches>
                                                                            <comments>
                            <comment id="64961" author="adilger" created="Fri, 23 Aug 2013 16:23:47 +0000"  >&lt;p&gt;Alex, Di, can you please comment on this?&lt;/p&gt;</comment>
                            <comment id="65152" author="jhammond" created="Tue, 27 Aug 2013 13:05:20 +0000"  >&lt;p&gt;This is addressed in &lt;a href=&quot;http://review.whamcloud.com/7461&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/7461&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="65213" author="jcl" created="Tue, 27 Aug 2013 22:13:46 +0000"  >&lt;p&gt;7461 is for another ticket. Do you confirm you merge the 2 tickets?&lt;/p&gt;</comment>
                            <comment id="65216" author="jhammond" created="Tue, 27 Aug 2013 22:40:44 +0000"  >&lt;p&gt;Yes.&lt;/p&gt;</comment>
                            <comment id="68511" author="jlevi" created="Mon, 7 Oct 2013 17:22:38 +0000"  >&lt;p&gt;Patch has landed to Master.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="20544">LU-3811</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|hzvyy7:</customfieldvalue>

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