<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:09:36 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-14423] osd_is_mapped() does not recognize holes</title>
                <link>https://jira.whamcloud.com/browse/LU-14423</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;ldiskfs_fiemap() can return a hole in form &lt;/p&gt;
{0,0,0}
&lt;p&gt; and then the following construction recognizes this as an allocated space:&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;
        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (start &amp;gt; block) {
                cached_extent-&amp;gt;start = block;
                cached_extent-&amp;gt;end = start;
                cached_extent-&amp;gt;mapped = 0;
        } &lt;span class=&quot;code-keyword&quot;&gt;else&lt;/span&gt; {
                cached_extent-&amp;gt;start = start;
                cached_extent-&amp;gt;end = (fe.fe_logical + fe.fe_length) &amp;gt;&amp;gt;
                                      inode-&amp;gt;i_blkbits;
                cached_extent-&amp;gt;mapped = 1;
        }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="62838">LU-14423</key>
            <summary>osd_is_mapped() does not recognize holes</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="bzzz">Alex Zhuravlev</assignee>
                                    <reporter username="bzzz">Alex Zhuravlev</reporter>
                        <labels>
                    </labels>
                <created>Thu, 11 Feb 2021 13:00:06 +0000</created>
                <updated>Mon, 7 Nov 2022 19:15:03 +0000</updated>
                            <resolved>Fri, 26 Feb 2021 14:48:34 +0000</resolved>
                                                    <fixVersion>Lustre 2.15.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="291728" author="gerrit" created="Thu, 11 Feb 2021 14:34:55 +0000"  >&lt;p&gt;Alex Zhuravlev (bzzz@whamcloud.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/41481&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/41481&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14423&quot; title=&quot;osd_is_mapped() does not recognize holes&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14423&quot;&gt;&lt;del&gt;LU-14423&lt;/del&gt;&lt;/a&gt; osd: recognize holes in osd_is_mapped()&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 1ce62777a493b7496005c668677bddaae5a12cf8&lt;/p&gt;</comment>
                            <comment id="291738" author="adilger" created="Thu, 11 Feb 2021 15:24:19 +0000"  >&lt;p&gt;Alex, AFAIK FIEMAP should not be returning 0,0,0 as a hole. That is just an uninitialized buffer and should be outside the number of returned extents?  Holes in the file should just be skipped in the returned extents. &lt;/p&gt;</comment>
                            <comment id="291741" author="bzzz" created="Thu, 11 Feb 2021 15:28:42 +0000"  >&lt;p&gt;hmm, this is what I exactly got using linux-3.10.0-957.12.2.el7 - ldiskfs_fiemap() returned 0 and &lt;/p&gt;
{.fe_logical=0, fe_length=0}
&lt;p&gt; for non-allocated block.&lt;br/&gt;
the file&apos;s size was set using truncate.&lt;/p&gt;</comment>
                            <comment id="291746" author="adilger" created="Thu, 11 Feb 2021 15:38:41 +0000"  >&lt;p&gt;What did it return for the extent count? This may be a bug in ldiskfs. &lt;/p&gt;</comment>
                            <comment id="291748" author="bzzz" created="Thu, 11 Feb 2021 15:45:38 +0000"  >&lt;blockquote&gt;&lt;p&gt;What did it return for the extent count? This may be a bug in ldiskfs&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;fei.fi_extents_mapped was not touched in this case. i.e. it would be 0 for the first call to ldiskfs_fiemap() and 1 if the previous call found an extemt.&lt;br/&gt;
fe.fe_* were reset to 0 though.&lt;/p&gt;</comment>
                            <comment id="291779" author="bzzz" created="Thu, 11 Feb 2021 17:53:40 +0000"  >&lt;p&gt;AFAICS, fiemap can&apos;t return an extent covering a hole to EOF? thus we&apos;d have to lookup each block separately?&lt;/p&gt;</comment>
                            <comment id="291780" author="adilger" created="Thu, 11 Feb 2021 17:58:57 +0000"  >&lt;p&gt;Correct - FIEMAP does not return anything for a hole. If there are no blocks allocated to a file at all, then it should return no extent in that case. I guess you could use the 0,0 return to detect that, though it is a bit non-standard. &lt;/p&gt;
</comment>
                            <comment id="293155" author="gerrit" created="Fri, 26 Feb 2021 08:23:26 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/41481/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/41481/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14423&quot; title=&quot;osd_is_mapped() does not recognize holes&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14423&quot;&gt;&lt;del&gt;LU-14423&lt;/del&gt;&lt;/a&gt; osd: recognize holes in osd_is_mapped()&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 2eaa49ef0f16798d564883b16cea9e96fad52495&lt;/p&gt;</comment>
                            <comment id="293197" author="pjones" created="Fri, 26 Feb 2021 14:48:34 +0000"  >&lt;p&gt;Landed for 2.15&lt;/p&gt;</comment>
                            <comment id="317766" author="gerrit" created="Tue, 9 Nov 2021 19:27:03 +0000"  >&lt;p&gt;&quot;Andreas Dilger &amp;lt;adilger@whamcloud.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/45504&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/45504&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14423&quot; title=&quot;osd_is_mapped() does not recognize holes&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14423&quot;&gt;&lt;del&gt;LU-14423&lt;/del&gt;&lt;/a&gt; osd: recognize holes in osd_is_mapped()&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_14&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 543fc7629b06a3cffb8d5ee1830c09a86f91e317&lt;/p&gt;</comment>
                            <comment id="318200" author="gerrit" created="Sun, 14 Nov 2021 03:09:21 +0000"  >&lt;p&gt;&quot;Andreas Dilger &amp;lt;adilger@whamcloud.com&amp;gt;&quot; merged in patch &lt;a href=&quot;https://review.whamcloud.com/45504/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/45504/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14423&quot; title=&quot;osd_is_mapped() does not recognize holes&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14423&quot;&gt;&lt;del&gt;LU-14423&lt;/del&gt;&lt;/a&gt; osd: recognize holes in osd_is_mapped()&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_14&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: b5f71a7e7528831a0a2c7d02b5bd98d68fcb1855&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10120">
                    <name>Blocker</name>
                                            <outwardlinks description="is blocking">
                                                        </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                                        </outwardlinks>
                                                                <inwardlinks description="is related to">
                                                        </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|i01mdj:</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>