<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:40:44 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-4219] posix test_1: fpathconf.8 and pathconf.10 failed: did not return the value of NAME_MAX</title>
                <link>https://jira.whamcloud.com/browse/LU-4219</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;While running posix test on Lustre with BASELINE_FS=zfs, fpathconf.8 and pathconf.10 failed as follows:&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;####################################################
Test Name: fpathconf.8 Failed

	Test Description:
For the XNFS specification:
    Not in use.
For the XSH specification:
    If NAME_MAX is defined when &amp;lt;limits.h&amp;gt; is included, a call to
    fpathconf(fildes, _PC_NAME_MAX) when fildes refers to a directory,
    returns the value of NAME_MAX.
    (In XPG3 mode, a value &amp;gt; NAME_MAX is also allowed.)
Posix Ref: Component FPATHCONF Assertion 5.7.1.2-11(C)

	Test Strategy:
IF NAME_MAX is defined
  OPEN current directory using open() with O_RDONLY|O_NONBLOCK and
  with time out
  VERIFY that the open() was successful
  OBTAIN the system value associated with fpathconf() with
  _PC_NAME_MAX
  VERIFY that fpathconf() returned successfully and errno was not set
  VERIFY that return value is equal to NAME_MAX (or &amp;gt;= in XPG3 mode)
  OPEN root directory using open() with O_RDONLY|O_NONBLOCK and with
  time out
  VERIFY that the open() was successful
  OBTAIN the system value associated with fpathconf() with
  _PC_NAME_MAX
  VERIFY that fpathconf() returned successfully and errno was not set
  VERIFY that return value is equal to NAME_MAX (or &amp;gt;= in XPG3 mode)

	Test Information:
fpathconf(fd, _PC_NAME_MAX) on &quot;.&quot; did not return the value of NAME_MAX
value returned: 256, NAME_MAX: 255
(NAME_MAX should not be defined in &amp;lt;limits.h&amp;gt; if the 
run-time value can vary.)

####################################################
Test Name: pathconf.10 Failed

	Test Description:
For the XNFS specification:
    Not in use.
For the XSH specification:
    If NAME_MAX is defined when &amp;lt;limits.h&amp;gt; is included, a call to
    pathconf(path, _PC_NAME_MAX) when path refers to a directory,
    returns the value of NAME_MAX.
    (In XPG3 mode, a value &amp;gt; NAME_MAX is also allowed.)
Posix Ref: Component PATHCONF Assertion 5.7.1.2-33(C)

	Test Strategy:
IF NAME_MAX is defined
  FOR current directory and root directory
    OBTAIN the system value associated with pathconf() with
    _PC_NAME_MAX and current directory
    VERIFY that pathconf() returned successfully and errno was not set
    VERIFY that return value is equal to NAME_MAX (or &amp;gt;= in XPG3 mode)

	Test Information:
pathconf(&quot;.&quot;, _PC_NAME_MAX) did not return the value of NAME_MAX
value returned: 256, NAME_MAX: 255
(NAME_MAX should not be defined in &amp;lt;limits.h&amp;gt; if the 
run-time value can vary.)

####################################################
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Maloo report: &lt;a href=&quot;https://maloo.whamcloud.com/test_sets/e74b645e-4634-11e3-810a-52540035b04c&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://maloo.whamcloud.com/test_sets/e74b645e-4634-11e3-810a-52540035b04c&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Comments from Andreas:&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;I think all of the pathconf failures may be caused by pathconf being hard coded in glibc based on the Filesystem magic number. That means it isn&apos;t possible to change the value for Lustre without recompiling glibc. &lt;/p&gt;&lt;/blockquote&gt;</description>
                <environment>&lt;br/&gt;
BASELINE_FS=zfs&lt;br/&gt;
</environment>
        <key id="21891">LU-4219</key>
            <summary>posix test_1: fpathconf.8 and pathconf.10 failed: did not return the value of NAME_MAX</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="2" iconUrl="https://jira.whamcloud.com/images/icons/priorities/critical.svg">Critical</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="yujian">Jian Yu</assignee>
                                    <reporter username="yujian">Jian Yu</reporter>
                        <labels>
                            <label>zfs</label>
                    </labels>
                <created>Wed, 6 Nov 2013 15:46:02 +0000</created>
                <updated>Tue, 31 Dec 2013 15:40:40 +0000</updated>
                            <resolved>Fri, 20 Dec 2013 15:05:30 +0000</resolved>
                                    <version>Lustre 2.4.1</version>
                    <version>Lustre 2.5.0</version>
                                    <fixVersion>Lustre 2.6.0</fixVersion>
                    <fixVersion>Lustre 2.4.2</fixVersion>
                    <fixVersion>Lustre 2.5.1</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>6</watches>
                                                                            <comments>
                            <comment id="70951" author="adilger" created="Thu, 7 Nov 2013 05:40:14 +0000"  >&lt;p&gt;It looks like ldiskfs/ext4 uses EXT4_NAME_LEN = 255, and ZFS uses MAXNAMELEN = 256, which it gets from MDT0 statfs f_namelen.  Since glibc doesn&apos;t handle dynamic f_namelen, so we probably need to limit f_namelen to a max of 255 in mdd_statfs().&lt;/p&gt;</comment>
                            <comment id="70956" author="yujian" created="Thu, 7 Nov 2013 07:55:58 +0000"  >&lt;p&gt;For reference, in lts_vsx-pcts2.0beta2/tset/POSIX.os/files/pathconf/pathconf.c:&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;&lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; void
test10()
{
        &lt;span class=&quot;code-comment&quot;&gt;//......
&lt;/span&gt;        chkval(&lt;span class=&quot;code-quote&quot;&gt;&quot;.&quot;&lt;/span&gt;, _PC_NAME_MAX, (&lt;span class=&quot;code-object&quot;&gt;long&lt;/span&gt;)NAME_MAX, &lt;span class=&quot;code-quote&quot;&gt;&quot;NAME_MAX&quot;&lt;/span&gt;);
        &lt;span class=&quot;code-comment&quot;&gt;//......
&lt;/span&gt;}

&lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; void
chkval(path, name, expval, constname)
&lt;span class=&quot;code-object&quot;&gt;char&lt;/span&gt; *path;
&lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; name;
&lt;span class=&quot;code-object&quot;&gt;long&lt;/span&gt; expval;
&lt;span class=&quot;code-object&quot;&gt;char&lt;/span&gt; *constname;
{       
        &lt;span class=&quot;code-comment&quot;&gt;/* Check &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; value is equal to constant in &amp;lt;limits.h&amp;gt; */&lt;/span&gt;

        &lt;span class=&quot;code-comment&quot;&gt;//......
&lt;/span&gt;        rval = tbpathconf(path, name, SUCCEED, NOERROR);

        &lt;span class=&quot;code-comment&quot;&gt;//......
&lt;/span&gt;        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (rval != expval)
        {
                &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (testfail == 0)
                        xx_rpt(FAILURE);
                in_rpt(&lt;span class=&quot;code-quote&quot;&gt;&quot;pathconf(\&quot;&lt;/span&gt;%s\&lt;span class=&quot;code-quote&quot;&gt;&quot;, %s) did not &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; the value of %s&quot;&lt;/span&gt;,
                        path, strname(name), constname);
                in_rpt(&lt;span class=&quot;code-quote&quot;&gt;&quot;value returned: %ld, %s: %ld&quot;&lt;/span&gt;, rval, constname, expval);
                &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (testfail == 0)
                {
                        in_rpt(&lt;span class=&quot;code-quote&quot;&gt;&quot;(%s should not be defined in &amp;lt;limits.h&amp;gt; &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; the &quot;&lt;/span&gt;,
                                constname);
                        in_rpt(&lt;span class=&quot;code-quote&quot;&gt;&quot;run-time value can vary.)&quot;&lt;/span&gt;);
                }
                testfail++;
        }
        &lt;span class=&quot;code-comment&quot;&gt;//......
&lt;/span&gt;}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I&apos;ll upload a patch as per the comments from Andreas.&lt;/p&gt;</comment>
                            <comment id="71109" author="yujian" created="Fri, 8 Nov 2013 07:24:25 +0000"  >&lt;p&gt;Patch for master branch is in &lt;a href=&quot;http://review.whamcloud.com/8217&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/8217&lt;/a&gt;.&lt;br/&gt;
After the patch is ready to land, it can also be cherry-picked to Lustre b2_4 branch.&lt;/p&gt;</comment>
                            <comment id="71500" author="yujian" created="Thu, 14 Nov 2013 03:04:38 +0000"  >&lt;p&gt;Patch for master branch has landed. The remaining work is to land the patch on Lustre b2_4 and b2_5 branches.&lt;/p&gt;</comment>
                            <comment id="71560" author="bogl" created="Thu, 14 Nov 2013 19:41:43 +0000"  >&lt;p&gt;backport to b2_4&lt;br/&gt;
&lt;a href=&quot;http://review.whamcloud.com/8276&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/8276&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="72586" author="yujian" created="Mon, 2 Dec 2013 14:11:44 +0000"  >&lt;p&gt;Patch landed on Lustre b2_4 branch for 2.4.2.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="21892">LU-4220</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="19870">LU-3603</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|hzw87j:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>11481</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>