<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:26:03 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-16331] &quot;lfs find -O UUID&quot; does not match first OST after gap</title>
                <link>https://jira.whamcloud.com/browse/LU-16331</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Running &quot;&lt;tt&gt;lfs find -O testfs-OST000a -type f /mnt/testfs&lt;/tt&gt;&quot; does not correctly find files with objects on OST000a if there is a gap in the OST numbering and this is the first OST number after the gap, but this works properly for finding files on this OST by index number:&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 df
UUID                   1K-blocks        Used   Available Use% Mounted on
testfs-MDT0000_UUID       125056        4924      108896   5% /mnt/testfs[MDT:0]
testfs-MDT0001_UUID       125056        7832      105988   7% /mnt/testfs[MDT:1]
testfs-MDT0002_UUID       125056        6700      107120   6% /mnt/testfs[MDT:2]
testfs-MDT0003_UUID       125056        6088      107732   6% /mnt/testfs[MDT:3]
testfs-OST0000_UUID       313104       12476      273468   5% /mnt/testfs[OST:0]
testfs-OST0001_UUID       313104        9636      276308   4% /mnt/testfs[OST:1]
testfs-OST0002_UUID       313104       11444      274500   5% /mnt/testfs[OST:2]
testfs-OST0003_UUID       313104       13156      272788   5% /mnt/testfs[OST:3]
testfs-OST000a_UUID       313104       15520      270424   6% /mnt/testfs[OST:10]
testfs-OST000b_UUID       313104        8972      276972   4% /mnt/testfs[OST:11]
testfs-OST000c_UUID       313104       11752      274192   5% /mnt/testfs[OST:12]
testfs-OST000d_UUID       313104       12500      273444   5% /mnt/testfs[OST:13]

filesystem_summary:      2504832       95456     2192096   5% /mnt/testfs
# lfs find /mnt/testfs -O testfs-OST000a_UUID
# lfs find /mnt/testfs -O 0xa
/mnt/testfs/etc/lvm/profile/thin-generic.profile
/mnt/testfs/etc/lvm/archive/centos_00001-283055415.vg
:
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="73349">LU-16331</key>
            <summary>&quot;lfs find -O UUID&quot; does not match first OST after gap</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>Tue, 22 Nov 2022 05:11:41 +0000</created>
                <updated>Thu, 17 Aug 2023 18:44:46 +0000</updated>
                            <resolved>Fri, 19 May 2023 12:38:23 +0000</resolved>
                                    <version>Lustre 2.16.0</version>
                    <version>Lustre 2.12.9</version>
                                    <fixVersion>Lustre 2.16.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="353795" author="adilger" created="Tue, 22 Nov 2022 05:41:49 +0000"  >&lt;p&gt;The problem appears to be in &lt;tt&gt;llapi_get_target_uuids()&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;# lctl get_param lov.*.target_obd
lov.testfs-clilov-ffff99bbd7239000.target_obd=
0: testfs-OST0000_UUID ACTIVE
1: testfs-OST0001_UUID ACTIVE
2: testfs-OST0002_UUID ACTIVE
3: testfs-OST0003_UUID ACTIVE
10: testfs-OST000a_UUID ACTIVE
11: testfs-OST000b_UUID ACTIVE
12: testfs-OST000c_UUID ACTIVE
13: testfs-OST000d_UUID ACTIVE
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&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; index = 0;

        &lt;span class=&quot;code-keyword&quot;&gt;while&lt;/span&gt; (fgets(buf, sizeof(buf), fp) != NULL) {
                &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (uuidp &amp;amp;&amp;amp; (index &amp;lt; *ost_count)) {
                        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (sscanf(buf, format, &amp;amp;index, uuidp[index].uuid) &amp;lt; 2)
                                &lt;span class=&quot;code-keyword&quot;&gt;break&lt;/span&gt;;
                }
                index++;
        }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;This is filling the &lt;tt&gt;uuidp[]&lt;/tt&gt; array using &lt;tt&gt;index&lt;/tt&gt; starting at 0, but is increased by the target OBD number in the &lt;tt&gt;target_obd&lt;/tt&gt; &lt;b&gt;after&lt;/b&gt; the OST line is parsed.  This puts the OST000a line into &lt;tt&gt;uuidp&lt;span class=&quot;error&quot;&gt;&amp;#91;4&amp;#93;&lt;/span&gt;&lt;/tt&gt;, &lt;tt&gt;index=10&lt;/tt&gt; is parsed then incremented to &lt;tt&gt;index=11&lt;/tt&gt;, and then OST000b is loaded into &lt;tt&gt;uuidp&lt;span class=&quot;error&quot;&gt;&amp;#91;11&amp;#93;&lt;/span&gt;&lt;/tt&gt;.&lt;/p&gt;</comment>
                            <comment id="353796" author="gerrit" created="Tue, 22 Nov 2022 06:22:34 +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/c/fs/lustre-release/+/49207&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/49207&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16331&quot; title=&quot;&amp;quot;lfs find -O UUID&amp;quot; does not match first OST after gap&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16331&quot;&gt;&lt;del&gt;LU-16331&lt;/del&gt;&lt;/a&gt; utils: fix &apos;lfs find -O &amp;lt;uuid&amp;gt;&apos; with gaps&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: cd443908ad09ea429d290ef3181562ad2eb7d17f&lt;/p&gt;</comment>
                            <comment id="372817" author="gerrit" created="Fri, 19 May 2023 07:04:20 +0000"  >&lt;p&gt;&quot;Oleg Drokin &amp;lt;green@whamcloud.com&amp;gt;&quot; merged in patch &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/49207/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/49207/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16331&quot; title=&quot;&amp;quot;lfs find -O UUID&amp;quot; does not match first OST after gap&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16331&quot;&gt;&lt;del&gt;LU-16331&lt;/del&gt;&lt;/a&gt; utils: fix &apos;lfs find -O &amp;lt;uuid&amp;gt;&apos; with gaps&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 05334b90a5d3ddd6c8eabc3683fd487f47df6e35&lt;/p&gt;</comment>
                            <comment id="372873" author="pjones" created="Fri, 19 May 2023 12:38:23 +0000"  >&lt;p&gt;Landed for 2.16&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="77492">LU-17037</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|i0369r:</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>