<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:04:33 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-13826] fix compatibility for LL_IOC_MDC_GETINFO</title>
                <link>https://jira.whamcloud.com/browse/LU-13826</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;In master the &lt;tt&gt;LL_IOC_MDC_GETINFO&lt;/tt&gt; definition changed when patch &lt;a href=&quot;https://review.whamcloud.com/36674&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/36674&lt;/a&gt; &quot;&lt;tt&gt;&lt;a href=&quot;https://jira.whamcloud.com/browse/LU-10934&quot; title=&quot;integrate statx() API with Lustre&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-10934&quot;&gt;&lt;del&gt;LU-10934&lt;/del&gt;&lt;/a&gt; llite: integrate statx() API with Lustre&lt;/tt&gt;&quot; landed:&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;
b2_10$ git grep &lt;span class=&quot;code-quote&quot;&gt;&apos;#define LL_IOC_MDC_GETINFO&apos;&lt;/span&gt;
master:lustre/include/lustre/lustre_user.h:#define LL_IOC_MDC_GETINFO      _IOWR(IOC_MDC_TYPE, 23, struct lov_user_mds_data *)
master$ git grep &lt;span class=&quot;code-quote&quot;&gt;&apos;#define LL_IOC_MDC_GETINFO&apos;&lt;/span&gt; 
lustre/include/uapi/linux/lustre/lustre_user.h:#define LL_IOC_MDC_GETINFO_OLD	_IOWR(IOC_MDC_TYPE, 23, struct lov_user_mds_data_v1 *)
lustre/include/uapi/linux/lustre/lustre_user.h:#define LL_IOC_MDC_GETINFO	_IOWR(IOC_MDC_TYPE, 23, struct lov_user_mds_data)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Which is obviously bad. It&apos;s also subtly bad in that the second ioctl depends on how lov_user_mds_data is defined, and it contains a different struct statx with different field names, so while the IOC numbers/structs are ABI compatible, it is not API compatible and applications using this header will break.  For added confusion, this changed in 2.12.4 vs. 2.12.3. If we add a newer structure and update the definition as we have then should definition of LL_IOC_MDC_GETINFO change as well?&lt;/p&gt;

&lt;p&gt;The suggestion is that we do:&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;
#define LL_IOC_MDC_GETINFO_V1 _IOWR(IOC_MDC_TYPE, 23, struct lov_user_mds_data_v1 *)
#define LL_IOC_MDC_GETINFO_V2 _IOWR(IOC_MDC_TYPE, 23, struct lov_user_mds_data_v2)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;in master and b2_12. Then we can use the explicitly versioned constants everywhere for the in-tree code, and declare LL_IOC_MDC_GETINFO in a compatible way, but external applications can select the version that they want explicitly.&lt;/p&gt;</description>
                <environment></environment>
        <key id="60168">LU-13826</key>
            <summary>fix compatibility for LL_IOC_MDC_GETINFO</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="qian_wc">Qian Yingjin</assignee>
                                    <reporter username="adilger">Andreas Dilger</reporter>
                        <labels>
                    </labels>
                <created>Tue, 28 Jul 2020 23:03:15 +0000</created>
                <updated>Wed, 9 Dec 2020 18:59:25 +0000</updated>
                            <resolved>Wed, 9 Dec 2020 18:59:25 +0000</resolved>
                                    <version>Lustre 2.14.0</version>
                    <version>Lustre 2.12.6</version>
                                    <fixVersion>Lustre 2.14.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                            <comments>
                            <comment id="276252" author="adilger" created="Tue, 28 Jul 2020 23:48:22 +0000"  >&lt;p&gt;Alternately, applications could/should use &lt;tt&gt;llapi_get_lum_file_fd(3)&lt;/tt&gt; or &lt;tt&gt;llapi_get_lum_dir_fd(3)&lt;/tt&gt; (added in 2.12.4 and 2.13) to avoid the low-level details of the ioctl interface.&lt;/p&gt;</comment>
                            <comment id="286699" author="gerrit" created="Fri, 4 Dec 2020 02:54:17 +0000"  >&lt;p&gt;Yingjin Qian (qian@ddn.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/40858&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/40858&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-13826&quot; title=&quot;fix compatibility for LL_IOC_MDC_GETINFO&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-13826&quot;&gt;&lt;del&gt;LU-13826&lt;/del&gt;&lt;/a&gt; utils: fix compatibility for LL_IOC_MDC_GETINFO&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 26bf875db85e27cddfadf0c08ec26491166f62d7&lt;/p&gt;</comment>
                            <comment id="287114" author="gerrit" created="Wed, 9 Dec 2020 17:39:42 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/40858/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/40858/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-13826&quot; title=&quot;fix compatibility for LL_IOC_MDC_GETINFO&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-13826&quot;&gt;&lt;del&gt;LU-13826&lt;/del&gt;&lt;/a&gt; utils: fix compatibility for LL_IOC_MDC_GETINFO&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 449c648793d2fc4e8eee3a2dd918379b75cc81e2&lt;/p&gt;</comment>
                            <comment id="287140" author="pjones" created="Wed, 9 Dec 2020 18:59:25 +0000"  >&lt;p&gt;Landed for 2.14&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="53281">LU-11367</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="51920">LU-10934</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                                        </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|i016ef:</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>