<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:07:30 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-14176] lfs mirror resync may truncate file to wrong size</title>
                <link>https://jira.whamcloud.com/browse/LU-14176</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;To reproduce:&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;export OSTCOUNT=4
export OSTSIZE=800000
$LUSTRE/tests/llmount.sh

lctl pool_new lustre.ddn_ssd
lctl pool_new lustre.ddn_hdd
lctl pool_add lustre.ddn_ssd lustre-OST0000
lctl pool_add lustre.ddn_ssd lustre-OST0001
lctl pool_add lustre.ddn_hdd lustre-OST0002
lctl pool_add lustre.ddn_hdd lustre-OST0003

lfs setstripe -c 1 -p ddn_ssd /mnt/lustre

rm -f /tmp/f0 /mnt/lustre/f0
dd if=/dev/urandom of=/tmp/f0 bs=4096 count=1 seek=$(( (134217728 - 3 * 4096) / 4096 ))
dd if=/dev/urandom of=/tmp/f0 bs=4096 count=1 seek=$(( (134217728 + 3 * 4096) / 4096 )) conv=notrunc
/usr/bin/truncate --size=2G /tmp/f0

cp /tmp/f0 /mnt/lustre/f0
stat --format=&apos;%s %b %B&apos; /tmp/f0 /mnt/lustre/f0

hole=0
data=0
while true; do
  data=$(lseek_test --data $hole /mnt/lustre/f0) || break
  hole=$(lseek_test --hole $data /mnt/lustre/f0) || break
  echo $data $hole
done

lfs mirror extend -N -p ddn_ssd /mnt/lustre/f0
stat --format=&apos;%s %b %B&apos; /tmp/f0 /mnt/lustre/f0

cp /tmp/f0 /mnt/lustre/f0
stat --format=&apos;%s %b %B&apos; /tmp/f0 /mnt/lustre/f0

lfs mirror resync /mnt/lustre/f0
stat --format=&apos;%s %b %B&apos; /tmp/f0 /mnt/lustre/f0
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Output:&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; lfs setstripe -c 1 -p ddn_ssd /mnt/lustre
# rm -f /tmp/f0 /mnt/lustre/f0
# dd if=/dev/urandom of=/tmp/f0 bs=4096 count=1 seek=$(( (134217728 - 3 * 4096) / 4096 ))
1+0 records in
1+0 records out
4096 bytes (4.1 kB) copied, 0.000328655 s, 12.5 MB/s
# dd if=/dev/urandom of=/tmp/f0 bs=4096 count=1 seek=$(( (134217728 + 3 * 4096) / 4096 )) conv=notrunc
1+0 records in
1+0 records out
4096 bytes (4.1 kB) copied, 0.0011132 s, 3.7 MB/s
# /usr/bin/truncate --size=2G /tmp/f0
# 
# cp /tmp/f0 /mnt/lustre/f0
# stat --format=&apos;%s %b %B&apos; /tmp/f0 /mnt/lustre/f0
2147483648 112 512
2147483648 1 512
# 
# hole=0
# data=0
# while true; do
&amp;gt;   data=$(lseek_test --data $hole /mnt/lustre/f0) || break
&amp;gt;   hole=$(lseek_test --hole $data /mnt/lustre/f0) || break
&amp;gt;   echo $data $hole
&amp;gt; done
134205440 134209536
134230016 134283264
lseek to 134283264 failed with 6
# 
# lfs mirror extend -N -p ddn_ssd /mnt/lustre/f0
# stat --format=&apos;%s %b %B&apos; /tmp/f0 /mnt/lustre/f0
2147483648 112 512
2147483648 112 512
# 
# cp /tmp/f0 /mnt/lustre/f0
# stat --format=&apos;%s %b %B&apos; /tmp/f0 /mnt/lustre/f0
2147483648 112 512
2147483648 1 512
# 
# lfs mirror resync /mnt/lustre/f0
# stat --format=&apos;%s %b %B&apos; /tmp/f0 /mnt/lustre/f0
2147483648 112 512
134283264 224 512
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="61844">LU-14176</key>
            <summary>lfs mirror resync may truncate file to wrong size</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="6" iconUrl="https://jira.whamcloud.com/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="6">Not a Bug</resolution>
                                        <assignee username="jhammond">John Hammond</assignee>
                                    <reporter username="jhammond">John Hammond</reporter>
                        <labels>
                    </labels>
                <created>Wed, 2 Dec 2020 17:51:31 +0000</created>
                <updated>Wed, 24 Feb 2021 21:24:15 +0000</updated>
                            <resolved>Mon, 4 Jan 2021 16:50:41 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>1</watches>
                                                                                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="58545">LU-13397</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|i01g93:</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>