<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:59:08 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-13187] sanity test_129: current dir size 4096,  previous limit 20480</title>
                <link>https://jira.whamcloud.com/browse/LU-13187</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;This issue was created by maloo for Andreas Dilger  &amp;lt;adilger@whamcloud.com&amp;gt;&lt;/p&gt;

&lt;p&gt;This issue relates to the following test suite run:&lt;br/&gt;
&lt;a href=&quot;https://testing.whamcloud.com/test_sets/2c10b9da-44b8-11ea-bffa-52540065bddc&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://testing.whamcloud.com/test_sets/2c10b9da-44b8-11ea-bffa-52540065bddc&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;test_129 failed with the following error:&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;current dir size 4096,  previous limit 20480
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;It looks like this started on 2020-01-28 when a number of patches landed.&lt;/p&gt;





&lt;p&gt;VVVVVVV DO NOT REMOVE LINES BELOW, Added by Maloo for auto-association VVVVVVV&lt;br/&gt;
sanity test_129 - current dir size 4096,  previous limit 20480&lt;br/&gt;
sanity test_129 - dirsize 4096 &amp;lt; 32768 after 93 files&lt;/p&gt;</description>
                <environment></environment>
        <key id="57964">LU-13187</key>
            <summary>sanity test_129: current dir size 4096,  previous limit 20480</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="dongyang">Dongyang Li</assignee>
                                    <reporter username="maloo">Maloo</reporter>
                        <labels>
                    </labels>
                <created>Sat, 1 Feb 2020 07:22:24 +0000</created>
                <updated>Wed, 23 Sep 2020 14:58:33 +0000</updated>
                            <resolved>Thu, 10 Sep 2020 20:12:01 +0000</resolved>
                                    <version>Lustre 2.12.5</version>
                                    <fixVersion>Lustre 2.14.0</fixVersion>
                    <fixVersion>Lustre 2.12.6</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>16</watches>
                                                                            <comments>
                            <comment id="263856" author="gerrit" created="Sat, 22 Feb 2020 11:44:54 +0000"  >&lt;p&gt;Andreas Dilger (adilger@whamcloud.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/37683&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/37683&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-13187&quot; title=&quot;sanity test_129: current dir size 4096,  previous limit 20480&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-13187&quot;&gt;&lt;del&gt;LU-13187&lt;/del&gt;&lt;/a&gt; tests: add ONLY_REPEAT parameter to repeat subtests&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 23dd0d69dc325e206a653d1379661e27d8320fd9&lt;/p&gt;</comment>
                            <comment id="269093" author="adilger" created="Fri, 1 May 2020 07:09:45 +0000"  >&lt;p&gt;+42 failures in the past 4 weeks (2020-04-04 - 2020-04-30)&lt;/p&gt;</comment>
                            <comment id="269094" author="adilger" created="Fri, 1 May 2020 07:24:31 +0000"  >&lt;p&gt;Since this failure is only relevant for the ldiskfs code, it seems likely that the &lt;b&gt;only&lt;/b&gt; ldiskfs patch that landed on 2020-01-28 is the culprit, namely patch &lt;a href=&quot;https://review.whamcloud.com/37116&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/37116&lt;/a&gt; &quot;&lt;tt&gt;&lt;a href=&quot;https://jira.whamcloud.com/browse/LU-12977&quot; title=&quot;fix i_mutex for ldiskfs_truncate() in osd_execute_truncate()&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-12977&quot;&gt;&lt;del&gt;LU-12977&lt;/del&gt;&lt;/a&gt; ldiskfs: properly take inode_lock() for truncates&lt;/tt&gt;&quot;.  Unfortunately, I can&apos;t seem to get the test to fail consistently even when run in a loop, so it isn&apos;t possible to know whether reverting this patch would fix the test failures.&lt;/p&gt;</comment>
                            <comment id="269196" author="arshad512" created="Sun, 3 May 2020 22:37:37 +0000"  >&lt;p&gt;+1 on Master: &lt;a href=&quot;https://testing.whamcloud.com/sub_tests/d7a74936-6a65-4d13-8de0-1749e351fb84&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://testing.whamcloud.com/sub_tests/d7a74936-6a65-4d13-8de0-1749e351fb84&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="269444" author="adilger" created="Wed, 6 May 2020 17:39:09 +0000"  >&lt;p&gt;Dongyang, can you please look into this. It is being hit repeatedly with e2fsprogs testing, but also for regular review testing. &lt;/p&gt;</comment>
                            <comment id="269647" author="dongyang" created="Fri, 8 May 2020 04:53:18 +0000"  >&lt;p&gt;I&apos;m having a hard time to reproduce this and the patch &lt;a href=&quot;https://review.whamcloud.com/37116&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/37116&lt;/a&gt;&#160;is just about truncate, should have nothing to do with the size of the dir.&lt;/p&gt;</comment>
                            <comment id="269743" author="gerrit" created="Sat, 9 May 2020 06:39:20 +0000"  >&lt;p&gt;Andreas Dilger (adilger@whamcloud.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/38550&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/38550&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-13187&quot; title=&quot;sanity test_129: current dir size 4096,  previous limit 20480&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-13187&quot;&gt;&lt;del&gt;LU-13187&lt;/del&gt;&lt;/a&gt; tests: improve sanity test_129 checking&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: e8a90531a24453778e7a39e2fbdf7f8ff138b547&lt;/p&gt;</comment>
                            <comment id="270424" author="arshad512" created="Sat, 16 May 2020 17:15:39 +0000"  >&lt;p&gt;+1 on master &lt;a href=&quot;https://testing.whamcloud.com/sub_tests/963e28b3-1f52-4221-ad58-5c7b5871893b&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://testing.whamcloud.com/sub_tests/963e28b3-1f52-4221-ad58-5c7b5871893b&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="270801" author="gerrit" created="Thu, 21 May 2020 01:12:51 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/38550/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/38550/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-13187&quot; title=&quot;sanity test_129: current dir size 4096,  previous limit 20480&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-13187&quot;&gt;&lt;del&gt;LU-13187&lt;/del&gt;&lt;/a&gt; tests: improve sanity test_129 checking&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: eb80e37f023b85ef0e610ab65cee1d8ee07235fc&lt;/p&gt;</comment>
                            <comment id="270863" author="adilger" created="Thu, 21 May 2020 19:17:49 +0000"  >&lt;p&gt;So the patch has landed, but the test is still failing (although a bit more verbosely than before):&lt;br/&gt;
&lt;a href=&quot;https://testing.whamcloud.com/test_sets/3611de75-e067-402d-adce-920f82e2e2cc&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://testing.whamcloud.com/test_sets/3611de75-e067-402d-adce-920f82e2e2cc&lt;/a&gt;&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;CMD: trevis-13vm8 echo 32768 &amp;gt;/sys/fs/ldiskfs/dm-5/max_dir_size
CMD: trevis-13vm8 echo 24576 &amp;gt;/sys/fs/ldiskfs/dm-5/warning_dir_size
mcreate: cannot create `/mnt/lustre/d129.sanity/file_base_93&apos; with mode 0100644: No space left on device
rc=28 returned as expected after 93 files
total: 5 open/close in 0.01 seconds: 634.44 ops/second
 	dirsize 4096 &amp;lt; 32768 after 93 files
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Looking at the debug logs it is fairly clear that the MDS is returning &lt;tt&gt;-ENOSPC=-28&lt;/tt&gt; after creating only 93 files, but it isn&apos;t printing any errors related to reaching the directory limits.&lt;/p&gt;

&lt;p&gt;So it seems that this problem may be a defect in the RHEL7.8 ldiskfs code, or possibly in the upstream ext4 code for that kernel?  Could someone with a RHEL7.8 or 8.0 kernel run a manual test to see if this &lt;tt&gt;sys/fs/ldiskfs/XXX/max_dir_size&lt;/tt&gt; setting is working at all?&lt;/p&gt;</comment>
                            <comment id="270879" author="dongyang" created="Thu, 21 May 2020 23:37:46 +0000"  >&lt;p&gt;I&apos;ve done that on RHEL7.8 some time ago and it&apos;s working:&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;
[root@centos7 ~]# echo 20480 &amp;gt; /sys/fs/ldiskfs/vdb/max_dir_size
[root@centos7 ~]# echo 20480 &amp;gt; /sys/fs/ldiskfs/vdb/warning_dir_size 
[root@centos7 ~]# sh ./test_129.sh 
open(O_RDWR|O_CREAT): No space left on device
28
655
[root@centos7 ~]# stat /mnt/testdir
  File: &#8216;/mnt/testdir&#8217;
  Size: 20480     	Blocks: 40         IO Block: 4096   directory
Device: fd10h/64784d	Inode: 1048577     Links: 2
Access: (0755/drwxr-xr-x)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2020-05-07 21:35:00.688000000 +1000
Modify: 2020-05-07 21:45:55.832000000 +1000
Change: 2020-05-07 21:45:55.832000000 +1000
 Birth: -&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;the test_129.sh just creates files under testdir using multiop and prints errcode (28) and number of files created(655)&lt;/p&gt;

&lt;p&gt;I haven&apos;t done it on RHEL8 but I think ldiskfs side is fine.&lt;/p&gt;</comment>
                            <comment id="270881" author="adilger" created="Thu, 21 May 2020 23:56:51 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.whamcloud.com/secure/ViewProfile.jspa?name=dongyang&quot; class=&quot;user-hover&quot; rel=&quot;dongyang&quot;&gt;dongyang&lt;/a&gt; can you please submit a patch to test_129 that sets debug=-1 on the client and MDS, and maybe adds CDEBUG() to osd-ldiskfs so we can see where the -28 is coming from.  I was looking at the debug logs from the current failure and they didn&apos;t show enough details&lt;/p&gt;</comment>
                            <comment id="270895" author="gerrit" created="Fri, 22 May 2020 04:15:24 +0000"  >&lt;p&gt;Li Dongyang (dongyangli@ddn.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/38700&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/38700&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-13187&quot; title=&quot;sanity test_129: current dir size 4096,  previous limit 20480&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-13187&quot;&gt;&lt;del&gt;LU-13187&lt;/del&gt;&lt;/a&gt; tests: get more debug info from test_129&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: db1fab110e4a0e57afbbc0300e14f4fbbd2d6f94&lt;/p&gt;</comment>
                            <comment id="271421" author="hornc" created="Thu, 28 May 2020 14:57:16 +0000"  >&lt;p&gt;+1 on master &lt;a href=&quot;https://testing.whamcloud.com/test_sets/52fe5475-a2f3-4bd6-a2b7-c1dc99b20590&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://testing.whamcloud.com/test_sets/52fe5475-a2f3-4bd6-a2b7-c1dc99b20590&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="272840" author="yujian" created="Sun, 14 Jun 2020 05:55:59 +0000"  >&lt;p&gt;+1 on Lustre b2_12 branch: &lt;a href=&quot;https://testing.whamcloud.com/test_sets/5e20954f-2daf-47ff-9b6c-eacbf7a41dfc&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://testing.whamcloud.com/test_sets/5e20954f-2daf-47ff-9b6c-eacbf7a41dfc&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="273056" author="emoly.liu" created="Wed, 17 Jun 2020 01:54:35 +0000"  >&lt;p&gt;more on master: &lt;br/&gt;
&lt;a href=&quot;https://testing.whamcloud.com/test_sets/353838f4-221f-4336-accc-ccaea50e17e3&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://testing.whamcloud.com/test_sets/353838f4-221f-4336-accc-ccaea50e17e3&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;https://testing.whamcloud.com/test_sets/629cec52-dd19-40c0-b0f2-0c22435f81df&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://testing.whamcloud.com/test_sets/629cec52-dd19-40c0-b0f2-0c22435f81df&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="273223" author="hornc" created="Thu, 18 Jun 2020 18:42:01 +0000"  >&lt;p&gt;+1 on master: &lt;a href=&quot;https://testing.whamcloud.com/test_sets/1e95c770-b87b-4de6-9a58-08d40241c712&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://testing.whamcloud.com/test_sets/1e95c770-b87b-4de6-9a58-08d40241c712&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="276951" author="hornc" created="Fri, 7 Aug 2020 16:11:13 +0000"  >&lt;p&gt;+1 on master &lt;a href=&quot;https://testing.whamcloud.com/test_sets/62ce778c-aac4-4504-a1dc-ecd559e78533&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://testing.whamcloud.com/test_sets/62ce778c-aac4-4504-a1dc-ecd559e78533&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="276952" author="simmonsja" created="Fri, 7 Aug 2020 16:21:35 +0000"  >&lt;p&gt;Note Neil also ran into this problem on SUSE15 and pushed a fix here:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://review.whamcloud.com/#/c/39571/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/#/c/39571/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The same problem could be for RHEL platforms.&lt;/p&gt;</comment>
                            <comment id="277812" author="hornc" created="Thu, 20 Aug 2020 16:12:43 +0000"  >&lt;p&gt;+1 on master: &lt;a href=&quot;https://testing.whamcloud.com/test_sets/18024581-0159-4d24-84ee-9ae6554ced77&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://testing.whamcloud.com/test_sets/18024581-0159-4d24-84ee-9ae6554ced77&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="278350" author="adilger" created="Sun, 30 Aug 2020 17:16:30 +0000"  >&lt;p&gt;+3 on master:&lt;br/&gt;
&lt;a href=&quot;https://testing.whamcloud.com/test_sessions/7b47cafb-4b4e-4cc3-ae57-971c31e4ce84&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://testing.whamcloud.com/test_sessions/7b47cafb-4b4e-4cc3-ae57-971c31e4ce84&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;https://testing.whamcloud.com/test_sessions/70e01f6b-f61c-4d82-a3c6-fa141eb170fe&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://testing.whamcloud.com/test_sessions/70e01f6b-f61c-4d82-a3c6-fa141eb170fe&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;https://testing.whamcloud.com/test_sessions/27615c0d-2da3-42c0-8bb9-230da1f3acb2&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://testing.whamcloud.com/test_sessions/27615c0d-2da3-42c0-8bb9-230da1f3acb2&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="278351" author="adilger" created="Sun, 30 Aug 2020 17:18:42 +0000"  >&lt;p&gt;There were 55 failures of this subtest in the last week, which is about a 10% failure rate, but since sanity is running multiple times per patch, it is affecting landing more than this. &lt;/p&gt;</comment>
                            <comment id="278387" author="gerrit" created="Mon, 31 Aug 2020 14:16:30 +0000"  >&lt;p&gt;James Simmons (jsimmons@infradead.org) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/39773&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/39773&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-13187&quot; title=&quot;sanity test_129: current dir size 4096,  previous limit 20480&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-13187&quot;&gt;&lt;del&gt;LU-13187&lt;/del&gt;&lt;/a&gt; ldiskfs: Fix max_dir_size_kb for RHEL7&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 43fe1051ee6cab1c9f8b85863ec91aec2c06b251&lt;/p&gt;</comment>
                            <comment id="278389" author="simmonsja" created="Mon, 31 Aug 2020 14:20:22 +0000"  >&lt;p&gt;RHE8 and Ubuntu overlap for the ldiskfs patches so they will need to be updated at the same time. I can update Ubuntu but I don&apos;t have a RHEL8 system to fix it up on.&lt;/p&gt;</comment>
                            <comment id="278675" author="neilb" created="Wed, 2 Sep 2020 21:33:28 +0000"  >&lt;p&gt;I think this problem is caused by some metadata directory trying to grow.&lt;/p&gt;

&lt;p&gt;I added some tracing and found that the call to osd_ldiskfs_append() in iam_new_node() was failing with ENOSPC.&lt;/p&gt;

&lt;p&gt;Maybe the best fix would be to add a test to ldiskfs_append() to check if it is a special lustre metadata directory, and if so to bypass the dir limit.&lt;/p&gt;

&lt;p&gt;Is there an easy way to detect lustre metadata directories?&lt;/p&gt;</comment>
                            <comment id="278690" author="dongyang" created="Thu, 3 Sep 2020 00:38:21 +0000"  >&lt;p&gt;Great, I just could not reproduce the problem.&lt;/p&gt;

&lt;p&gt;if it&apos;s failing with ENOSPC from osd_ldiskfs_append(), I think we can add a new param to ldiskfs/ext4_append() to bypass the limit check for the oi related code path, like iam_new_node(), iam_lfix_create() and iam_lvar_create().&lt;/p&gt;

&lt;p&gt;the normal dir is using a different code path, osd_ldiskfs_add_entry()-&amp;gt;__ldiskfs/ext4_add_entry()&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="278711" author="adilger" created="Thu, 3 Sep 2020 06:08:52 +0000"  >&lt;p&gt;Neil, thanks for tracking this down.&lt;/p&gt;

&lt;p&gt;Dongyang, I think it would be better avoid changing the API for &lt;tt&gt;ext4_append()&lt;/tt&gt;, as that would need even more changes to the core ext4 code.&lt;/p&gt;

&lt;p&gt;I think there are two options that are relatively simple:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;split &lt;tt&gt;ext4_append()&lt;/tt&gt; into an outer function of the same name that checks the directory size limit, and a second internal function (e.g. &lt;tt&gt;ext4_append_nolimit()&lt;/tt&gt; or similar) that can be called directly from the &lt;tt&gt;iam_&amp;#42;&lt;/tt&gt; functions&lt;/li&gt;
	&lt;li&gt;set a new &lt;tt&gt;EXT4_STATE_IAM&lt;/tt&gt; flag on the IAM objects when they are opened, and check that inside &lt;tt&gt;ext4_append()&lt;/tt&gt; when checking the size limit&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Probably the second option is less intrusive, as it is likely that patch could avoid conflicts with &lt;tt&gt;ext4-pdirop.patch&lt;/tt&gt; and &lt;tt&gt;ext4-misc.patch&lt;/tt&gt;, and hopefully would not need to be different for every kernel.&lt;/p&gt;</comment>
                            <comment id="278809" author="gerrit" created="Thu, 3 Sep 2020 23:48:01 +0000"  >&lt;p&gt;Li Dongyang (dongyangli@ddn.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/39823&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/39823&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-13187&quot; title=&quot;sanity test_129: current dir size 4096,  previous limit 20480&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-13187&quot;&gt;&lt;del&gt;LU-13187&lt;/del&gt;&lt;/a&gt; osd-ldiskfs: don&apos;t enforce max dir size limit on IAM objects&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 07c97b04411a396572d7124f3217a7d561a96d2b&lt;/p&gt;</comment>
                            <comment id="279276" author="gerrit" created="Thu, 10 Sep 2020 19:43:38 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/39823/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/39823/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-13187&quot; title=&quot;sanity test_129: current dir size 4096,  previous limit 20480&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-13187&quot;&gt;&lt;del&gt;LU-13187&lt;/del&gt;&lt;/a&gt; osd-ldiskfs: don&apos;t enforce max dir size limit on IAM objects&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 03e6db505be90d35ccacb3af7e15277784e5d448&lt;/p&gt;</comment>
                            <comment id="279278" author="pjones" created="Thu, 10 Sep 2020 20:12:01 +0000"  >&lt;p&gt;Landed for 2.14&lt;/p&gt;</comment>
                            <comment id="279298" author="gerrit" created="Fri, 11 Sep 2020 00:00:41 +0000"  >&lt;p&gt;Andreas Dilger (adilger@whamcloud.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/39882&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/39882&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-13187&quot; title=&quot;sanity test_129: current dir size 4096,  previous limit 20480&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-13187&quot;&gt;&lt;del&gt;LU-13187&lt;/del&gt;&lt;/a&gt; osd-ldiskfs: don&apos;t enforce max dir size limit on IAM objects&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_12&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: d8c40507e87798e37d05988d190ccef78b528c42&lt;/p&gt;</comment>
                            <comment id="280075" author="gerrit" created="Sat, 19 Sep 2020 18:12:58 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/39882/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/39882/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-13187&quot; title=&quot;sanity test_129: current dir size 4096,  previous limit 20480&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-13187&quot;&gt;&lt;del&gt;LU-13187&lt;/del&gt;&lt;/a&gt; osd-ldiskfs: don&apos;t enforce max dir size limit on IAM objects&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_12&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: a73f4e566debadfc156b6d8c48237a2e34ac75ba&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="50610">LU-11310</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="60449">LU-13916</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|i00t0n:</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>