<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:25:35 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-9369] lfs find can&apos;t work correctly</title>
                <link>https://jira.whamcloud.com/browse/LU-9369</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;This issue can be reproduced by the following steps:&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;mkdir /mnt/lustre/dir1
mkdir /mnt/lustre/dir2
lfs setstripe -c 3 /mnt/lustre/dir1/file
lfs setstripe -c 3 /mnt/lustre/dir2/file
lfs find /mnt/lustre -c 3
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Then, you will see the output is&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;/mnt/lustre/dir1/file
/mnt/lustre/dir2
/mnt/lustre/dir2/file
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;I will create a fix.&lt;/p&gt;</description>
                <environment></environment>
        <key id="45596">LU-9369</key>
            <summary>lfs find can&apos;t work correctly</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="emoly.liu">Emoly Liu</assignee>
                                    <reporter username="emoly.liu">Emoly Liu</reporter>
                        <labels>
                    </labels>
                <created>Thu, 20 Apr 2017 07:26:45 +0000</created>
                <updated>Tue, 9 May 2017 04:20:42 +0000</updated>
                            <resolved>Tue, 9 May 2017 04:20:42 +0000</resolved>
                                                    <fixVersion>Lustre 2.10.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                            <comments>
                            <comment id="193879" author="emoly.liu" created="Fri, 28 Apr 2017 12:39:10 +0000"  >&lt;p&gt;This issue is related to the PFL patch &lt;a href=&quot;https://review.whamcloud.com/#/c/26391&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/#/c/26391&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="193883" author="niu" created="Fri, 28 Apr 2017 13:41:20 +0000"  >&lt;p&gt;I think it could be an old bug, cb_find_init() mistakenly used previous file&apos;s lum for the next dir, because the dir doesn&apos;t have default layout. Old code happen to zeroed the stripe count every time, that&apos;s probably why &apos;lfs find -c&apos; works for old code. I think other options such as &apos;lfs find -S&apos; would fail on old code too. Could you verify this?&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;diff --git a/lustre/utils/liblustreapi.c b/lustre/utils/liblustreapi.c
index 23691fb..42da570 100644
--- a/lustre/utils/liblustreapi.c
+++ b/lustre/utils/liblustreapi.c
@@ -3338,6 +3338,8 @@ &lt;span class=&quot;code-keyword&quot;&gt;static&lt;/span&gt; &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; cb_find_init(&lt;span class=&quot;code-object&quot;&gt;char&lt;/span&gt; *path, DIR *parent, DIR **dirp,
                        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (ret != 0)
                                &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; ret;
                }
+
+               param-&amp;gt;fp_lmd-&amp;gt;lmd_lmm.lmm_magic = 0;
                ret = get_lmd_info(path, parent, dir, param-&amp;gt;fp_lmd,
                                   param-&amp;gt;fp_lum_size);
                &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (ret == 0 &amp;amp;&amp;amp; param-&amp;gt;fp_lmd-&amp;gt;lmd_lmm.lmm_magic == 0 &amp;amp;&amp;amp;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I think above patch can fix the problem.&lt;/p&gt;</comment>
                            <comment id="194110" author="emoly.liu" created="Tue, 2 May 2017 02:38:24 +0000"  >&lt;p&gt;Niu, thanks for your patch! It does fix this issue.&lt;/p&gt;</comment>
                            <comment id="194119" author="gerrit" created="Tue, 2 May 2017 06:59:35 +0000"  >&lt;p&gt;Emoly Liu (emoly.liu@intel.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/26914&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/26914&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-9369&quot; title=&quot;lfs find can&amp;#39;t work correctly&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-9369&quot;&gt;&lt;del&gt;LU-9369&lt;/del&gt;&lt;/a&gt; lfs: make lfs find work correctly&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 01ee10671587faab7a30284e78022f1a16a9e800&lt;/p&gt;</comment>
                            <comment id="195028" author="gerrit" created="Tue, 9 May 2017 03:47:22 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/26914/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/26914/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-9369&quot; title=&quot;lfs find can&amp;#39;t work correctly&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-9369&quot;&gt;&lt;del&gt;LU-9369&lt;/del&gt;&lt;/a&gt; lfs: make lfs find work correctly&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: b0404c136240a578655554d37689b47b47ef5920&lt;/p&gt;</comment>
                            <comment id="195048" author="pjones" created="Tue, 9 May 2017 04:20:42 +0000"  >&lt;p&gt;Landed for 2.10&lt;/p&gt;</comment>
                    </comments>
                    <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|hzzao7:</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>