<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:03:21 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-13687] interop: &quot;lfs find&quot; prints spurious &quot;No such file or directory&quot; error messages </title>
                <link>https://jira.whamcloud.com/browse/LU-13687</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;When running &quot;&lt;tt&gt;lfs find&lt;/tt&gt;&quot; it prints a spurious error message for each directory that it processes, and then appears to take the last argument &quot;&lt;tt&gt;0&lt;/tt&gt;&quot; as the directory name when printing the summary error message:&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;# lfs find /myth/tmp -size +100K --ost 0
lfs find: warning: /myth/tmp does not exist: No such file or directory (2)  
lfs find: warning: /myth/tmp/mythtv does not exist: No such file or directory (2)
lfs find: warning: /myth/tmp/testdir does not exist: No such file or directory (2)
/myth/tmp/pflfile2
/myth/tmp/40T
:
:
error: find failed for 0.
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Reversing the order of the arguments prints the final error message correctly:&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;# lfs find -size +100K --ost 0 /myth/tmp
lfs find: warning: /myth/tmp does not exist: No such file or directory (2)  
lfs find: warning: /myth/tmp/mythtv does not exist: No such file or directory (2)
lfs find: warning: /myth/tmp/testdir does not exist: No such file or directory (2)
/myth/tmp/pflfile2
/myth/tmp/40T
:
:
error: find failed for /myth/tmp.
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I suspect the &quot;&lt;tt&gt;No such file or directory (2)&lt;/tt&gt;&quot; message may be incorrectly a result of &lt;tt&gt;getxattr()&lt;/tt&gt; or &lt;tt&gt;IOC_MDC_GETFILEINFO&lt;/tt&gt; on the file returning &lt;tt&gt;-ENOENT&lt;/tt&gt; and that being printed rather than ignored?&lt;/p&gt;</description>
                <environment>v2_13_54-44-gf3fef81</environment>
        <key id="59604">LU-13687</key>
            <summary>interop: &quot;lfs find&quot; prints spurious &quot;No such file or directory&quot; error messages </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="adilger">Andreas Dilger</assignee>
                                    <reporter username="adilger">Andreas Dilger</reporter>
                        <labels>
                    </labels>
                <created>Wed, 17 Jun 2020 10:17:11 +0000</created>
                <updated>Wed, 9 Dec 2020 19:26:18 +0000</updated>
                            <resolved>Thu, 13 Aug 2020 12:07:06 +0000</resolved>
                                    <version>Lustre 2.14.0</version>
                    <version>Lustre 2.12.4</version>
                                    <fixVersion>Lustre 2.14.0</fixVersion>
                    <fixVersion>Lustre 2.12.6</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>5</watches>
                                                                            <comments>
                            <comment id="273875" author="adilger" created="Sat, 27 Jun 2020 08:37:32 +0000"  >&lt;p&gt;It may be that this is only happening when running a newer client (2.12.4+, 2.13.53+) against an older server.  The error is being printed from &lt;tt&gt;get_lmd_info_fd()&lt;/tt&gt;:&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;
1863            &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (dir_fd &amp;gt;= 0) {
1875                    ret = ioctl(dir_fd, LL_IOC_MDC_GETINFO_V2, lmdbuf);
1927            &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (ret &amp;amp;&amp;amp; type == GET_LMD_INFO) {
1928                    &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (errno == ENOTTY) {
1948                    } &lt;span class=&quot;code-keyword&quot;&gt;else&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (errno == ENOENT) {
1949                            ret = -errno;
1950                            llapi_error(LLAPI_MSG_WARN, ret,
1951                                        &lt;span class=&quot;code-quote&quot;&gt;&quot;warning: %s does not exist&quot;&lt;/span&gt;, path);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;It seems that this is related to patch &lt;a href=&quot;https://review.whamcloud.com/36609&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/36609&lt;/a&gt; &quot;&lt;tt&gt;&lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11656&quot; title=&quot;&amp;quot;lfs getstripe&amp;quot; on directory does not show default root layout&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-11656&quot;&gt;&lt;del&gt;LU-11656&lt;/del&gt;&lt;/a&gt; llite: fetch default layout for a directory&lt;/tt&gt;&quot;, since the error is returned from code added in that patch:&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;ll_dir_get_default_layout()) md_getattr failed on inode [0x200000007:0x1:0x0]: rc -2
ll_dir_get_default_layout()) Process leaving via out rc= -2 
ll_dir_getstripe_default()) Process leaving rc= -2
ll_dir_ioctl()) Process leaving via out_req rc= -2
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;The FID &lt;tt&gt;[&lt;span class=&quot;error&quot;&gt;&amp;#91;0x200000007:0x1:0x0&amp;#93;&lt;/span&gt;&lt;/tt&gt; is &lt;tt&gt;FID_SEQ_ROOT&lt;/tt&gt;, so it is trying to get the default filesystem layout:&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-object&quot;&gt;int&lt;/span&gt; ll_dir_getstripe_default(struct inode *inode, void **plmm, &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; *plmm_size,
                             struct ptlrpc_request **request,
                             struct ptlrpc_request **root_request,
                             u64 valid)
{
        rc = ll_dir_get_default_layout(inode, (void **)&amp;amp;lmm, &amp;amp;lmm_size,
                                       &amp;amp;req, valid, 0);
        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (rc == -ENODATA &amp;amp;&amp;amp; !fid_is_root(ll_inode2fid(inode)) &amp;amp;&amp;amp;
            !(valid &amp;amp; (OBD_MD_MEA|OBD_MD_DEFAULT_MEA)) &amp;amp;&amp;amp; root_request != NULL)
                rc = ll_dir_get_default_layout(inode, (void **)&amp;amp;lmm, &amp;amp;lmm_size,
                                               &amp;amp;root_req, valid,
                                               GET_DEFAULT_LAYOUT_ROOT);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="273877" author="gerrit" created="Sat, 27 Jun 2020 11:16:20 +0000"  >&lt;p&gt;Andreas Dilger (adilger@whamcloud.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/39200&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/39200&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-13687&quot; title=&quot;interop: &amp;quot;lfs find&amp;quot; prints spurious &amp;quot;No such file or directory&amp;quot; error messages &quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-13687&quot;&gt;&lt;del&gt;LU-13687&lt;/del&gt;&lt;/a&gt; llite: return -ENODATA if no default layout&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: d6564d6ea6cd250954d1c21ab6149584608536f8&lt;/p&gt;</comment>
                            <comment id="277422" author="gerrit" created="Thu, 13 Aug 2020 06:03:53 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/39200/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/39200/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-13687&quot; title=&quot;interop: &amp;quot;lfs find&amp;quot; prints spurious &amp;quot;No such file or directory&amp;quot; error messages &quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-13687&quot;&gt;&lt;del&gt;LU-13687&lt;/del&gt;&lt;/a&gt; llite: return -ENODATA if no default layout&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 7fb17eb7b7e6035931987ae1e9589639114d210e&lt;/p&gt;</comment>
                            <comment id="283892" author="mhanafi" created="Fri, 30 Oct 2020 19:43:31 +0000"  >&lt;p&gt;We are get error on lustre2.12.4. Can we get a backport of the patch.&lt;/p&gt;</comment>
                            <comment id="283897" author="gerrit" created="Fri, 30 Oct 2020 20:08:50 +0000"  >&lt;p&gt;Andreas Dilger (adilger@whamcloud.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/40499&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/40499&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-13687&quot; title=&quot;interop: &amp;quot;lfs find&amp;quot; prints spurious &amp;quot;No such file or directory&amp;quot; error messages &quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-13687&quot;&gt;&lt;del&gt;LU-13687&lt;/del&gt;&lt;/a&gt; llite: return -ENODATA if no default layout&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_12&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 44bc69bd443eb24802572668ca84f831491f0337&lt;/p&gt;</comment>
                            <comment id="284595" author="gerrit" created="Sat, 7 Nov 2020 04:16:16 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/40499/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/40499/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-13687&quot; title=&quot;interop: &amp;quot;lfs find&amp;quot; prints spurious &amp;quot;No such file or directory&amp;quot; error messages &quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-13687&quot;&gt;&lt;del&gt;LU-13687&lt;/del&gt;&lt;/a&gt; llite: return -ENODATA if no default layout&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_12&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 41dfe594d2a0b93fe8c54fed049526b60332515a&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="53999">LU-11656</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|i012y7:</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>