<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:10:05 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-752] e2fsck can fail when encountering empty extended attribute blocks</title>
                <link>https://jira.whamcloud.com/browse/LU-752</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;When using e2fsck to create databases for later usage by lfsck, we ran into a problem where e2fsck would fail; the error was &quot;error: only handle v1/v3 LOV EAs, not 00000001&quot;.&lt;/p&gt;

&lt;p&gt;After some research, what I found was that as part of pass 1 of e2fsck, e2fsck would call the function e2fsck_lfsck_find_ea(), and that it would occasionally pass down in a blank EA block (I guess it is iterating through all of the EA blocks).  For these blank EA blocks the name length (e_name_len) is set to 0.  But e2fsck_lfsck_find_ea() calls strncmp() to match the EA name against the values that Lustre uses, and since the length passed into strncmp() is 0, the strncmp always succeeds.  But since this isn&apos;t a Lustre EA block lfsck_check_lov_ea() fails on it (with the above error).&lt;/p&gt;

&lt;p&gt;Attached is a simple change that will check to see if e_name_len is 0 and return from e2fsck_lfsck_find_ea(); this solved our problem.  It also occurs to me that for the sake of completeness e_name_len should be checked against the actual lengths of the EA data that Lustre uses; otherwise e2fsck could get confused if someone creates a EA attribute named &quot;lo&quot; or even just &quot;l&quot;.&lt;/p&gt;</description>
                <environment>SLES 11SP1</environment>
        <key id="12071">LU-752</key>
            <summary>e2fsck can fail when encountering empty extended attribute blocks</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="niu">Niu Yawei</assignee>
                                    <reporter username="kenh">Ken Hornstein</reporter>
                        <labels>
                            <label>e2fsprogs</label>
                    </labels>
                <created>Tue, 11 Oct 2011 13:14:30 +0000</created>
                <updated>Tue, 17 Jan 2012 12:12:06 +0000</updated>
                            <resolved>Tue, 17 Jan 2012 11:10:33 +0000</resolved>
                                    <version>Lustre 1.8.6</version>
                                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                            <comments>
                            <comment id="21923" author="adilger" created="Wed, 26 Oct 2011 04:12:07 +0000"  >&lt;p&gt;Niu, can you please include this change into the e2fsprogs release you are working on.&lt;/p&gt;</comment>
                            <comment id="26596" author="niu" created="Mon, 16 Jan 2012 03:34:53 +0000"  >&lt;p&gt;&lt;a href=&quot;http://review.whamcloud.com/1973&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/1973&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="26732" author="adilger" created="Tue, 17 Jan 2012 11:10:33 +0000"  >&lt;p&gt;Patch landed for e2fsprogs-1.41.90.wc4&lt;/p&gt;</comment>
                            <comment id="26748" author="hudson" created="Tue, 17 Jan 2012 12:10:41 +0000"  >&lt;p&gt;Integrated in &lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;img src=&quot;http://build.whamcloud.com/images/16x16/blue.png&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/span&gt; &lt;a href=&quot;http://build.whamcloud.com/job/e2fsprogs-master/./arch=x86_64,distro=el5/163/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;e2fsprogs-master &#187; x86_64,el5 #163&lt;/a&gt;&lt;br/&gt;
     &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-752&quot; title=&quot;e2fsck can fail when encountering empty extended attribute blocks&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-752&quot;&gt;&lt;del&gt;LU-752&lt;/del&gt;&lt;/a&gt; lfsck: compare EA name correctly (Revision 5aed93c3e04548d305909600a885643a0f0b07b6)&lt;/p&gt;

&lt;p&gt;     Result = SUCCESS&lt;br/&gt;
Niu Yawei : &lt;a href=&quot;http://git.whamcloud.com/gitweb/?p=tools/e2fsprogs.git;a=commit;h=refs/heads/master-lustre&amp;amp;a=commit&amp;amp;h=5aed93c3e04548d305909600a885643a0f0b07b6&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;5aed93c3e04548d305909600a885643a0f0b07b6&lt;/a&gt;&lt;br/&gt;
Files : &lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;patches/e2fsprogs-lfsck.patch&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="26749" author="hudson" created="Tue, 17 Jan 2012 12:11:10 +0000"  >&lt;p&gt;Integrated in &lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;img src=&quot;http://build.whamcloud.com/images/16x16/blue.png&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/span&gt; &lt;a href=&quot;http://build.whamcloud.com/job/e2fsprogs-master/./arch=x86_64,distro=el6/163/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;e2fsprogs-master &#187; x86_64,el6 #163&lt;/a&gt;&lt;br/&gt;
     &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-752&quot; title=&quot;e2fsck can fail when encountering empty extended attribute blocks&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-752&quot;&gt;&lt;del&gt;LU-752&lt;/del&gt;&lt;/a&gt; lfsck: compare EA name correctly (Revision 5aed93c3e04548d305909600a885643a0f0b07b6)&lt;/p&gt;

&lt;p&gt;     Result = SUCCESS&lt;br/&gt;
Niu Yawei : &lt;a href=&quot;http://git.whamcloud.com/gitweb/?p=tools/e2fsprogs.git;a=commit;h=refs/heads/master-lustre&amp;amp;a=commit&amp;amp;h=5aed93c3e04548d305909600a885643a0f0b07b6&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;5aed93c3e04548d305909600a885643a0f0b07b6&lt;/a&gt;&lt;br/&gt;
Files : &lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;patches/e2fsprogs-lfsck.patch&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="26750" author="hudson" created="Tue, 17 Jan 2012 12:11:34 +0000"  >&lt;p&gt;Integrated in &lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;img src=&quot;http://build.whamcloud.com/images/16x16/blue.png&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/span&gt; &lt;a href=&quot;http://build.whamcloud.com/job/e2fsprogs-master/./arch=i686,distro=el6/163/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;e2fsprogs-master &#187; i686,el6 #163&lt;/a&gt;&lt;br/&gt;
     &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-752&quot; title=&quot;e2fsck can fail when encountering empty extended attribute blocks&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-752&quot;&gt;&lt;del&gt;LU-752&lt;/del&gt;&lt;/a&gt; lfsck: compare EA name correctly (Revision 5aed93c3e04548d305909600a885643a0f0b07b6)&lt;/p&gt;

&lt;p&gt;     Result = SUCCESS&lt;br/&gt;
Niu Yawei : &lt;a href=&quot;http://git.whamcloud.com/gitweb/?p=tools/e2fsprogs.git;a=commit;h=refs/heads/master-lustre&amp;amp;a=commit&amp;amp;h=5aed93c3e04548d305909600a885643a0f0b07b6&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;5aed93c3e04548d305909600a885643a0f0b07b6&lt;/a&gt;&lt;br/&gt;
Files : &lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;patches/e2fsprogs-lfsck.patch&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="26751" author="hudson" created="Tue, 17 Jan 2012 12:12:06 +0000"  >&lt;p&gt;Integrated in &lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;img src=&quot;http://build.whamcloud.com/images/16x16/blue.png&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/span&gt; &lt;a href=&quot;http://build.whamcloud.com/job/e2fsprogs-master/./arch=i686,distro=el5/163/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;e2fsprogs-master &#187; i686,el5 #163&lt;/a&gt;&lt;br/&gt;
     &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-752&quot; title=&quot;e2fsck can fail when encountering empty extended attribute blocks&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-752&quot;&gt;&lt;del&gt;LU-752&lt;/del&gt;&lt;/a&gt; lfsck: compare EA name correctly (Revision 5aed93c3e04548d305909600a885643a0f0b07b6)&lt;/p&gt;

&lt;p&gt;     Result = SUCCESS&lt;br/&gt;
Niu Yawei : &lt;a href=&quot;http://git.whamcloud.com/gitweb/?p=tools/e2fsprogs.git;a=commit;h=refs/heads/master-lustre&amp;amp;a=commit&amp;amp;h=5aed93c3e04548d305909600a885643a0f0b07b6&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;5aed93c3e04548d305909600a885643a0f0b07b6&lt;/a&gt;&lt;br/&gt;
Files : &lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;patches/e2fsprogs-lfsck.patch&lt;/li&gt;
&lt;/ul&gt;
</comment>
                    </comments>
                    <attachments>
                            <attachment id="10535" name="e2fsck.patch" size="3600" author="kenh" created="Tue, 11 Oct 2011 13:14:30 +0000"/>
                    </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_10040" key="com.atlassian.jira.plugin.system.customfieldtypes:labels">
                        <customfieldname>Epic</customfieldname>
                        <customfieldvalues>
                                        <label>e2fsprogs</label>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_10390" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hzvhvj:</customfieldvalue>

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