<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:38:37 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-10837] no bitmap check if block bitmap is uninitialized</title>
                <link>https://jira.whamcloud.com/browse/LU-10837</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Following commit:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.whamcloud.com/browse/LU-9410&quot; title=&quot;on-disk bitmap corrupted&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-9410&quot;&gt;&lt;del&gt;LU-9410&lt;/del&gt;&lt;/a&gt; ldiskfs: no check mb bitmap if flex_bg enabled&lt;/p&gt;

&lt;p&gt;Tried to expose a problem that we should be careful with block bitmap uninitialized.&lt;/p&gt;

&lt;p&gt;However, it only tried to skip 0 in @free_gdp, at some customer site, we observed&lt;/p&gt;

&lt;p&gt;cases&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;
Mar 13 13:59:29 oss2c105 kernel: LDISKFS-fs error (device sfa0002): ldiskfs_mb_check_ondisk_bitmap:3605: comm ll_ost_io01_057: on-disk bitmap for group 420934corrupted: 32768 blocks free in bitmap, 559 - in gd\x0a
Mar 13 13:59:29 oss2c105 kernel: LDISKFS-fs error (device sfa0002): ldiskfs_mb_check_ondisk_bitmap:3605: comm ll_ost_io00_056: on-disk bitmap for group 420938corrupted: 32768 blocks free in bitmap, 680 - in gd\x0a

&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;And also, I did a very simple reformat and tried to dumpe2fs OST:&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;
...

Group 158: (Blocks 5177344-5210111) [INODE_UNINIT, BLOCK_UNINIT, ITABLE_ZEROED]

&#160; Checksum 0x0617, unused inodes 1920

&#160; Block bitmap at 1182 (bg #0 + 1182), Inode bitmap at 1342 (bg #0 + 1342)

&#160; Inode table at 40512-40751 (bg #1 + 7744)

&#160; 32768 free blocks, 1920 free inodes, 0 directories, 1920 unused inodes

&#160; Free blocks: 5177344-5210111

&#160; Free inodes: 303361-305280

Group 159: (Blocks 5210112-5242

....

&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;With more check, I did not see any 0 counters...&lt;/p&gt;

&lt;p&gt;See comments in ext4_free_clusters_after_init:&lt;/p&gt;

&lt;p&gt;&#160; &#160; /* Return the number of free blocks in a block group.&#160; It is used when&lt;/p&gt;

&lt;p&gt;&#160;&#160; &#160; * the block bitmap is uninitialized, so we can&apos;t just count the bits&lt;/p&gt;

&lt;p&gt;&#160;&#160; &#160; * in the bitmap. */&lt;/p&gt;

&lt;p&gt;&#160; &#160; So extra check we enhanced here is wrong if this block group&lt;/p&gt;

&lt;p&gt;&#160; &#160; bitmap is uninitialized, since we only check bitmaps here.&lt;/p&gt;

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

&lt;p&gt;&#160; &#160; Further, Looking at EXT4_BG_BLOCK_UNINIT clear codes, Kernel&lt;/p&gt;

&lt;p&gt;&#160; &#160; will reinit free_clusters_count when tried to clear the flag, so&lt;/p&gt;

&lt;p&gt;&#160; &#160; extra check for uninited block bitmaps dosen&apos;t make much sense.&lt;/p&gt;

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

&lt;p&gt;&#160; &#160; Let&apos;s skip uninited block bitmap check if EXT4_BG_BLOCK_UNINIT&lt;/p&gt;

&lt;p&gt;&#160; &#160; is set, whatever free count group desc recorded is untrustable somehow.&lt;/p&gt;</description>
                <environment></environment>
        <key id="51472">LU-10837</key>
            <summary>no bitmap check if block bitmap is uninitialized</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="4" iconUrl="https://jira.whamcloud.com/images/icons/priorities/minor.svg">Minor</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="wangshilong">Wang Shilong</assignee>
                                    <reporter username="wangshilong">Wang Shilong</reporter>
                        <labels>
                            <label>patch</label>
                    </labels>
                <created>Thu, 22 Mar 2018 07:23:51 +0000</created>
                <updated>Fri, 20 Jul 2018 22:03:47 +0000</updated>
                            <resolved>Mon, 9 Apr 2018 20:21:01 +0000</resolved>
                                                    <fixVersion>Lustre 2.12.0</fixVersion>
                    <fixVersion>Lustre 2.10.4</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>5</watches>
                                                                            <comments>
                            <comment id="224244" author="gerrit" created="Thu, 22 Mar 2018 07:25:09 +0000"  >&lt;p&gt;Wang Shilong (wshilong@ddn.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/31720&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/31720&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-10837&quot; title=&quot;no bitmap check if block bitmap is uninitialized&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-10837&quot;&gt;&lt;del&gt;LU-10837&lt;/del&gt;&lt;/a&gt; ldiskfs: skip bitmap check if block bitmap is uninitialized&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 6866d433d5c23f7e33c8512df041a2aa7a1c49fc&lt;/p&gt;</comment>
                            <comment id="224288" author="pjones" created="Thu, 22 Mar 2018 17:26:00 +0000"  >&lt;p&gt;Thanks &lt;a href=&quot;https://jira.whamcloud.com/secure/ViewProfile.jspa?name=wangshilong&quot; class=&quot;user-hover&quot; rel=&quot;wangshilong&quot;&gt;wangshilong&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="225465" author="gerrit" created="Mon, 9 Apr 2018 19:45:13 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/31720/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/31720/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-10837&quot; title=&quot;no bitmap check if block bitmap is uninitialized&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-10837&quot;&gt;&lt;del&gt;LU-10837&lt;/del&gt;&lt;/a&gt; ldiskfs: skip bitmap check if block bitmap is uninitialized&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: f7672143843a86656eaed5b9a8b89ce171b99d7a&lt;/p&gt;</comment>
                            <comment id="225520" author="pjones" created="Mon, 9 Apr 2018 20:21:01 +0000"  >&lt;p&gt;Landed for 2.12&lt;/p&gt;</comment>
                            <comment id="225758" author="gerrit" created="Wed, 11 Apr 2018 15:49:18 +0000"  >&lt;p&gt;Minh Diep (minh.diep@intel.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/31957&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/31957&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-10837&quot; title=&quot;no bitmap check if block bitmap is uninitialized&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-10837&quot;&gt;&lt;del&gt;LU-10837&lt;/del&gt;&lt;/a&gt; ldiskfs: skip bitmap check if block bitmap is uninitialized&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_10&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 4e96eeafaf124d301db118286188a7add34d1b68&lt;/p&gt;</comment>
                            <comment id="227232" author="gerrit" created="Thu, 3 May 2018 19:16:20 +0000"  >&lt;p&gt;John L. Hammond (john.hammond@intel.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/31957/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/31957/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-10837&quot; title=&quot;no bitmap check if block bitmap is uninitialized&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-10837&quot;&gt;&lt;del&gt;LU-10837&lt;/del&gt;&lt;/a&gt; ldiskfs: skip bitmap check if block bitmap is uninitialized&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_10&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 94fb83d93880e678d9396fa380e71fc3447ed0af&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="45747">LU-9410</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|hzzuof:</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>