<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:07: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-14128] truncate does not set file size correctly in corner case</title>
                <link>https://jira.whamcloud.com/browse/LU-14128</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;created a file with layout with &quot;lfs setstripe -E 4m -E 1g -c 4 -E -1 /mnt/lustre/test&quot;&lt;/p&gt;

&lt;p&gt;and truncate then seek and read of it&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;54917 1600771094.532399 ftruncate(11, 1070596096) = 0 &amp;lt;0.002077&amp;gt;
54917 1600771094.534496 lseek(11, 1070596092, SEEK_SET) = 1070596092 &amp;lt;0.000020&amp;gt;
54917 1600771094.534535 read(11, &quot;&quot;, 4) = 0 &amp;lt;0.000477&amp;gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;while the same operations upon a plain file is like follows&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;176699 1600824857.107003 lseek(11, 0, SEEK_CUR) = 1069547272 &amp;lt;0.000016&amp;gt;
176699 1600824857.107034 ftruncate(11, 1070596096) = 0 &amp;lt;0.002115&amp;gt;
176699 1600824857.109166 lseek(11, 1070596092, SEEK_SET) = 1070596092 &amp;lt;0.000016&amp;gt;
176699 1600824857.109197 read(11, &quot;\0\0\0\0&quot;, 4) = 4 &amp;lt;0.001038&amp;gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The location 1070596096 (1021M) is exactly at the end of the 1st stripe of the 2nd component, and truncate will not set the OST object size of the 1st stripe (because it&apos;s not intersected with [1070596096, EOF)) and set the 2nd, 3rd and 4th stripe object size, from the 4th stripe object  we can get file size of 1069547520 (1020M). This is incorrect, so the seek and read think we are reading after the EOF of the file, so return 0 instead of 4 bytes.&lt;/p&gt;</description>
                <environment></environment>
        <key id="61597">LU-14128</key>
            <summary>truncate does not set file size correctly in corner case</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="bobijam">Zhenyu Xu</assignee>
                                    <reporter username="bobijam">Zhenyu Xu</reporter>
                        <labels>
                    </labels>
                <created>Mon, 9 Nov 2020 14:54:40 +0000</created>
                <updated>Wed, 17 Nov 2021 19:48:15 +0000</updated>
                            <resolved>Tue, 12 Jan 2021 13:33:03 +0000</resolved>
                                                    <fixVersion>Lustre 2.14.0</fixVersion>
                    <fixVersion>Lustre 2.12.8</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                            <comments>
                            <comment id="284716" author="gerrit" created="Mon, 9 Nov 2020 17:09:07 +0000"  >&lt;p&gt;Bobi Jam (bobijam@hotmail.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/40581&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/40581&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14128&quot; title=&quot;truncate does not set file size correctly in corner case&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14128&quot;&gt;&lt;del&gt;LU-14128&lt;/del&gt;&lt;/a&gt; lov: correctly set OST obj size&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 138e852e30e6a68f78543ca8f5fbaad17bb6e9db&lt;/p&gt;</comment>
                            <comment id="289252" author="gerrit" created="Tue, 12 Jan 2021 07:57:50 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/40581/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/40581/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14128&quot; title=&quot;truncate does not set file size correctly in corner case&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14128&quot;&gt;&lt;del&gt;LU-14128&lt;/del&gt;&lt;/a&gt; lov: correctly set OST obj size&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 98015004516cad1173e2bac2a4695bdc56e4d9a4&lt;/p&gt;</comment>
                            <comment id="289268" author="pjones" created="Tue, 12 Jan 2021 13:33:03 +0000"  >&lt;p&gt;Landed for 2.14&lt;/p&gt;</comment>
                            <comment id="317383" author="gerrit" created="Wed, 3 Nov 2021 18:21:03 +0000"  >&lt;p&gt;&quot;Patrick Farrell &amp;lt;pfarrell@whamcloud.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/45448&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/45448&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14128&quot; title=&quot;truncate does not set file size correctly in corner case&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14128&quot;&gt;&lt;del&gt;LU-14128&lt;/del&gt;&lt;/a&gt; lov: correctly set OST obj size&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_12&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: fc68ce9fdfed82ff483b997b0887cdfe06e1ad34&lt;/p&gt;</comment>
                            <comment id="318441" author="gerrit" created="Wed, 17 Nov 2021 18:44:36 +0000"  >&lt;p&gt;&quot;Oleg Drokin &amp;lt;green@whamcloud.com&amp;gt;&quot; merged in patch &lt;a href=&quot;https://review.whamcloud.com/45448/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/45448/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14128&quot; title=&quot;truncate does not set file size correctly in corner case&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14128&quot;&gt;&lt;del&gt;LU-14128&lt;/del&gt;&lt;/a&gt; lov: correctly set OST obj size&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_12&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: cfb24815e825738cea16270bbd6e7841b0e7d09b&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <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|i01eqn:</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>