<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:54:27 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-12650] get_root_path() filesystem name compare error that leads to fid2path fail</title>
                <link>https://jira.whamcloud.com/browse/LU-12650</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;get_root_path() returns (for instance) path to &quot;lustre&quot; mount instead &quot;lustre1&quot;&lt;br/&gt;
 because last symbol is not taking in account during comparison.&lt;br/&gt;
 This bug has influence to get_root_path() users.&lt;/p&gt;

&lt;p&gt;For example, fid2path use get_root_path().&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;
mount -t lustre
 /dev/mapper/mds1_flakey on /mnt/lustre-mds1 type lustre (ro,context=unconfined_u:object_r:user_tmp_t:s0,svname=lustre-MDT0000,mgs,osd=osd-ldiskfs,user_xattr,errors=remount-ro)
 /dev/mapper/ost1_flakey on /mnt/lustre-ost1 type lustre (ro,context=unconfined_u:object_r:user_tmp_t:s0,svname=lustre-OST0000,mgsnode=192.168.1.227@tcp,osd=osd-ldiskfs,errors=remount-ro)
 /dev/mapper/ost2_flakey on /mnt/lustre-ost2 type lustre (ro,context=unconfined_u:object_r:user_tmp_t:s0,svname=lustre-OST0001,mgsnode=192.168.1.227@tcp,osd=osd-ldiskfs,errors=remount-ro)
 192.168.1.227@tcp:/lustre on /mnt/lustre type lustre (rw,seclabel,flock,user_xattr,lazystatfs)
 /tmp/lustre2-mdt on /mnt/lustre2-mds1 type lustre (ro,context=unconfined_u:object_r:user_tmp_t:s0,svname=lustre2-MDT0000,mgsnode=192.168.1.227@tcp,osd=osd-ldiskfs,user_xattr,errors=remount-ro)
 /tmp/lustre2-ost1 on /mnt/lustre2-ost1 type lustre (ro,context=unconfined_u:object_r:user_tmp_t:s0,svname=lustre2-OST0000,mgsnode=192.168.1.227@tcp,osd=osd-ldiskfs,errors=remount-ro)
 /tmp/lustre2-ost2 on /mnt/lustre2-ost2 type lustre (ro,context=unconfined_u:object_r:user_tmp_t:s0,svname=lustre2-OST0001,mgsnode=192.168.1.227@tcp,osd=osd-ldiskfs,errors=remount-ro)
 192.168.1.227@tcp:/lustre2 on /mnt/lustre2 type lustre (rw,seclabel,flock,lazystatfs)
lfs path2fid /mnt/lustre2/foodir3
 [0x200000401:0x1:0x0]

lfs fid2path lustre2 [0x200000401:0x1:0x0]
 lfs fid2path: cannot find &lt;span class=&quot;code-quote&quot;&gt;&apos;[0x200000401:0x1:0x0]&apos;&lt;/span&gt;: No such file or
 directory

umount /mnt/lustre
 lfs fid2path lustre2 [0x200000401:0x1:0x0]
 foodir3
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="56627">LU-12650</key>
            <summary>get_root_path() filesystem name compare error that leads to fid2path fail</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="artem_blagodarenko">Artem Blagodarenko</assignee>
                                    <reporter username="artem_blagodarenko">Artem Blagodarenko</reporter>
                        <labels>
                            <label>patch</label>
                    </labels>
                <created>Fri, 9 Aug 2019 06:37:29 +0000</created>
                <updated>Mon, 28 Oct 2019 03:08:32 +0000</updated>
                            <resolved>Mon, 16 Sep 2019 23:22:39 +0000</resolved>
                                                    <fixVersion>Lustre 2.13.0</fixVersion>
                    <fixVersion>Lustre 2.12.3</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>6</watches>
                                                                            <comments>
                            <comment id="252850" author="artem_blagodarenko" created="Fri, 9 Aug 2019 06:40:18 +0000"  >&lt;p&gt;On 2.7 this bug leads to changeling errors. lfs changeling returns information from wrong fs. In muster, changeling completely rewritten, so only fid2path (probably other commands) are failed.&lt;/p&gt;</comment>
                            <comment id="252854" author="bzzz" created="Fri, 9 Aug 2019 09:21:37 +0000"  >&lt;p&gt;can you check that with master branch, please?&lt;/p&gt;</comment>
                            <comment id="252904" author="adilger" created="Fri, 9 Aug 2019 18:58:03 +0000"  >&lt;p&gt;I&apos;d prefer removing get_root_path() as much as possible. Instead of extracting the fsname from /proc/mounts via a complex scan, we can call a single ioctl() to get the filesystem name directly from any file/directory in the filesystem. &lt;/p&gt;

&lt;p&gt;For example, patch &lt;a href=&quot;https://review.whamcloud.com/35451&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/35451&lt;/a&gt; &quot;&lt;tt&gt;&lt;a href=&quot;https://jira.whamcloud.com/browse/LU-12521&quot; title=&quot;print_instance() incorrect if fsname contains a dash&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-12521&quot;&gt;&lt;del&gt;LU-12521&lt;/del&gt;&lt;/a&gt; llapi: add separate fsname and instance&lt;/tt&gt;&quot; adds more useful interfaces that get the fsname and instance directly from the kernel. &lt;/p&gt;</comment>
                            <comment id="252906" author="gerrit" created="Fri, 9 Aug 2019 19:23:24 +0000"  >&lt;p&gt;Artem Blagodarenko (c17828@cray.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/35755&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/35755&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-12650&quot; title=&quot;get_root_path() filesystem name compare error that leads to fid2path fail&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-12650&quot;&gt;&lt;del&gt;LU-12650&lt;/del&gt;&lt;/a&gt; lib: fix strings comparison during mount searching&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 23ae1d0acaaf9385cfbcd93223a8f14bf0850faf&lt;/p&gt;</comment>
                            <comment id="252907" author="artem_blagodarenko" created="Fri, 9 Aug 2019 19:30:51 +0000"  >&lt;p&gt;&amp;gt; can you check that with master branch, please?&lt;br/&gt;
The experiment from description was executed on master.&lt;/p&gt;</comment>
                            <comment id="252908" author="artem_blagodarenko" created="Fri, 9 Aug 2019 19:32:10 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.whamcloud.com/secure/ViewProfile.jspa?name=adilger&quot; class=&quot;user-hover&quot; rel=&quot;adilger&quot;&gt;adilger&lt;/a&gt; , thanks for pointing to right solution. I uploaded solution I used to fix this issue here, because it is ready and works. But sure, we can make other patch or both.&lt;/p&gt;

&lt;p&gt;Patch above can be useful for other get_root_path() users. We need to deleted this function or fix.&lt;/p&gt;</comment>
                            <comment id="254810" author="gerrit" created="Mon, 16 Sep 2019 23:04:38 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/35755/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/35755/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-12650&quot; title=&quot;get_root_path() filesystem name compare error that leads to fid2path fail&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-12650&quot;&gt;&lt;del&gt;LU-12650&lt;/del&gt;&lt;/a&gt; lib: fix strings comparison during mount searching&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 0817efd73f04bf59d1234887bc3971d2d067067e&lt;/p&gt;</comment>
                            <comment id="254823" author="pjones" created="Mon, 16 Sep 2019 23:22:39 +0000"  >&lt;p&gt;Landed for 2.13&lt;/p&gt;</comment>
                            <comment id="254892" author="gerrit" created="Tue, 17 Sep 2019 15:19:00 +0000"  >&lt;p&gt;Minh Diep (mdiep@whamcloud.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/36211&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/36211&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-12650&quot; title=&quot;get_root_path() filesystem name compare error that leads to fid2path fail&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-12650&quot;&gt;&lt;del&gt;LU-12650&lt;/del&gt;&lt;/a&gt; lib: fix strings comparison during mount searching&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_12&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 8253429de7c6bfd03e250e6395d76d143aeb3f77&lt;/p&gt;</comment>
                            <comment id="255230" author="gerrit" created="Mon, 23 Sep 2019 08:40:21 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/36211/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/36211/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-12650&quot; title=&quot;get_root_path() filesystem name compare error that leads to fid2path fail&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-12650&quot;&gt;&lt;del&gt;LU-12650&lt;/del&gt;&lt;/a&gt; lib: fix strings comparison during mount searching&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_12&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 9ab5dc7b1f3d3814b6d876e427c56415e8c7bb8a&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                                        </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|i00l0f:</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>