<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:20:31 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-1883] osd-ldiskfs fills file offsets into lnb-&gt;offset fields used as page offsets</title>
                <link>https://jira.whamcloud.com/browse/LU-1883</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;This affects ofd + osd-ldiskfs but not obdfilter or current MDS/MGS stack.&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;static&lt;/span&gt; &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; osd_map_remote_to_local(loff_t offset, ssize_t len, &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; *nrpages,
                                   struct niobuf_local *lnb)
{
        ENTRY;

        *nrpages = 0;  

        &lt;span class=&quot;code-keyword&quot;&gt;while&lt;/span&gt; (len &amp;gt; 0) {
                &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; poff = offset &amp;amp; (CFS_PAGE_SIZE - 1);
                &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; plen = CFS_PAGE_SIZE - poff;

                &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (plen &amp;gt; len)
                        plen = len;
                lnb-&amp;gt;offset = offset;
                &lt;span class=&quot;code-comment&quot;&gt;/* lnb-&amp;gt;lnb_page_offset = poff; */&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;&quot;offset&quot; contains the file offset, while &quot;lnb-&amp;gt;offset&quot; is expected to be the page offset:&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;static&lt;/span&gt; &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; osd_write_prep(&lt;span class=&quot;code-keyword&quot;&gt;const&lt;/span&gt; struct lu_env *env, struct dt_object *dt,
                          struct niobuf_local *lnb, &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; npages)
{
[...]

                &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (maxidx &amp;gt;= lnb[i].page-&amp;gt;index) {
                        osd_iobuf_add_page(iobuf, lnb[i].page);
                } &lt;span class=&quot;code-keyword&quot;&gt;else&lt;/span&gt; {
                        &lt;span class=&quot;code-object&quot;&gt;long&lt;/span&gt; off;
                        &lt;span class=&quot;code-object&quot;&gt;char&lt;/span&gt; *p = kmap(lnb[i].page);

                        off = lnb[i].offset;
                        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (off)
                                memset(p, 0, off);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The memset() call might zero out quite a number of pages that may not belong to Lustre.&lt;/p&gt;</description>
                <environment></environment>
        <key id="15871">LU-1883</key>
            <summary>osd-ldiskfs fills file offsets into lnb-&gt;offset fields used as page offsets</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="1" iconUrl="https://jira.whamcloud.com/images/icons/priorities/blocker.svg">Blocker</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="liwei">Li Wei</assignee>
                                    <reporter username="liwei">Li Wei</reporter>
                        <labels>
                            <label>USE_OFD</label>
                    </labels>
                <created>Tue, 11 Sep 2012 03:05:44 +0000</created>
                <updated>Thu, 18 Apr 2013 20:33:56 +0000</updated>
                            <resolved>Fri, 19 Oct 2012 12:25:59 +0000</resolved>
                                    <version>Lustre 2.4.0</version>
                                    <fixVersion>Lustre 2.4.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                            <comments>
                            <comment id="44567" author="bzzz" created="Tue, 11 Sep 2012 03:13:54 +0000"  >&lt;p&gt;the correct fix would be to introduce lnb_page_offset and lnb_file_offset as in orion.&lt;/p&gt;</comment>
                            <comment id="44597" author="liwei" created="Tue, 11 Sep 2012 11:53:42 +0000"  >&lt;p&gt;&lt;a href=&quot;http://review.whamcloud.com/3940&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/3940&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This is for b2_3.&lt;/p&gt;</comment>
                            <comment id="44866" author="tappro" created="Fri, 14 Sep 2012 10:02:50 +0000"  >&lt;p&gt;lnb has already lnb_file_offset field in master, so we need just use it as file offset and lnb-&amp;gt;offset as page offset. Separate patch would rename other lnb fields to have lnb_ prefix.&lt;/p&gt;</comment>
                            <comment id="45248" author="liwei" created="Thu, 20 Sep 2012 02:04:30 +0000"  >&lt;p&gt;Yes, the patch makes sure lnb_file_offset and lnb_page_offset both store what the names imply.&lt;/p&gt;</comment>
                            <comment id="45249" author="liwei" created="Thu, 20 Sep 2012 02:04:44 +0000"  >&lt;p&gt;&lt;a href=&quot;http://review.whamcloud.com/4051&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/4051&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This is for master.&lt;/p&gt;</comment>
                            <comment id="45258" author="liwei" created="Thu, 20 Sep 2012 08:49:25 +0000"  >&lt;p&gt;This is actually a blocker for 2.4.  I have to remove 2.3.0 from the &quot;affects version/s&quot; list, so that this does not block 2.3.&lt;/p&gt;</comment>
                            <comment id="45485" author="liwei" created="Tue, 25 Sep 2012 00:03:30 +0000"  >&lt;p&gt;The master patch has landed.&lt;/p&gt;</comment>
                            <comment id="46779" author="jlevi" created="Fri, 19 Oct 2012 12:25:59 +0000"  >&lt;p&gt;Please let me know if this is still an issue and needs to be reopened.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="16798">LU-2406</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="15712">LU-1844</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|hzv30n:</customfieldvalue>

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