<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:41:24 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-11154]  use proper flags for FS_IOC_{FSSET,FSGET}XATTR</title>
                <link>https://jira.whamcloud.com/browse/LU-11154</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Alexander Mitin commented on &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-10030&quot; title=&quot;add native lfs tools support for project quota&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-10030&quot;&gt;&lt;del&gt;LU-10030&lt;/del&gt;&lt;/a&gt;:&lt;br/&gt;
--------------------------------------&lt;/p&gt;

&lt;p&gt;The wrong constant is used in the implementation of this feature.&lt;/p&gt;

&lt;p&gt;File: lustre/utils/lfs_project.c&lt;/p&gt;

&lt;p&gt;When process fsx.fsx_xflags bits the following functions use the wrong constant value to check the project inherit flag.&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;project_check_one()&lt;/li&gt;
	&lt;li&gt;project_set_one()&lt;/li&gt;
	&lt;li&gt;project_clear_one()&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;These functions are using FS_IOC_FSGETXATTR and FS_IOC_FSGETXATTR ioctl calls to get or set fsxattr structure.&lt;/p&gt;

&lt;p&gt;Currently, to process fsx_xflags field from the fsxattr structure these functions use the constant LL_PROJINHERIT_FL, which is defined as the following:&lt;/p&gt;

&lt;p&gt;#define LL_PROJINHERIT_FL 0x20000000&lt;/p&gt;

&lt;p&gt;However, when processing fsx_xflags from the fsxattr structure , the different constant should be used: FS_XFLAG_PROJINHERIT, which is defined in linux/fs.h file as following:&lt;/p&gt;

&lt;p&gt;#define FS_XFLAG_PROJINHERIT 0x00000200 /* create with parents projid */&lt;/p&gt;

&lt;p&gt;See the following &lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/torvalds/linux/blob/master/include/uapi/linux/fs.h#L155&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/torvalds/linux/blob/master/include/uapi/linux/fs.h#L155&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/torvalds/linux/blob/master/include/uapi/linux/fs.h#L178&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/torvalds/linux/blob/master/include/uapi/linux/fs.h#L178&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://unix.stackexchange.com/questions/448637/file-system-inode-flags-difference-between-fs-ioc-getflags-and-fs-ioc-fsgetxatt/448639&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://unix.stackexchange.com/questions/448637/file-system-inode-flags-difference-between-fs-ioc-getflags-and-fs-ioc-fsgetxatt/448639&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
        <key id="52743">LU-11154</key>
            <summary> use proper flags for FS_IOC_{FSSET,FSGET}XATTR</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="1">Fixed</resolution>
                                        <assignee username="wshilong">Wang Shilong</assignee>
                                    <reporter username="wshilong">Wang Shilong</reporter>
                        <labels>
                            <label>quota</label>
                    </labels>
                <created>Wed, 18 Jul 2018 11:42:50 +0000</created>
                <updated>Thu, 23 Aug 2018 10:12:26 +0000</updated>
                            <resolved>Thu, 23 Aug 2018 10:12:26 +0000</resolved>
                                    <version>Lustre 2.11.0</version>
                                    <fixVersion>Lustre 2.12.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                            <comments>
                            <comment id="230454" author="gerrit" created="Wed, 18 Jul 2018 11:44:51 +0000"  >&lt;p&gt;Wang Shilong (wshilong@ddn.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/32828&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/32828&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11154&quot; title=&quot; use proper flags for FS_IOC_{FSSET,FSGET}XATTR&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-11154&quot;&gt;&lt;del&gt;LU-11154&lt;/del&gt;&lt;/a&gt; llite: use proper flags for FS_IOC_&lt;/p&gt;
{FSSET,FSGET}
&lt;p&gt;XATTR&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 49e14a61816aa4fb77205ae6855b2b5af90cf47a&lt;/p&gt;</comment>
                            <comment id="232477" author="gerrit" created="Thu, 23 Aug 2018 07:17:54 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/32828/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/32828/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11154&quot; title=&quot; use proper flags for FS_IOC_{FSSET,FSGET}XATTR&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-11154&quot;&gt;&lt;del&gt;LU-11154&lt;/del&gt;&lt;/a&gt; llite: use proper flags for FS_IOC_&lt;/p&gt;
{FSSET,FSGET}
&lt;p&gt;XATTR&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 39fad9dc60ddd30bdfe165b40927e19f38b76428&lt;/p&gt;</comment>
                            <comment id="232493" author="pjones" created="Thu, 23 Aug 2018 10:12:26 +0000"  >&lt;p&gt;Landed for 2.12&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="48461">LU-10030</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </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|hzzzc7:</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>