<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:25:33 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-2479] sanity.sh test_129: max dir size limit work incorrectly.</title>
                <link>https://jira.whamcloud.com/browse/LU-2479</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>
&lt;p&gt;easy replicate by hand.&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;root@rhel6-64 test1&amp;#93;&lt;/span&gt;# for i in `seq 10000000`; do touch $i; done&lt;br/&gt;
...&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;root@rhel6-64 test1&amp;#93;&lt;/span&gt;# echo 16384 &amp;gt;/sys/fs/ldiskfs/loop0/max_dir_size&lt;br/&gt;
root@rhel6-64 lustre]# ls -ls&lt;br/&gt;
total 256&lt;br/&gt;
256 drwxr-xr-x 2 root root 258048 Dec 12 12:28 test1&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;root@rhel6-64 lustre&amp;#93;&lt;/span&gt;# mkdir test1/proba&lt;br/&gt;
mkdir: cannot create directory `test1/proba&apos;: File too large&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;root@rhel6-64 test1&amp;#93;&lt;/span&gt;# echo 0 &amp;gt;/sys/fs/ldiskfs/loop0/max_dir_size&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;root@rhel6-64 lustre&amp;#93;&lt;/span&gt;# cd test1&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;root@rhel6-64 test1&amp;#93;&lt;/span&gt;# rm -rf *&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;root@rhel6-64 test1&amp;#93;&lt;/span&gt;# ls -l&lt;br/&gt;
total 0&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;root@rhel6-64 test1&amp;#93;&lt;/span&gt;# echo 16384 &amp;gt;/sys/fs/ldiskfs/loop0/max_dir_size&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;root@rhel6-64 test1&amp;#93;&lt;/span&gt;# cd ..&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;root@rhel6-64 lustre&amp;#93;&lt;/span&gt;# ls -ls&lt;br/&gt;
total 264&lt;br/&gt;
264 drwxr-xr-x 2 root root 266240 Dec 12 12:28 test1&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;root@rhel6-64 lustre&amp;#93;&lt;/span&gt;# mkdir test1/proba&lt;br/&gt;
mkdir: cannot create directory `test1/proba&apos;: File too large&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;root@rhel6-64 lustre&amp;#93;&lt;/span&gt;#&lt;/p&gt;


&lt;p&gt;mkdir failed due wrong assumption - if we allocate an inode that is always allocate a space in directory, but ext4 isn&apos;t truncate a directory after removing an objects from it.&lt;/p&gt;

&lt;p&gt;that is caused random fails in sanity 129.&lt;br/&gt;
+ do_node mft51.xyua &apos;echo 16384 &amp;gt;/sys/fs/ldiskfs/loop0/max_dir_size&apos;&lt;br/&gt;
+ local verbose=false&lt;br/&gt;
+ &apos;&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39; xmft51.xyua = x--verbose &amp;#39;&amp;#93;&lt;/span&gt;&apos;&lt;br/&gt;
+ local HOST=mft51.xyua&lt;br/&gt;
+ shift&lt;br/&gt;
+ local &apos;myPDSH=/usr/bin/pdsh -R ssh -S -w &apos;&lt;br/&gt;
+ &apos;&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39; mft51.xyua = mft51.xyua &amp;#39;&amp;#93;&lt;/span&gt;&apos;&lt;br/&gt;
+ myPDSH=no_dsh&lt;br/&gt;
+ false&lt;br/&gt;
+ &apos;&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39; no_dsh = rsh &amp;#39;&amp;#93;&lt;/span&gt;&apos;&lt;br/&gt;
+ false&lt;br/&gt;
+ sed &apos;s/^mft51.xyua: //&apos;&lt;br/&gt;
+ no_dsh mft51.xyua &apos;(PATH=$PATH:/usr/lib64/lustre/utils:/usr/lib64/lustre/tests:/sbin:/usr/sbin; cd /root; LUSTRE=&quot;/usr/lib64/lustre&quot; sh -c &quot;echo 16384 &amp;gt;/sys/fs/ldiskfs/loop0/max_dir_size&quot;)&apos;&lt;br/&gt;
+ shift&lt;br/&gt;
+ eval &apos;(PATH=$PATH:/usr/lib64/lustre/utils:/usr/lib64/lustre/tests:/sbin:/usr/sbin;&apos; cd &apos;/root;&apos; &apos;LUSTRE=&quot;/usr/lib64/lustre&quot;&apos; sh -c &apos;&quot;echo&apos; 16384 &apos;&amp;gt;/sys/fs/ldiskfs/loop0/max_dir_size&quot;)&apos;&lt;br/&gt;
++ PATH=/usr/lib64/lustre/tests/mpi:/usr/lib64/lustre/tests/racer:/usr/lib64/lustre/../lustre-iokit/sgpdd-survey:/usr/lib64/lustre/tests:/usr/lib64/lustre/utils/gss:/usr/lib64/lustre/utils:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/sbin::/usr/lib64/lustre/utils:/usr/lib64/lustre/tests:/sbin:/usr/sbin&lt;br/&gt;
++ cd /root&lt;br/&gt;
++ LUSTRE=/usr/lib64/lustre&lt;br/&gt;
++ sh -c &apos;echo 16384 &amp;gt;/sys/fs/ldiskfs/loop0/max_dir_size&apos;&lt;br/&gt;
+ return 0&lt;br/&gt;
+ mkdir -p /mnt/lustre/d0.sanity/d129&lt;br/&gt;
mkdir: cannot create directory `/mnt/lustre/d0.sanity&apos;: File too large&lt;br/&gt;
+ ls -l /mnt/lustre&lt;br/&gt;
total 0&lt;/p&gt;</description>
                <environment></environment>
        <key id="16905">LU-2479</key>
            <summary>sanity.sh test_129: max dir size limit work incorrectly.</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="wc-triage">WC Triage</assignee>
                                    <reporter username="shadow">Alexey Lyashkov</reporter>
                        <labels>
                            <label>patch</label>
                    </labels>
                <created>Wed, 12 Dec 2012 05:45:12 +0000</created>
                <updated>Fri, 25 Apr 2014 18:00:39 +0000</updated>
                            <resolved>Fri, 14 Jun 2013 03:45:22 +0000</resolved>
                                    <version>Lustre 2.2.0</version>
                    <version>Lustre 2.1.1</version>
                    <version>Lustre 2.1.2</version>
                    <version>Lustre 2.1.3</version>
                    <version>Lustre 1.8.x (1.8.0 - 1.8.5)</version>
                                    <fixVersion>Lustre 2.6.0</fixVersion>
                    <fixVersion>Lustre 2.5.2</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>7</watches>
                                                                            <comments>
                            <comment id="49133" author="shadow" created="Wed, 12 Dec 2012 11:50:58 +0000"  >&lt;p&gt;correct implementation landed into ext4 upstream as&lt;/p&gt;

&lt;p&gt;commit df981d03eeff7971ac7e6ff37000bfa702327ef1&lt;br/&gt;
Author: Theodore Ts&apos;o &amp;lt;tytso@mit.edu&amp;gt;&lt;br/&gt;
Date:   Fri Aug 17 09:48:17 2012 -0400&lt;/p&gt;

&lt;p&gt;    ext4: add max_dir_size_kb mount option&lt;/p&gt;

&lt;p&gt;by checking a directory limit inside ext4_append function.&lt;/p&gt;</comment>
                            <comment id="50618" author="keith" created="Wed, 16 Jan 2013 20:28:31 +0000"  >&lt;p&gt;This same issue has been seen in our test rig. &lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://maloo.whamcloud.com/test_sessions/00d6be9e-5fbf-11e2-84d4-52540035b04c&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://maloo.whamcloud.com/test_sessions/00d6be9e-5fbf-11e2-84d4-52540035b04c&lt;/a&gt;&lt;/p&gt;
</comment>
                            <comment id="50619" author="keith" created="Wed, 16 Jan 2013 20:29:40 +0000"  >&lt;p&gt;Alexey Lyashkov,  Have you tested the above change and does it fix the error? &lt;/p&gt;</comment>
                            <comment id="50861" author="shadow" created="Sun, 20 Jan 2013 03:38:33 +0000"  >&lt;p&gt;Keith,&lt;/p&gt;

&lt;p&gt;That is correct.&lt;br/&gt;
Alexander Boyko &amp;lt;Alexander_Boyko@xyratex.com&amp;gt; work on that issue from Xyratex side and will be ready to submit fix shortly (first inspection round passed).&lt;/p&gt;</comment>
                            <comment id="50968" author="aboyko" created="Tue, 22 Jan 2013 08:22:06 +0000"  >&lt;p&gt;&lt;a href=&quot;http://review.whamcloud.com/#change,5140&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#change,5140&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="51080" author="aboyko" created="Thu, 24 Jan 2013 02:03:08 +0000"  >&lt;p&gt;&lt;a href=&quot;http://review.whamcloud.com/#change,5140&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#change,5140&lt;/a&gt;&lt;br/&gt;
Maloo found the issue, it is relate to &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-2640&quot; title=&quot;deactivate OSD_EXEC_OP() operation accounting if operation is being undone&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-2640&quot;&gt;&lt;del&gt;LU-2640&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="53085" author="aboyko" created="Wed, 27 Feb 2013 03:02:14 +0000"  >&lt;p&gt;Status update:&lt;br/&gt;
I don`t understand why this patch should not be landed if it`s broke SLES11.&lt;br/&gt;
1) this patch fix serios bug with simple reproducer, and result is - file creation would failed in empty directory.&lt;br/&gt;
2) SLES11 patches are not landed yet.&lt;br/&gt;
3) this fix is port from upstream ext4 branch and SLES need to include it also.&lt;/p&gt;</comment>
                            <comment id="53120" author="simmonsja" created="Wed, 27 Feb 2013 12:00:41 +0000"  >&lt;p&gt;New patch address the SLES11 issues. Will work with RHEL6.3, SLES11 SP1 and SP2. Haven&apos;t tried it on RHEL6.4 yet.&lt;/p&gt;</comment>
                            <comment id="60623" author="keith" created="Fri, 14 Jun 2013 03:45:22 +0000"  >&lt;p&gt;Patch has been merged. &lt;/p&gt;</comment>
                            <comment id="70517" author="vsaveliev" created="Fri, 1 Nov 2013 18:34:07 +0000"  >&lt;p&gt;The directory max size check in ldiskfs_append() should not be applied when an inode does not refer to a directory.&lt;br/&gt;
Please take a look&lt;br/&gt;
&lt;a href=&quot;http://review.whamcloud.com/8137&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/8137&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="82348" author="emoly.liu" created="Thu, 24 Apr 2014 03:23:12 +0000"  >&lt;blockquote&gt;
&lt;p&gt;The directory max size check in ldiskfs_append() should not be applied when an inode does not refer to a directory.&lt;br/&gt;
Please take a look&lt;br/&gt;
&lt;a href=&quot;http://review.whamcloud.com/8137&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/8137&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;backport to b2_5: &lt;a href=&quot;http://review.whamcloud.com/10043&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/10043&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="23217">LU-4654</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|hzvdnz:</customfieldvalue>

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