<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:08:41 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-14316] lfs: using old ioctl(LL_IOC_LOV_GETSTRIPE), use llapi_layout_get_by_path()</title>
                <link>https://jira.whamcloud.com/browse/LU-14316</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;The first time &quot;&lt;tt&gt;lfs setstripe&lt;/tt&gt;&quot; is used after mount, there is always a message printed on the console:&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;Lustre: lfs: using old ioctl(LL_IOC_LOV_GETSTRIPE) on [0x200000402:0x2:0x0], use llapi_layout_get_by_path()
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;We shouldn&apos;t be using an old interface that prints a warning message for a standard command.&lt;/p&gt;

&lt;p&gt;I haven&apos;t totally tracked down the callpath(s) that generate this message, but it is probably from the &lt;tt&gt;ll_file_getstripe()&lt;/tt&gt; at the end of &lt;tt&gt;ll_lov_setstripe()&lt;/tt&gt;.&lt;/p&gt;

&lt;p&gt;It may be enough to not print the message if &lt;tt&gt;size != 0&lt;/tt&gt;, and pass the size of the ioctl buffer by getting it via &lt;tt&gt;_IOC_SIZE(cmd)&lt;/tt&gt; when &lt;tt&gt;LL_IOC_LOV_GETSTRIPE_NEW&lt;/tt&gt; is called, and start using &lt;tt&gt;LL_IOC_LOV_GETSTRIPE_NEW&lt;/tt&gt; from &lt;tt&gt;lfs.c&lt;/tt&gt;? &lt;/p&gt;</description>
                <environment></environment>
        <key id="62293">LU-14316</key>
            <summary>lfs: using old ioctl(LL_IOC_LOV_GETSTRIPE), use llapi_layout_get_by_path()</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="1" iconUrl="https://jira.whamcloud.com/images/icons/statuses/open.png" description="The issue is open and ready for the assignee to start work on it.">Open</status>
                    <statusCategory id="2" key="new" colorName="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="wc-triage">WC Triage</assignee>
                                    <reporter username="adilger">Andreas Dilger</reporter>
                        <labels>
                    </labels>
                <created>Sun, 10 Jan 2021 20:55:28 +0000</created>
                <updated>Wed, 13 Apr 2022 05:10:15 +0000</updated>
                                                                                <due></due>
                            <votes>0</votes>
                                    <watches>6</watches>
                                                                            <comments>
                            <comment id="289188" author="jhammond" created="Mon, 11 Jan 2021 14:57:32 +0000"  >&lt;p&gt;&amp;gt; I haven&apos;t totally tracked down the callpath(s) that generate this message, but it is probably from the &lt;tt&gt;ll_file_getstripe()&lt;/tt&gt; at the end of &lt;tt&gt;ll_lov_setstripe()&lt;/tt&gt;.&lt;/p&gt;

&lt;p&gt;Correctamundo.&lt;/p&gt;

&lt;p&gt;I think we should remove the message. Printing to the dmesg it is unlikely to have the intended effect on ADIO.&lt;/p&gt;

&lt;p&gt;I&apos;m not sure if I follow what you mean about &lt;tt&gt;_IOC_SIZE(cmd)&lt;/tt&gt;. For &lt;tt&gt;_IOC_SIZE(LL_IOC_LOV_GETSTRIPE) == sizeof(long)&lt;/tt&gt; and &lt;tt&gt;_IOC_SIZE(LL_IOC_LOV_GETSTRIPE_NEW) == sizeof(struct lov_user_md)&lt;/tt&gt;.&lt;/p&gt;

&lt;p&gt;Note that we should avoid naming new things &lt;tt&gt;BLAH_BLAH_NEW&lt;/tt&gt; and call them &lt;tt&gt;BLAH_BLAH_v2&lt;/tt&gt; instead. (And definitely avoid renaming things from &lt;tt&gt;BLAH_BLAH&lt;/tt&gt; to &lt;tt&gt;BLAH_BLAH_OLD&lt;/tt&gt;.)  We should also not depend on #defined types like &lt;tt&gt;lov_user_md&lt;/tt&gt; when defining ioctls. Since if we change &lt;tt&gt;lov_user_md&lt;/tt&gt; then the ioctl silently changes. (I&apos;m not convinced that we would notice right away if we did that.) &lt;tt&gt;LL_IOC_LOV_GETSTRIPE_NEW&lt;/tt&gt; should be defined using &lt;tt&gt;struct lov_used_md_v1&lt;/tt&gt; explicitly.&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;LL_IOC_LOV_GETSTRIPE_NEW&lt;/tt&gt; and &lt;tt&gt;LL_IOC_LOV_SETSTRIPE_NEW&lt;/tt&gt; are not used in our utilities. I don&apos;t think we have ever defined how large the buffer should actually be. We could just declare now that the buffer should be 65536 bytes.&lt;/p&gt;

&lt;p&gt;One good simplification would be to stop calling &lt;tt&gt;ll_file_getstripe()&lt;/tt&gt; at the end of &lt;tt&gt;ll_lov_setstripe()&lt;/tt&gt;. I think we did this before and then undid it. Perhaps we could do this whenever &lt;tt&gt;LL_IOC_LOV_SETSTRIPE_NEW&lt;/tt&gt; is used and switch lfs and llapi to using &lt;tt&gt;LL_IOC_LOV_SETSTRIPE_NEW&lt;/tt&gt;.&lt;/p&gt;</comment>
                            <comment id="291021" author="gerrit" created="Tue, 2 Feb 2021 21:50:59 +0000"  >&lt;p&gt;&lt;del&gt;Andreas Dilger (adilger@whamcloud.com) uploaded a new patch:&lt;/del&gt; &lt;a href=&quot;https://review.whamcloud.com/41400&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/41400&lt;/a&gt;&lt;br/&gt;
&lt;del&gt;Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14316&quot; title=&quot;lfs: using old ioctl(LL_IOC_LOV_GETSTRIPE), use llapi_layout_get_by_path()&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14316&quot;&gt;LU-14316&lt;/a&gt; llite: quiet spurious ioctl warning&lt;/del&gt;&lt;br/&gt;
&lt;del&gt;Project: fs/lustre-release&lt;/del&gt;&lt;br/&gt;
&lt;del&gt;Branch: master&lt;/del&gt;&lt;br/&gt;
&lt;del&gt;Current Patch Set: 1&lt;/del&gt;&lt;br/&gt;
&lt;del&gt;Commit: 0d61d6e47cb36e1a245f432090258709f067de90&lt;/del&gt;&lt;/p&gt;</comment>
                            <comment id="291369" author="gerrit" created="Fri, 5 Feb 2021 20:47:12 +0000"  >&lt;p&gt;Andreas Dilger (adilger@whamcloud.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/41427&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/41427&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14316&quot; title=&quot;lfs: using old ioctl(LL_IOC_LOV_GETSTRIPE), use llapi_layout_get_by_path()&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14316&quot;&gt;LU-14316&lt;/a&gt; llite: quiet spurious ioctl warning&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: fb9acd3f3598f84550f66efd2b4f38643bc5ca4e&lt;/p&gt;</comment>
                            <comment id="291463" author="gerrit" created="Mon, 8 Feb 2021 21:55:41 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/41427/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/41427/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14316&quot; title=&quot;lfs: using old ioctl(LL_IOC_LOV_GETSTRIPE), use llapi_layout_get_by_path()&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14316&quot;&gt;LU-14316&lt;/a&gt; llite: quiet spurious ioctl warning&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: c6f65d8af116476d4fa62604a90b2e0d657b29b2&lt;/p&gt;</comment>
                            <comment id="296657" author="gerrit" created="Thu, 25 Mar 2021 00:37:41 +0000"  >&lt;p&gt;Olaf Faaland-LLNL (faaland1@llnl.gov) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/43103&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/43103&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14316&quot; title=&quot;lfs: using old ioctl(LL_IOC_LOV_GETSTRIPE), use llapi_layout_get_by_path()&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14316&quot;&gt;LU-14316&lt;/a&gt; llite: quiet spurious ioctl warning&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_12&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 2e1b067db71b3d75b635e988592b67b4835b3f2a&lt;/p&gt;</comment>
                            <comment id="300615" author="gerrit" created="Wed, 5 May 2021 21:23:16 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/43103/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/43103/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14316&quot; title=&quot;lfs: using old ioctl(LL_IOC_LOV_GETSTRIPE), use llapi_layout_get_by_path()&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14316&quot;&gt;LU-14316&lt;/a&gt; llite: quiet spurious ioctl warning&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_12&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 4512bbc4567d9082a01db5d6a2e651054e086260&lt;/p&gt;</comment>
                            <comment id="331746" author="gerrit" created="Tue, 12 Apr 2022 22:14:14 +0000"  >&lt;p&gt;&quot;Andreas Dilger &amp;lt;adilger@whamcloud.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/47053&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/47053&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14316&quot; title=&quot;lfs: using old ioctl(LL_IOC_LOV_GETSTRIPE), use llapi_layout_get_by_path()&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14316&quot;&gt;LU-14316&lt;/a&gt; llite: rename LL_IOC_LOV_GET,SETSTRIPE ioctls&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: cb2722a5cc36bf813aa9206a9e29a9cdce9e774f&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="56476">LU-12580</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="53008">LU-11264</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="62364">LU-14337</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|i01j0v:</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>