<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:25: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-2462] debugfs doesn&apos;t care about DIRENT_LUFID flag while inserting new entries</title>
                <link>https://jira.whamcloud.com/browse/LU-2462</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Directory entries with DIRENT_LUFID flag in d_type contains packed FID right after entry name, so they have longer rec_len. Debugfs doesn&apos;t check that when inserting new entry and corrupts directory.&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;debugfs:  cd ROOT
debugfs:  ls
 50039  (28) .    2  (28) ..    50041  (36) .lustre    104  (32) file-0   
 105  (32) file-1    106  (32) file-2    107  (32) file-3    108  (32) file-4   
 109  (32) file-5    110  (32) file-6    111  (32) file-7    112  (32) file-8   
 113  (3716) file-9   
debugfs:  rm file-2
debugfs:  write /etc/hosts file-2
Allocated inode: 50042
debugfs:  ls
 50039  (12) .    50042  (16) file-2    2  (28) ..    50041  (36) .lustre   
 104  (32) file-0    105  (64) file-1    107  (32) file-3    108  (32) file-4   
 109  (32) file-5    110  (32) file-6    111  (32) file-7    112  (32) file-8   
 113  (3716) file-9   
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Note how rec_len of &apos;.&apos; is changed. Now let&apos;s mount lustre back:&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@node7 tests]# ls /mnt/lustre
ls: reading directory /mnt/lustre: Input/output error
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;dmesg says:&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;LDISKFS-fs error (device loop0): htree_dirblock_to_tree: bad entry in directory #50039: rec_len is too small &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; name_len - block=12610offset=0(0), inode=50039, rec_len=12, name_len=1
Aborting journal on device loop0-8.
LDISKFS-fs (loop0): Remounting filesystem read-only
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="16892">LU-2462</key>
            <summary>debugfs doesn&apos;t care about DIRENT_LUFID flag while inserting new entries</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="adilger">Andreas Dilger</assignee>
                                    <reporter username="tappro">Mikhail Pershin</reporter>
                        <labels>
                            <label>e2fsprogs</label>
                            <label>releases</label>
                    </labels>
                <created>Tue, 11 Dec 2012 06:34:12 +0000</created>
                <updated>Wed, 28 Aug 2013 17:14:28 +0000</updated>
                            <resolved>Wed, 28 Aug 2013 17:14:28 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="57513" author="manisha" created="Thu, 2 May 2013 13:50:45 +0000"  >&lt;p&gt;Added the changes to consider DIRENT_LUFID while writing new file.&lt;br/&gt;
Code review link is : &lt;a href=&quot;http://review.whamcloud.com/#change,6237&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#change,6237&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="65278" author="adilger" created="Wed, 28 Aug 2013 17:14:28 +0000"  >&lt;p&gt;Patch landed for master-lustre, will be in next release beyond 1.42.7.wc1.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="12438">LU-838</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|hzvdkv:</customfieldvalue>

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