<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:31:20 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-16948] sparse file migration broken</title>
                <link>https://jira.whamcloud.com/browse/LU-16948</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;On 2.15.3 sparse file migration  does not keep the same number of blocks if the extents are non-aligned on the stripe_size (on master the extent must be &amp;gt; 64M):&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Reproducer&lt;/b&gt;&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;[root@client client]# lfs setstripe -c2 test_simple
[root@client client]# dd if=/dev/urandom of=test_simple bs=512K count=$((128*2+1)) seek=1                                                                                                                                  
[root@client client]# dd if=/dev/urandom of=test_simple bs=512K count=$((128*2+1)) seek=$((512*2+1)) conv=fsync                          
                             
[root@client client]# filefrag -v test_simple                               
Filesystem type is: bd00bd0                                                 
File size of test_simple is 672137216 (656384 blocks of 1024 bytes)         
 ext:     device_logical:        physical_offset: length:  dev: flags:      
   0:        0..       3:    4063232..   4063235:      4: 0001: net         
   1:      512..   66559:    4063744..   4129791:  66048: 0001: net         
   2:   262656..  319487:    4137472..   4194303:  56832: 0001: net         
   3:   319488..  327679:     466944..    475135:   8192: 0001: net         
   4:   327680..  328703:     491520..    492543:   1024: 0001: net         
   5:        0..   65535:    2883584..   2949119:  65536: 0000: net         
   6:   262144..  327679:    2949120..   3014655:  65536: 0000: last,net    
test_simple: 5 extents found                                                

[root@client client]# du test_simple      
263176  test_simple                     

[root@client client]# strace -o report lfs migrate -c2 test_simple

[root@client client]# filefrag -v test_simple                              
Filesystem type is: bd00bd0                                                
File size of test_simple is 672137216 (656384 blocks of 1024 bytes)        
 ext:     device_logical:        physical_offset: length:  dev: flags:     
   0:        0..       3:     433676..    433679:      4: 0001: net        
   1:      512..    1023:     457244..    457755:    512: 0001: net        
   2:     1024..    1535:     461812..    462323:    512: 0001: net        
   3:     1536..    2047:     457756..    458267:    512: 0001: net        
   4:     2048..    3583:     462848..    464383:   1536: 0001: net        
   5:     3584..    4095:     397824..    398335:    512: 0001: net        
   6:     4096..   24575:     499712..    520191:  20480: 0001: net        
   7:    24576..   66559:    2629632..   2671615:  41984: 0001: net        
   8:   262656..  328703:    2679296..   2745343:  66048: 0001: net        
   9:        0..    1023:     473088..    474111:   1024: 0000: net        
  10:     1024..    1535:     466432..    466943:    512: 0000: net        
  11:     1536..    2047:     475136..    475647:    512: 0000: net        
  12:     2048..    3071:     474112..    475135:   1024: 0000: net        
  13:     3072..    3583:     475648..    476159:    512: 0000: net        
  14:     3584..   66047:    3014656..   3077119:  62464: 0000: net        
  15:   262144..  327679:    3088384..   3153919:  65536: 0000: last,net   
test_simple: 16 extents found                                              
                      
[root@client client]# du test_simple                           
263692  test_simple                                            
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;block_diff = 263692 - 263176 = &lt;b&gt;516kb&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;&lt;b&gt;&quot;lfs migrate&quot; strace:&lt;/b&gt;&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;lseek(3, 4096, SEEK_DATA)               = 524288                                                                                                  
lseek(3, 524288, SEEK_HOLE)             = 135266304                                                                                               
pread64(3, &quot;]\220\311\337\376 T@\3622\314\231\3\0100\202]\31j\246u\177\256\255\307\250\0\333\311\301\346\251&quot;..., 1048576, 524288) = 1048576      
pwrite64(4, &quot;]\220\311\337\376 T@\3622\314\231\3\0100\202]\31j\246u\177\256\255\307\250\0\333\311\301\346\251&quot;..., 1048576, 524288) = 1048576 
...
pwrite64(4, &quot;\266\270\20\357\243\366#jC\217\333\325\260V\314;\274b\204\250\4s\\\231\6\222\34\300\30n]\27&quot;..., 1048576, 133693440) = 1048576  
pread64(3, &quot;\325/\377m\316\251P\2723\27*%1\205\216\365; \tv$\241X\31&amp;gt;\342\331f\265td\353&quot;..., 1048576, 134742016) = 1048576                  
pwrite64(4, &quot;\325/\377m\316\251&quot;..., 1048576, 134742016) = 1048576                     &amp;lt;------ 134742016 + 1048576 = 135790592 != seek_hole (135266304)
lseek(3, 135790592, SEEK_DATA)          = 537395200                                                                                          
lseek(3, 537395200, SEEK_HOLE)          = 672137216                                                                                          
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="76883">LU-16948</key>
            <summary>sparse file migration broken</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="1" iconUrl="https://jira.whamcloud.com/images/icons/statuses/open.png" description="The issue is open and ready for the assignee to start work on it.">Open</status>
                    <statusCategory id="2" key="new" colorName="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="eaujames">Etienne Aujames</assignee>
                                    <reporter username="eaujames">Etienne Aujames</reporter>
                        <labels>
                    </labels>
                <created>Thu, 6 Jul 2023 15:42:24 +0000</created>
                <updated>Wed, 2 Aug 2023 18:47:42 +0000</updated>
                                            <version>Lustre 2.16.0</version>
                    <version>Lustre 2.15.3</version>
                                                        <due></due>
                            <votes>0</votes>
                                    <watches>5</watches>
                                                                            <comments>
                            <comment id="377730" author="paf0186" created="Thu, 6 Jul 2023 15:48:32 +0000"  >&lt;p&gt;&quot;On 2.15.3 sparse file migration with a stripe count &amp;gt; 2 does not keep the same number of blocks if the extents are non-aligned on the stripe_size (on master the extent must be &amp;gt; 64M):&quot;&lt;/p&gt;

&lt;p&gt;Etienne, I don&apos;t follow the second part here - What is the bug on master exactly?&lt;/p&gt;

&lt;p&gt;Also, did you mean stripe count &amp;gt; 1 ?&lt;/p&gt;</comment>
                            <comment id="377739" author="eaujames" created="Thu, 6 Jul 2023 16:03:17 +0000"  >&lt;p&gt;Sorry, my mistake, the stripe_count is not the culprit (I can reproduce this with stripe_count=1).&lt;/p&gt;</comment>
                            <comment id="377740" author="gerrit" created="Thu, 6 Jul 2023 16:04:27 +0000"  >&lt;p&gt;&quot;Etienne AUJAMES &amp;lt;eaujames@ddn.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/51593&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/51593&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16948&quot; title=&quot;sparse file migration broken&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16948&quot;&gt;LU-16948&lt;/a&gt; utils: fix lfs migrate for sparse files&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 5f0826104c694db56ec22d40b094f8a74e9d9ffe&lt;/p&gt;</comment>
                            <comment id="377741" author="eaujames" created="Thu, 6 Jul 2023 16:06:45 +0000"  >&lt;p&gt;This bug is linked to the buffer_size, on master the buffer_size is &amp;gt; 64M: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16587&quot; title=&quot;Make lfs migrate faster&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16587&quot;&gt;&lt;del&gt;LU-16587&lt;/del&gt;&lt;/a&gt; utils: give lfs migrate a larger buffer (&lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/50118&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/50118&lt;/a&gt;)&lt;/p&gt;</comment>
                            <comment id="377744" author="eaujames" created="Thu, 6 Jul 2023 16:20:10 +0000"  >&lt;p&gt;On master the block_diff should be something like this:&lt;br/&gt;
block_diff = buffer_size - (segment_size % buffer_size) = 64M - 512K&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="74796">LU-16587</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|i03ptr:</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>