<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:08:34 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-14301] EOPNOTSUPP, ENOTSUPP, ENOTSUP confusion</title>
                <link>https://jira.whamcloud.com/browse/LU-14301</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;llmv tries &lt;tt&gt;posix_fallocate()&lt;/tt&gt; and falls back to &lt;tt&gt;ftruncate()&lt;/tt&gt; if it indicates that the operation is not supported. From llvm-project-llvmorg-11.0.0/llvm/lib/Support/Unix/Path.inc:&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;
std::error_code resize_file(&lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; FD, uint64_t Size) {
#&lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; defined(HAVE_POSIX_FALLOCATE)
  &lt;span class=&quot;code-comment&quot;&gt;// If we have posix_fallocate use it. Unlike ftruncate it always allocates                                            
&lt;/span&gt;  &lt;span class=&quot;code-comment&quot;&gt;// space, so we get an error &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; the disk is full.                                                                     
&lt;/span&gt;  &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (&lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; Err = ::posix_fallocate(FD, 0, Size)) {
#ifdef _AIX
    constexpr &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; NotSupportedError = ENOTSUP;
#&lt;span class=&quot;code-keyword&quot;&gt;else&lt;/span&gt;
    constexpr &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; NotSupportedError = EOPNOTSUPP;
#endif
    &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (Err != EINVAL &amp;amp;&amp;amp; Err != NotSupportedError)
      &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; std::error_code(Err, std::generic_category());
  }
#endif
  &lt;span class=&quot;code-comment&quot;&gt;// Use ftruncate as a fallback. It may or may not allocate space. At least on                                         
&lt;/span&gt;  &lt;span class=&quot;code-comment&quot;&gt;// OS X with HFS+ it does.                                                                                            
&lt;/span&gt;  &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (::ftruncate(FD, Size) == -1)
    &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; std::error_code(errno, std::generic_category());

  &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; std::error_code();
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Somewhere on the server side OST_FALLOCATE is failing and we are returning ENOTSUPP but we should be returning EOPNOTSUPP.&lt;/p&gt;

&lt;p&gt;Note:&lt;/p&gt;

&lt;p&gt;ENOTSUPP is 524 and defined only in the kernel errno.h and is a NFSv3 specific errno.&lt;/p&gt;

&lt;p&gt;EOPNOTSUPP (95) is defined in kernel and userspace errno.h.&lt;/p&gt;

&lt;p&gt;ENOTSUP is defined in userspace errno.h as an alias for EOPNOTSUPP.&lt;/p&gt;

&lt;p&gt;Ideally we should change every ENOTSUPP to EOPNOTSUPP and add a checkpatch warning. (Or almost every if there&apos;s some real NFSv3 interaction.)&lt;/p&gt;</description>
                <environment></environment>
        <key id="62248">LU-14301</key>
            <summary>EOPNOTSUPP, ENOTSUPP, ENOTSUP confusion</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="jhammond">John Hammond</assignee>
                                    <reporter username="jhammond">John Hammond</reporter>
                        <labels>
                    </labels>
                <created>Wed, 6 Jan 2021 19:47:18 +0000</created>
                <updated>Fri, 14 Jul 2023 12:57:10 +0000</updated>
                            <resolved>Tue, 12 Jan 2021 13:25:01 +0000</resolved>
                                                    <fixVersion>Lustre 2.14.0</fixVersion>
                    <fixVersion>Lustre 2.16.0</fixVersion>
                    <fixVersion>Lustre 2.15.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>5</watches>
                                                                            <comments>
                            <comment id="288858" author="gerrit" created="Wed, 6 Jan 2021 19:51:24 +0000"  >&lt;p&gt;John L. Hammond (jhammond@whamcloud.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/41148&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/41148&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14301&quot; title=&quot;EOPNOTSUPP, ENOTSUPP, ENOTSUP confusion&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14301&quot;&gt;&lt;del&gt;LU-14301&lt;/del&gt;&lt;/a&gt; llite: return EOPNOTSUPP if fallocate is not supported&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 51216ee83e1bc036e9e7bd19ede536d98cffb244&lt;/p&gt;</comment>
                            <comment id="289250" author="gerrit" created="Tue, 12 Jan 2021 07:57:43 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/41148/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/41148/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14301&quot; title=&quot;EOPNOTSUPP, ENOTSUPP, ENOTSUP confusion&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14301&quot;&gt;&lt;del&gt;LU-14301&lt;/del&gt;&lt;/a&gt; llite: return EOPNOTSUPP if fallocate is not supported&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 71a9f5a466bfa46436535e3173d1fed37ca12aea&lt;/p&gt;</comment>
                            <comment id="289266" author="pjones" created="Tue, 12 Jan 2021 13:25:01 +0000"  >&lt;p&gt;Landed for 2.14&lt;/p&gt;</comment>
                            <comment id="289934" author="gerrit" created="Wed, 20 Jan 2021 15:29:20 +0000"  >&lt;p&gt;John L. Hammond (jhammond@whamcloud.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/41280&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/41280&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14301&quot; title=&quot;EOPNOTSUPP, ENOTSUPP, ENOTSUP confusion&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14301&quot;&gt;&lt;del&gt;LU-14301&lt;/del&gt;&lt;/a&gt; lustre: add ENOTSUPP to spelling.txt&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: b161a8606b589da824c60702ac35e758ce45c9ca&lt;/p&gt;</comment>
                            <comment id="293151" author="gerrit" created="Fri, 26 Feb 2021 08:23:04 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/41280/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/41280/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14301&quot; title=&quot;EOPNOTSUPP, ENOTSUPP, ENOTSUP confusion&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14301&quot;&gt;&lt;del&gt;LU-14301&lt;/del&gt;&lt;/a&gt; lustre: add ENOTSUPP to spelling.txt&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: e00733f0f87659c936039a58ea738cfb070638bc&lt;/p&gt;</comment>
                            <comment id="332511" author="mhanafi" created="Thu, 21 Apr 2022 00:57:06 +0000"  >&lt;p&gt;Is there a back port to 2.12. ?&lt;/p&gt;</comment>
                            <comment id="377003" author="gerrit" created="Fri, 30 Jun 2023 00:27:56 +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/+/51511&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/51511&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14301&quot; title=&quot;EOPNOTSUPP, ENOTSUPP, ENOTSUP confusion&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14301&quot;&gt;&lt;del&gt;LU-14301&lt;/del&gt;&lt;/a&gt; client: use EOPNOTSUPP instead of ENOTSUPP&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 1a0d553000d5a869f9039bab74dbdbb20d4259b0&lt;/p&gt;</comment>
                            <comment id="378644" author="gerrit" created="Fri, 14 Jul 2023 03:09:54 +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/+/51511/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/51511/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14301&quot; title=&quot;EOPNOTSUPP, ENOTSUPP, ENOTSUP confusion&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14301&quot;&gt;&lt;del&gt;LU-14301&lt;/del&gt;&lt;/a&gt; client: use EOPNOTSUPP instead of ENOTSUPP&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: ffd2fc1e17822c013d7790cc8247361c567792af&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                                        </outwardlinks>
                                                                <inwardlinks description="is related to">
                                                        </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|i01iqv:</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>