<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:00:17 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-13322] touch symbol link through lustre/.fid/$FID would fail</title>
                <link>https://jira.whamcloud.com/browse/LU-13322</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;The problem is 100% reproducable:&lt;/p&gt;

&lt;ol&gt;
	&lt;li&gt;# ls new_Inode -l&lt;br/&gt;
lrwxrwxrwx 10 root root 7 Mar  4 01:48 new_Inode -&amp;gt; unknown&lt;/li&gt;
	&lt;li&gt;lfs path2fid new_Inode&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;0x200000402:0x83f:0x0&amp;#93;&lt;/span&gt;&lt;/li&gt;
	&lt;li&gt;touch /mnt/bgdzjiq1/.lustre/fid/&lt;span class=&quot;error&quot;&gt;&amp;#91;0x200000402:0x83f:0x0&amp;#93;&lt;/span&gt;&lt;br/&gt;
touch: setting times of &apos;/mnt/bgdzjiq1/.lustre/fid/&lt;span class=&quot;error&quot;&gt;&amp;#91;0x200000402:0x83f:0x0&amp;#93;&lt;/span&gt;&apos;: Invalid argument&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;On the client side, the error logs are:&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;00000002:00000001:1.0:1583284421.042097:0:19386:0:(mdc_locks.c:1001:mdc_finish_intent_lock()) Process entered
00000002:00000001:1.0:1583284421.042098:0:19386:0:(mdc_locks.c:1028:mdc_finish_intent_lock()) Process leaving via out (rc=18446744073709551594 : -22 : 0xffffffffffffffea)
00000002:00000001:1.0:1583284421.042099:0:19386:0:(mdc_locks.c:1250:mdc_intent_lock()) Process leaving (rc=18446744073709551594 : -22 : ffffffffffffffea)
00800000:00000001:1.0:1583284421.042100:0:19386:0:(lmv_intent.c:354:lmv_intent_open()) Process leaving (rc=18446744073709551594 : -22 : ffffffffffffffea)
00800000:00000001:1.0:1583284421.042102:0:19386:0:(lmv_intent.c:526:lmv_intent_lock()) Process leaving (rc=18446744073709551594 : -22 : ffffffffffffffea)
00000080:00000001:1.0:1583284421.042103:0:19386:0:(namei.c:796:ll_lookup_it()) Process leaving via out (rc=18446744073709551594 : -22 : 0xffffffffffffffea)
00000100:00000001:1.0:1583284421.042105:0:19386:0:(client.c:2519:__ptlrpc_req_finished()) Process entered
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;On the MDS, the logs are:&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;00000004:00000400:0.0:1583284633.757717:0:4400:0:(mdd_device.c:775:obf_lookup()) bgdzjiq1-MDD0000: Trying to lookup invalid FID [unknown] in .lustre/fid, FID format should be [0x200000400:0x1:0x0]
00000004:00000001:0.0:1583284633.757724:0:4400:0:(mdd_device.c:776:obf_lookup()) Process leaving via out (rc=18446744073709551594 : -22 : 0xffffffffffffffea)
00000004:00000001:0.0:1583284633.757729:0:4400:0:(mdt_open.c:1426:mdt_reint_open()) Process leaving via out_parent (rc=18446744073709551594 : -22 : 0xffffffffffffffea)
00000004:00000001:0.0:1583284633.757734:0:4400:0:(mdt_handler.c:3446:mdt_object_unlock()) Process entered
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;So, looks like the ll_follow_link() causes the problem. When doing the lookup, the client find the inode is a symbol link pointing to &quot;unknown&quot;, so &lt;em&gt;naturely&lt;/em&gt;, it replaces &quot;/mnt/bgdzjiq1/.lustre/fid/&lt;span class=&quot;error&quot;&gt;&amp;#91;0x200000402:0x83f:0x0&amp;#93;&lt;/span&gt;&quot; to &quot;/mnt/bgdzjiq1/.lustre/fid/unknown&quot;. Thus the opening fails on MDT.&lt;/p&gt;

&lt;p&gt;I am not sure we can consider this as a &lt;b&gt;feature&lt;/b&gt;, because we can touch a symbol link itself even the symbol link points to a non-existing file.&lt;/p&gt;
</description>
                <environment>2.12</environment>
        <key id="58255">LU-13322</key>
            <summary>touch symbol link through lustre/.fid/$FID would fail</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="1" iconUrl="https://jira.whamcloud.com/images/icons/statuses/open.png" description="The issue is open and ready for the assignee to start work on it.">Open</status>
                    <statusCategory id="2" key="new" colorName="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="wc-triage">WC Triage</assignee>
                                    <reporter username="lixi_wc">Li Xi</reporter>
                        <labels>
                    </labels>
                <created>Wed, 4 Mar 2020 02:29:26 +0000</created>
                <updated>Wed, 4 Mar 2020 02:31:18 +0000</updated>
                                                                                <due></due>
                            <votes>0</votes>
                                    <watches>1</watches>
                                                                                    <attachments>
                            <attachment id="34390" name="client.log" size="202347" author="lixi_wc" created="Wed, 4 Mar 2020 02:30:14 +0000"/>
                            <attachment id="34391" name="mds.log" size="244014" author="lixi_wc" created="Wed, 4 Mar 2020 02:30:24 +0000"/>
                            <attachment id="34392" name="strace.txt" size="4728" author="lixi_wc" created="Wed, 4 Mar 2020 02:31:17 +0000"/>
                    </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|i00urr:</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>