<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:57:30 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-6134] lfs find --size opens everything</title>
                <link>https://jira.whamcloud.com/browse/LU-6134</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&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;q:lustre-release# git describe
2.6.92-55-g2bc5bcb
q:lustre-release# unset MDSCOUNT
q:lustre-release# llmount.sh
...
q:lustre-release# cd /mnt/lustre
q:lustre# mkdir d0
q:lustre# touch d0/f{0..1023}
q:lustre# strace -o /tmp/1 lfs find --size +4K .
./d0
q:lustre-release# awk -F&apos;(&apos; &apos;{ print $1; }&apos; /tmp/1 | sort | uniq -c
      1 access
      1 arch_prctl
      3 brk
   1034 close
      1 execve
      1 exit_group
      1 fcntl
      8 fstat
      4 getdents
      1 gettimeofday
   3077 ioctl
   1024 lstat
     20 mmap
      9 mprotect
      2 munmap
   1034 open
      6 read
      1 write
q:lustre-release# grep ioctl /tmp/1 | sort | uniq -c
      1 ioctl(3, 0x800466af, 0x7ffff9778e00)    = 0
      1 ioctl(3, 0xc0086683, 0x7ffff9778890)    = 0
      1 ioctl(3, 0xc0086917, 0x2354040)         = 0
      1 ioctl(4, 0x800466af, 0x7ffff9778e00)    = 0
   1024 ioctl(4, 0xc00866a5, 0x2354040)         = 0 # IOC_LOV_GETINFO
   1024 ioctl(4, 0xc0086916, 0x2354040)         = 0 # IOC_MDC_GETFILEINFO
      1 ioctl(4, 0xc0086917, 0x2354040)         = 0 # LL_IOC_MDC_GETINFO
   1024 ioctl(5, 0x800466af, 0x7ffff9778e00)    = 0 # LL_IOC_GET_MDTIDX
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;For each file returned by getdents on d0 we do:&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;ioctl(4, 0xc0086916, 0x2354040)         = 0 # IOC_MDC_GETFILEINFO
lstat(&quot;./d0/f831&quot;, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
open(&quot;./d0/f831&quot;, O_RDONLY)             = 5
ioctl(5, 0x800466af, 0x7ffff9778e00)    = 0 # LL_IOC_GET_MDTIDX
close(5)                                = 0
ioctl(4, 0xc00866a5, 0x2354040)         = 0 # IOC_LOV_GETINFO
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="28245">LU-6134</key>
            <summary>lfs find --size opens everything</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="di.wang">Di Wang</assignee>
                                    <reporter username="jhammond">John Hammond</reporter>
                        <labels>
                            <label>lfs</label>
                            <label>mq115</label>
                    </labels>
                <created>Mon, 19 Jan 2015 17:07:21 +0000</created>
                <updated>Wed, 5 Aug 2020 21:57:57 +0000</updated>
                            <resolved>Mon, 6 Jul 2015 23:52:59 +0000</resolved>
                                    <version>Lustre 2.7.0</version>
                                    <fixVersion>Lustre 2.8.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>7</watches>
                                                                            <comments>
                            <comment id="103887" author="adilger" created="Mon, 19 Jan 2015 18:30:15 +0000"  >&lt;p&gt;Di, it looks like this was landed back in 2.2 in commit 322968ac &quot;&lt;a href=&quot;https://jira.whamcloud.com/browse/LU-819&quot; title=&quot;&amp;quot;lfs getstripe -M&amp;quot; broken&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-819&quot;&gt;&lt;del&gt;LU-819&lt;/del&gt;&lt;/a&gt; utils: Fix lfs getstripe -M&quot; (&lt;a href=&quot;http://review.whamcloud.com/1646&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/1646&lt;/a&gt;) in order to implement the &lt;tt&gt;lfs find --mdt&lt;/tt&gt;.  However, if &lt;tt&gt;lfs find&lt;/tt&gt; isn&apos;t actually using this option then it doesn&apos;t need to get the MDT index at all.  Opening and closing each file adds a significant amount of overhead to this code that could easily be avoided.&lt;/p&gt;</comment>
                            <comment id="107465" author="adilger" created="Fri, 20 Feb 2015 10:30:36 +0000"  >&lt;p&gt;It seems that this is also preventing &lt;tt&gt;lfs find --ost&lt;/tt&gt; from working when an OST is offline, since the added fstat() will fail if the file is on an OST that is offline (&lt;a href=&quot;https://jira.whamcloud.com/browse/LU-1738&quot; title=&quot;lfs find cannot find files in OST that died, whilst lfs getstripe can&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-1738&quot;&gt;&lt;del&gt;LU-1738&lt;/del&gt;&lt;/a&gt;), which is one of the main reasons to use &lt;tt&gt;lfs find --ost&lt;/tt&gt; in the first place.  Will push a patch shortly.&lt;/p&gt;</comment>
                            <comment id="107473" author="gerrit" created="Fri, 20 Feb 2015 12:39:09 +0000"  >&lt;p&gt;Andreas Dilger (andreas.dilger@intel.com) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/13822&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/13822&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-6134&quot; title=&quot;lfs find --size opens everything&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-6134&quot;&gt;&lt;del&gt;LU-6134&lt;/del&gt;&lt;/a&gt; utils: lfs should only open/stat files if needed&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 363e65f2080aa6cd9b91e3c99d470528428e81df&lt;/p&gt;</comment>
                            <comment id="109969" author="gerrit" created="Wed, 18 Mar 2015 11:30:42 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;http://review.whamcloud.com/13822/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/13822/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-6134&quot; title=&quot;lfs find --size opens everything&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-6134&quot;&gt;&lt;del&gt;LU-6134&lt;/del&gt;&lt;/a&gt; utils: lfs should only open/stat files if needed&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 9c4783a744f27da813b9c5be9c530f7772eec203&lt;/p&gt;</comment>
                            <comment id="120504" author="pjones" created="Mon, 6 Jul 2015 23:52:59 +0000"  >&lt;p&gt;Landed for 2.8&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="15473">LU-1738</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="22211">LU-4296</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                                        </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|hzx47j:</customfieldvalue>

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