<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:01:50 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-6625] symlink() sets wrong errno, ENOENT</title>
                <link>https://jira.whamcloud.com/browse/LU-6625</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;the online-manual on symlink() tells that symlink() should set errno EEXIST if specified link-path already exists. But it actually sets ENOENT when the last ward of the link-path is &quot;/&quot;.&lt;/p&gt;

&lt;p&gt;It looks to me that the last ward is &quot;/&quot; is awkward. But the directory specified as link-path actually exists so I think we should set errno EEXIST. &lt;br/&gt;
Moreover ext3 returns EEXIST.&lt;/p&gt;

&lt;p&gt;This patch modifies a if-statement in ll_lookup_nd for client to look up MDS properly and for symlink() to set errno EEXIST.&lt;/p&gt;

&lt;p&gt;By the way, you can see the difference of errno between lustre and ext3 with the attached trivial test program &lt;/p&gt;</description>
                <environment></environment>
        <key id="30297">LU-6625</key>
            <summary>symlink() sets wrong errno, ENOENT</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="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="6">Not a Bug</resolution>
                                        <assignee username="niu">Niu Yawei</assignee>
                                    <reporter username="nozaki">Hiroya Nozaki</reporter>
                        <labels>
                            <label>patch</label>
                    </labels>
                <created>Thu, 21 May 2015 07:47:40 +0000</created>
                <updated>Thu, 4 Jun 2015 06:44:55 +0000</updated>
                            <resolved>Thu, 4 Jun 2015 06:44:55 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                            <comments>
                            <comment id="116082" author="gerrit" created="Thu, 21 May 2015 07:54:54 +0000"  >&lt;p&gt;Hiroya Nozaki (nozaki.hiroya@jp.fujitsu.com) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/14902&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/14902&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-6625&quot; title=&quot;symlink() sets wrong errno, ENOENT&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-6625&quot;&gt;&lt;del&gt;LU-6625&lt;/del&gt;&lt;/a&gt; llite: symlink() sets wrong errno, ENOENT&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: ac5fd86f91923259007a2d1984c44f104f300550&lt;/p&gt;</comment>
                            <comment id="116804" author="niu" created="Fri, 29 May 2015 04:03:00 +0000"  >&lt;p&gt;The reason of kernel returning -ENOENT for such case is: &lt;/p&gt;

&lt;p&gt;see lookup_create():&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;        /*
         * Special &lt;span class=&quot;code-keyword&quot;&gt;case&lt;/span&gt; - lookup gave negative, but... we had foo/bar/
         * From the vfs_mknod() POV we just have a negative dentry -
         * all is fine. Let&lt;span class=&quot;code-quote&quot;&gt;&apos;s be bastards - you had / on the end, you&apos;&lt;/span&gt;ve
         * been asking &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; (non-existent) directory. -ENOENT &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; you.
         */
        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (unlikely(!is_dir &amp;amp;&amp;amp; nd-&amp;gt;last.name[nd-&amp;gt;last.len])) {
                dput(dentry);
                dentry = ERR_PTR(-ENOENT);
        }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I don&apos;t think we need to fix this in Lustre, and actually -ENOENT does make sense to me as the comment said above. &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.whamcloud.com/images/icons/emoticons/smile.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;

&lt;p&gt;BTW: Because local filesystem needn&apos;t do revalidation, ext3 returns -EEXIST for such case.&lt;/p&gt;</comment>
                            <comment id="117206" author="gerrit" created="Tue, 2 Jun 2015 20:27:01 +0000"  >&lt;p&gt;Andreas Dilger (andreas.dilger@intel.com) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/15110&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/15110&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-6625&quot; title=&quot;symlink() sets wrong errno, ENOENT&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-6625&quot;&gt;&lt;del&gt;LU-6625&lt;/del&gt;&lt;/a&gt; obdclass: remove malloc fault injection&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 0ec71e5838903eafd54421496ebc5a4a5c924593&lt;/p&gt;</comment>
                            <comment id="117398" author="nozaki" created="Thu, 4 Jun 2015 05:39:13 +0000"  >&lt;p&gt;hm, sounds reasonable.&lt;br/&gt;
OK, thank you !! I&apos;m afraid to say but could you please close this ticket as not a bug ??&lt;/p&gt;</comment>
                            <comment id="117405" author="niu" created="Thu, 4 Jun 2015 06:44:55 +0000"  >&lt;p&gt;Thank you, Hiroya.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="17915" name="symlink_test.c" size="575" author="nozaki" created="Thu, 21 May 2015 07:47:40 +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|hzxdrz:</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>