<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:25:25 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-2463] posix test_1: mkfifo.3 and umask.2 failed</title>
                <link>https://jira.whamcloud.com/browse/LU-2463</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;The POSIX compliance testing 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;POSIX failures: 2

Test Name                   Baseline   Lustre Report
mkfifo.3                   Succeeded          Failed
umask.2                    Succeeded          Failed

FAILURE DESCRIPTIONS:

####################################################
Test Name: mkfifo.3 Failed

	Test Description:
A call to mkfifo() creates a new FIFO special file with file
permission bits determined by the mode parameter and the file creation
mask and returns a value of zero.
Posix Ref: Component MKFIFO Assertion 5.4.2.2-25(A)

	Test Strategy:
CREATE child process using cppair() - (genlib)
  SET process creation file mode to S_IRUSR|I_IWGRP|S_IXOTH using
  umask()
  FOR each of the access modes: S_IRWXU|S_IRWXG|S_IRWXO,
  S_IXUSR|S_IWGRP|S_ROTH and S_IRUSR|S_IWGRP|S_IXOTH
    IF FIFO already exists (eaccess()) then remove() it
    CREATE FIFO using mkfifo()
    VERIFY that mkfifo() returned 0 and errno was not set
    VERIFY that the new file is a FIFO using S_ISFIFO(st_mode)

	Test Information:
mkfifo(&quot;mkfifo-t.3&quot;, 0777) with umask = 0421 set permissions incorrectly
expected: 0356, observed: 0777
mkfifo(&quot;mkfifo-t.3&quot;, 0124) with umask = 0421 set permissions incorrectly
expected: 0104, observed: 0124
mkfifo(&quot;mkfifo-t.3&quot;, 0421) with umask = 0421 set permissions incorrectly
expected: 0, observed: 0421

####################################################
Test Name: umask.2 Failed

	Test Description:
A call to umask(cmask) sets the file mode creation mask argument cmask
to turn off permission bits in the mode argument supplied by
open(path, flags, mode), creat(path, mode), mkdir(path, mode), and
mkfifo(path, mode).
Posix Ref: Component UMASK Assertion 5.3.3.2-05(A)

	Test Strategy:
FOR each mode in a list of access modes:
  SET file mode creation mask using umask() with current mode
  FOR each of the functions open(), creat(), mkdir() and mkfifo()
    REMOVE file using remove()
    VERIFY that the file nolonger exists using eaccess() - (genlib)
    CALL current function
    VERIFY that the current function returned successfully
    OBTAIN file status information using stat()
    VERIFY that st_mode matches the current mode
REMOVE file using remove()

	Test Information:
umask(0400) did not set file creation mask correctly
mkfifo(&quot;umask-t.2&quot;, 0777) created file with permissions 0777, expected
	0377
mkfifo(&quot;umask-t.2&quot;, 0421) created file with permissions 0421, expected
	021
umask(0200) did not set file creation mask correctly
mkfifo(&quot;umask-t.2&quot;, 0777) created file with permissions 0777, expected
	0577
umask(0100) did not set file creation mask correctly
mkfifo(&quot;umask-t.2&quot;, 0777) created file with permissions 0777, expected
	0677
umask(040) did not set file creation mask correctly
mkfifo(&quot;umask-t.2&quot;, 0777) created file with permissions 0777, expected
	0737
umask(020) did not set file creation mask correctly
mkfifo(&quot;umask-t.2&quot;, 0777) created file with permissions 0777, expected
	0757
mkfifo(&quot;umask-t.2&quot;, 0421) created file with permissions 0421, expected
	0401
umask(010) did not set file creation mask correctly
mkfifo(&quot;umask-t.2&quot;, 0777) created file with permissions 0777, expected
	0767
umask(04) did not set file creation mask correctly
mkfifo(&quot;umask-t.2&quot;, 0777) created file with permissions 0777, expected
	0773
umask(02) did not set file creation mask correctly
mkfifo(&quot;umask-t.2&quot;, 0777) created file with permissions 0777, expected
	0775
umask(01) did not set file creation mask correctly
mkfifo(&quot;umask-t.2&quot;, 0777) created file with permissions 0777, expected
	0776
mkfifo(&quot;umask-t.2&quot;, 0421) created file with permissions 0421, expected
	0420
umask(0377) did not set file creation mask correctly
mkfifo(&quot;umask-t.2&quot;, 0777) created file with permissions 0777, expected
	0400
mkfifo(&quot;umask-t.2&quot;, 0421) created file with permissions 0421, expected
	0400
umask(0577) did not set file creation mask correctly
mkfifo(&quot;umask-t.2&quot;, 0777) created file with permissions 0777, expected
	0200
mkfifo(&quot;umask-t.2&quot;, 0421) created file with permissions 0421, expected 0
umask(0677) did not set file creation mask correctly
mkfifo(&quot;umask-t.2&quot;, 0777) created file with permissions 0777, expected
	0100
mkfifo(&quot;umask-t.2&quot;, 0421) created file with permissions 0421, expected 0
umask(077) did not set file creation mask correctly
mkfifo(&quot;umask-t.2&quot;, 0777) created file with permissions 0777, expected
	0700
mkfifo(&quot;umask-t.2&quot;, 0421) created file with permissions 0421, expected
	0400
umask(0737) did not set file creation mask correctly
mkfifo(&quot;umask-t.2&quot;, 0777) created file with permissions 0777, expected
	040
mkfifo(&quot;umask-t.2&quot;, 0421) created file with permissions 0421, expected 0
umask(0757) did not set file creation mask correctly
mkfifo(&quot;umask-t.2&quot;, 0777) created file with permissions 0777, expected
	020
mkfifo(&quot;umask-t.2&quot;, 0421) created file with permissions 0421, expected
	020
umask(0767) did not set file creation mask correctly
mkfifo(&quot;umask-t.2&quot;, 0777) created file with permissions 0777, expected
	010
mkfifo(&quot;umask-t.2&quot;, 0421) created file with permissions 0421, expected 0
umask(0707) did not set file creation mask correctly
mkfifo(&quot;umask-t.2&quot;, 0777) created file with permissions 0777, expected
	070
mkfifo(&quot;umask-t.2&quot;, 0421) created file with permissions 0421, expected
	020
umask(0773) did not set file creation mask correctly
mkfifo(&quot;umask-t.2&quot;, 0777) created file with permissions 0777, expected
	04
mkfifo(&quot;umask-t.2&quot;, 0421) created file with permissions 0421, expected 0
umask(0775) did not set file creation mask correctly
mkfifo(&quot;umask-t.2&quot;, 0777) created file with permissions 0777, expected
	02
mkfifo(&quot;umask-t.2&quot;, 0421) created file with permissions 0421, expected 0
umask(0776) did not set file creation mask correctly
mkfifo(&quot;umask-t.2&quot;, 0777) created file with permissions 0777, expected
	01
mkfifo(&quot;umask-t.2&quot;, 0421) created file with permissions 0421, expected
	01
umask(0770) did not set file creation mask correctly
mkfifo(&quot;umask-t.2&quot;, 0777) created file with permissions 0777, expected
	07
mkfifo(&quot;umask-t.2&quot;, 0421) created file with permissions 0421, expected
	01
umask(0777) did not set file creation mask correctly
mkfifo(&quot;umask-t.2&quot;, 0777) created file with permissions 0777, expected 0
mkfifo(&quot;umask-t.2&quot;, 0421) created file with permissions 0421, expected 0
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Maloo report: &lt;a href=&quot;https://maloo.whamcloud.com/test_sets/561a3ae4-4399-11e2-a9ca-52540035b04c&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://maloo.whamcloud.com/test_sets/561a3ae4-4399-11e2-a9ca-52540035b04c&lt;/a&gt;&lt;/p&gt;</description>
                <environment>Lustre Branch: b2_1&lt;br/&gt;
Lustre Build: &lt;a href=&quot;http://build.whamcloud.com/job/lustre-b2_1/150/&quot;&gt;http://build.whamcloud.com/job/lustre-b2_1/150/&lt;/a&gt;&lt;br/&gt;
Distro/Arch: RHEL6.3/x86_64 (kernel version: 2.6.32-279.14.1.el6)&lt;br/&gt;
Network: TCP (1GigE)&lt;br/&gt;
Baseline: ext4</environment>
        <key id="16893">LU-2463</key>
            <summary>posix test_1: mkfifo.3 and umask.2 failed</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="1" iconUrl="https://jira.whamcloud.com/images/icons/priorities/blocker.svg">Blocker</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="laisiyao">Lai Siyao</assignee>
                                    <reporter username="yujian">Jian Yu</reporter>
                        <labels>
                    </labels>
                <created>Tue, 11 Dec 2012 09:21:51 +0000</created>
                <updated>Thu, 20 Dec 2012 00:00:37 +0000</updated>
                            <resolved>Thu, 20 Dec 2012 00:00:37 +0000</resolved>
                                    <version>Lustre 2.4.0</version>
                    <version>Lustre 2.1.4</version>
                                    <fixVersion>Lustre 2.4.0</fixVersion>
                    <fixVersion>Lustre 2.1.4</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>6</watches>
                                                                            <comments>
                            <comment id="49040" author="yujian" created="Tue, 11 Dec 2012 09:26:08 +0000"  >&lt;p&gt;MDS_MOUNT_OPTS=&quot;-o user_xattr,acl&quot; (for MGS/MDS)&lt;br/&gt;
MOUNTOPT=&quot;-o user_xattr,acl,flock&quot; (for Client)&lt;/p&gt;

&lt;p&gt;Lai, is this related to &lt;a href=&quot;http://review.whamcloud.com/4660?&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/4660?&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="49095" author="yujian" created="Wed, 12 Dec 2012 00:42:03 +0000"  >&lt;p&gt;MDS_MOUNT_OPTS=&quot;-o user_xattr&quot; (for MGS/MDS)&lt;br/&gt;
MOUNTOPT=&quot;-o user_xattr,flock&quot; (for Client)&lt;/p&gt;

&lt;p&gt;The same failure occurred: &lt;a href=&quot;https://maloo.whamcloud.com/test_sets/a1d65ede-4409-11e2-a9ca-52540035b04c&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://maloo.whamcloud.com/test_sets/a1d65ede-4409-11e2-a9ca-52540035b04c&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="49155" author="pjones" created="Wed, 12 Dec 2012 15:29:14 +0000"  >&lt;p&gt;Minh&lt;/p&gt;

&lt;p&gt;Could you please look into this one?&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;

&lt;p&gt;Peter&lt;/p&gt;</comment>
                            <comment id="49159" author="mdiep" created="Wed, 12 Dec 2012 16:38:34 +0000"  >&lt;p&gt;Let&apos;s wait to see what Lai says about this. Seems related to his patch &lt;/p&gt;</comment>
                            <comment id="49177" author="laisiyao" created="Wed, 12 Dec 2012 23:22:07 +0000"  >&lt;p&gt;The cause is that osd_mknod() calls kernel init_special_inode(), which will set inode-&amp;gt;i_mode to the mode sent from client, instead we should not touch i_mode here, because it&apos;s set in creation time.&lt;/p&gt;

&lt;p&gt;I&apos;ll commit a fix soon.&lt;/p&gt;</comment>
                            <comment id="49181" author="laisiyao" created="Thu, 13 Dec 2012 01:45:51 +0000"  >&lt;p&gt;Patch is at &lt;a href=&quot;http://review.whamcloud.com/#change,4820&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#change,4820&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="49404" author="sarah" created="Tue, 18 Dec 2012 14:29:12 +0000"  >&lt;p&gt;this failure also seen in lustre-master:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://maloo.whamcloud.com/test_sets/04e08256-4708-11e2-b16f-52540035b04c&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://maloo.whamcloud.com/test_sets/04e08256-4708-11e2-b16f-52540035b04c&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="49474" author="pjones" created="Thu, 20 Dec 2012 00:00:37 +0000"  >&lt;p&gt;Landed for 2.1.4 and 2.4&lt;/p&gt;</comment>
                    </comments>
                    <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|hzvdlb:</customfieldvalue>

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