<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:52:06 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-12383] lfs project inhert difference between ldiskfs and zfs</title>
                <link>https://jira.whamcloud.com/browse/LU-12383</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Regular files inherit the Project Inherit flag in ldiskfs, zfs they do not.&lt;/p&gt;

&lt;p&gt;Given the following commands:&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;mkdir proj
lfs project -sp 1000 proj
touch proj/test
lfs project proj
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;ldiskfs output:&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; 1000 P proj/test &lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;ZFS 0.8.0 output:&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; 1000 - proj/test
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&#160;Both correctly set inherit on sub-directories. &lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;This difference in behavior causes sanity-quota test_54 to fail for ZFS 0.8.0&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://testing.whamcloud.com/test_sets/afa8f438-81b8-11e9-869c-52540065bddc&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://testing.whamcloud.com/test_sets/afa8f438-81b8-11e9-869c-52540065bddc&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
        <key id="55840">LU-12383</key>
            <summary>lfs project inhert difference between ldiskfs and zfs</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="wshilong">Wang Shilong</assignee>
                                    <reporter username="utopiabound">Nathaniel Clark</reporter>
                        <labels>
                            <label>quota</label>
                    </labels>
                <created>Tue, 4 Jun 2019 14:22:22 +0000</created>
                <updated>Fri, 12 Jul 2019 14:18:13 +0000</updated>
                            <resolved>Sun, 16 Jun 2019 03:58:45 +0000</resolved>
                                    <version>Lustre 2.13.0</version>
                                    <fixVersion>Lustre 2.13.0</fixVersion>
                    <fixVersion>Lustre 2.12.3</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>7</watches>
                                                                            <comments>
                            <comment id="248438" author="utopiabound" created="Wed, 5 Jun 2019 12:04:15 +0000"  >&lt;p&gt;Is there a specification for behavior of the INHERIT bit on regular files?&#160; It seems that it doesn&apos;t make sense for the inherit bit to be set on a regular file, just on sub-directories.&lt;/p&gt;

&lt;p&gt;There would be three ways to fix this.&#160;&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;Alter ZFS (or osd-zfs) to set inherit bit on files created under directory with it set&lt;/li&gt;
	&lt;li&gt;Change sanity-quota/test_54 to not care if bit is set on those files (&quot;c1&quot;)&lt;/li&gt;
	&lt;li&gt;Alter &lt;tt&gt;lfs project -c&lt;/tt&gt; to not complain if inherit bit is &quot;missing&quot; from regular files&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;My initial impression is that, I&apos;m not sure #1 is &quot;correct&quot;.&#160; #2 seems like a hack, so I think #3 is best option, since I don&apos;t feel like it makes sense for a regular file to have this bit set.&lt;/p&gt;</comment>
                            <comment id="248464" author="adilger" created="Wed, 5 Jun 2019 16:53:01 +0000"  >&lt;p&gt;How does the inheritance of this flag work on native ext4 and XFS?  To my thinking, it doesn&apos;t make sense to inherit this flag on regular files, only directories. That would imply the correct fix is a fourth option - not to inherit the flag in ldiskfs, and match the behavior of ZFS, but let&apos;s first see how other filesystems handle it. &lt;/p&gt;</comment>
                            <comment id="248494" author="wshilong" created="Thu, 6 Jun 2019 02:28:04 +0000"  >&lt;p&gt;I just checked Upstream ext4 and xfs:&lt;/p&gt;

&lt;p&gt;XFS only inherit inherit flag for Directory, but ext4 always inherit it for dirs/regular files.&lt;br/&gt;
To fix this problem, I&apos;d prefer:&lt;/p&gt;

&lt;p&gt;1) Alter lfs project -c to only complain if inherit bit is &quot;missing&quot; from Directory.&lt;br/&gt;
2) send a patch to upstream ext4 to keep consistent behavior with ext4 with xfs/zfs.&lt;/p&gt;

&lt;p&gt;Notice, even we have inherit flag for regular files, it dose no harm as well.&lt;/p&gt;</comment>
                            <comment id="248497" author="gerrit" created="Thu, 6 Jun 2019 02:51:05 +0000"  >&lt;p&gt;Wang Shilong (wshilong@ddn.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/35076&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/35076&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-12383&quot; title=&quot;lfs project inhert difference between ldiskfs and zfs&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-12383&quot;&gt;&lt;del&gt;LU-12383&lt;/del&gt;&lt;/a&gt; utils: only check project inherit bit for dir&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 745050395fdb431e24b4cc7c07f8cefa360bf6a4&lt;/p&gt;</comment>
                            <comment id="248498" author="wshilong" created="Thu, 6 Jun 2019 03:01:53 +0000"  >&lt;p&gt;Following simple ext4 patch shall fix the problem:&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;diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h
index 1cb67859e051..ceb74093e138 100644
--- a/fs/ext4/ext4.h
+++ b/fs/ext4/ext4.h
@@ -421,7 +421,8 @@ struct flex_groups {
                           EXT4_PROJINHERIT_FL | EXT4_CASEFOLD_FL)
 
 /* Flags that are appropriate for regular files (all but dir-specific ones). */
-#define EXT4_REG_FLMASK (~(EXT4_DIRSYNC_FL | EXT4_TOPDIR_FL | EXT4_CASEFOLD_FL))
+#define EXT4_REG_FLMASK (~(EXT4_DIRSYNC_FL | EXT4_TOPDIR_FL | EXT4_CASEFOLD_FL |\
+                          EXT4_PROJINHERIT_FL))
 
 /* Flags that are appropriate for non-directories/regular files. */
 #define EXT4_OTHER_FLMASK (EXT4_NODUMP_FL | EXT4_NOATIME_FL)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="248503" author="wshilong" created="Thu, 6 Jun 2019 04:36:59 +0000"  >&lt;p&gt;FYI, I sent two Linux upstream patches to fix ext4 and f2fs:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://patchwork.ozlabs.org/patch/1110877/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://patchwork.ozlabs.org/patch/1110877/&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;http://patchwork.ozlabs.org/patch/1110878/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://patchwork.ozlabs.org/patch/1110878/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="248593" author="adilger" created="Thu, 6 Jun 2019 21:28:52 +0000"  >&lt;p&gt;Please also submit an ldiskfs patch for this, I have also reviewed the ext4 patch on the list.&lt;/p&gt;</comment>
                            <comment id="248925" author="wshilong" created="Tue, 11 Jun 2019 00:20:24 +0000"  >&lt;p&gt;Andreas,&lt;/p&gt;

&lt;p&gt;Since there won&apos;t be obvious errors with &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-12383&quot; title=&quot;lfs project inhert difference between ldiskfs and zfs&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-12383&quot;&gt;&lt;del&gt;LU-12383&lt;/del&gt;&lt;/a&gt; utils: only check project inherit bit for dir&lt;br/&gt;
Do you think we&apos;d better include ldiskfs fix parts too?&lt;/p&gt;</comment>
                            <comment id="248964" author="adilger" created="Tue, 11 Jun 2019 08:44:25 +0000"  >&lt;p&gt;I think it makes sense to include ldiskfs-side patches, so that we get fewer &quot;corrupt&quot; inodes on a filesystem, and hopefully they can mostly be aged out of the filesystem after the ldsiskfs patch has been around for some time.  &lt;/p&gt;

&lt;p&gt;We will also want a patch for e2fsck to detect and repair these errors on non-directory inodes without complaining too much.&lt;/p&gt;</comment>
                            <comment id="249340" author="gerrit" created="Sun, 16 Jun 2019 03:31:56 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/35076/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/35076/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-12383&quot; title=&quot;lfs project inhert difference between ldiskfs and zfs&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-12383&quot;&gt;&lt;del&gt;LU-12383&lt;/del&gt;&lt;/a&gt; utils: only check project inherit bit for dir&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: e4ad5c17c99e7ede5deabffe0bacdd851240eb86&lt;/p&gt;</comment>
                            <comment id="249348" author="pjones" created="Sun, 16 Jun 2019 03:58:45 +0000"  >&lt;p&gt;Landed for 2.13&lt;/p&gt;</comment>
                            <comment id="249369" author="lixi_wc" created="Mon, 17 Jun 2019 04:06:42 +0000"  >&lt;p&gt;Should we create another ticket to track the ldiskfs patch?&lt;/p&gt;</comment>
                            <comment id="249370" author="pjones" created="Mon, 17 Jun 2019 04:08:36 +0000"  >&lt;p&gt;We can reopen this one if it seems likely to complete this work during the 2.13 cycle. If that is in doubt then, sure, let&apos;s have a new ticket linked to this one&lt;/p&gt;</comment>
                            <comment id="250397" author="gerrit" created="Mon, 1 Jul 2019 01:30:28 +0000"  >&lt;p&gt;Wang Shilong (wshilong@ddn.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/35393&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/35393&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-12383&quot; title=&quot;lfs project inhert difference between ldiskfs and zfs&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-12383&quot;&gt;&lt;del&gt;LU-12383&lt;/del&gt;&lt;/a&gt; utils: only check project inherit bit for dir&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_12&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: b84e222d7075acc702a239ee4ece3c71e22576a0&lt;/p&gt;</comment>
                            <comment id="251212" author="gerrit" created="Fri, 12 Jul 2019 05:25:31 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/35393/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/35393/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-12383&quot; title=&quot;lfs project inhert difference between ldiskfs and zfs&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-12383&quot;&gt;&lt;del&gt;LU-12383&lt;/del&gt;&lt;/a&gt; utils: only check project inherit bit for dir&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_12&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 1299c5d5f92a7086b48b721d35bfce9ded177b94&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10120">
                    <name>Blocker</name>
                                            <outwardlinks description="is blocking">
                                        <issuelink>
            <issuekey id="55745">LU-12336</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|i00hj3:</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>