<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:10:12 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-14489] &quot;lfs find --mdt-count +1&quot; fails with &quot;Operation not permitted&quot;</title>
                <link>https://jira.whamcloud.com/browse/LU-14489</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;It appears that &quot;&lt;tt&gt;lfs find $MOUNT -type d --mdt-count +1&lt;/tt&gt;&quot; aborts when it hits non-striped directories rather than ignoring the error and continuing to search the directory tree:&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 /mnt/testfs -type d --mdt-count +1
lfs: failed for &apos;/mnt/testfs&apos;: Operation not permitted
# lfs mkdir -c 2 /mnt/testfs/dne
# lfs find /mnt/testfs/dne -type d --mdt-count +1
/mnt/testfs/dne
# mkdir /mnt/testfs/dne/nondne
# lfs find /mnt/testfs/dne -type d --mdt-count +1
/mnt/testfs/dne
lfs: failed for &apos;/mnt/testfs/dne&apos;: Operation not permitted
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Running strace on the find shows that it is returning &lt;tt&gt;-61 = ENODATA&lt;/tt&gt;:&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;open(&quot;/mnt/testfs/dne&quot;, O_RDONLY|O_NONBLOCK|O_DIRECTORY) = 3
open(&quot;/mnt/testfs/dne&quot;, O_RDONLY|O_NONBLOCK|O_NOFOLLOW) = 4
close(3)                                = 0
ioctl(4, LL_IOC_LMV_GETSTRIPE, 0x1751170) = 0
ioctl(4, LL_IOC_MDC_GETINFO_V2, 0x1741040) = 0
fstat(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 4), ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f5
write(1, &quot;/mnt/testfs/dne\n&quot;, 16)       = 16
/mnt/testfs/dne
fstat(4, {st_mode=S_IFDIR|0755, st_size=8192, ...}) = 0
fcntl(4, F_GETFL)                       = 0x28800 (flags O_RDONLY|O_NONBLOCK|O_L
fcntl(4, F_SETFD, FD_CLOEXEC)           = 0
getdents(4, /* 3 entries */, 32768)     = 80
open(&quot;/mnt/testfs/dne/nondne&quot;, O_RDONLY|O_NONBLOCK|O_DIRECTORY) = 3
open(&quot;/mnt/testfs/dne/nondne&quot;, O_RDONLY|O_NONBLOCK|O_NOFOLLOW) = 5
close(3)                                = 0
ioctl(5, LL_IOC_LMV_GETSTRIPE, 0x1751170) = -1 ENODATA
close(5)                                = 0
getdents(4, /* 0 entries */, 32768)     = 0
close(4)                                = 0
write(2, &quot;lfs: failed for &apos;/mnt/testfs/dne&quot;..., 59) = 59
lfs: failed for &apos;/mnt/testfs/dne
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="63201">LU-14489</key>
            <summary>&quot;lfs find --mdt-count +1&quot; fails with &quot;Operation not permitted&quot;</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="laisiyao">Lai Siyao</assignee>
                                    <reporter username="adilger">Andreas Dilger</reporter>
                        <labels>
                    </labels>
                <created>Fri, 5 Mar 2021 00:28:17 +0000</created>
                <updated>Fri, 17 Sep 2021 22:27:38 +0000</updated>
                            <resolved>Tue, 22 Jun 2021 01:06:51 +0000</resolved>
                                                    <fixVersion>Lustre 2.15.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="294033" author="adilger" created="Fri, 5 Mar 2021 00:30:43 +0000"  >&lt;p&gt;I suspect that this just needs a simple fix to &quot;&lt;tt&gt;lfs find&lt;/tt&gt;&quot; to handle the &lt;tt&gt;-ENODATA&lt;/tt&gt; properly.&lt;/p&gt;</comment>
                            <comment id="294034" author="pjones" created="Fri, 5 Mar 2021 00:32:44 +0000"  >&lt;p&gt;Lai&lt;/p&gt;

&lt;p&gt;Could you please advise on this one?&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;

&lt;p&gt;Peter&lt;/p&gt;</comment>
                            <comment id="303045" author="gerrit" created="Fri, 28 May 2021 21:24:20 +0000"  >&lt;p&gt;Andreas Dilger (adilger@whamcloud.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/43866&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/43866&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14489&quot; title=&quot;&amp;quot;lfs find --mdt-count +1&amp;quot; fails with &amp;quot;Operation not permitted&amp;quot;&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14489&quot;&gt;&lt;del&gt;LU-14489&lt;/del&gt;&lt;/a&gt; utils: fix &apos;lfs find --mdt-count&apos;&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 3bd3e6dc6691e42742074878046d6abaa12d3772&lt;/p&gt;</comment>
                            <comment id="305111" author="gerrit" created="Mon, 21 Jun 2021 22:16:19 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/43866/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/43866/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14489&quot; title=&quot;&amp;quot;lfs find --mdt-count +1&amp;quot; fails with &amp;quot;Operation not permitted&amp;quot;&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14489&quot;&gt;&lt;del&gt;LU-14489&lt;/del&gt;&lt;/a&gt; utils: fix &apos;lfs find --mdt-count&apos;&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: baba1fd07a977a62295482919e9218f877c0535a&lt;/p&gt;</comment>
                            <comment id="305131" author="pjones" created="Tue, 22 Jun 2021 01:06:51 +0000"  >&lt;p&gt;Landed for 2.15&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="63597">LU-14574</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="63266">LU-14507</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|i01olr:</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>