<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:56:24 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-6007] FIEMAP fails xfstests&apos;s fiemap-tester</title>
                <link>https://jira.whamcloud.com/browse/LU-6007</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Following resolution of bug &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-5933&quot; title=&quot;FIEMAP: FIEMAP_EXTENT_LAST is not always set&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-5933&quot;&gt;&lt;del&gt;LU-5933&lt;/del&gt;&lt;/a&gt;, I tried to run fiemap-tester from xfstests, and saw it fail. I don&apos;t know whether it&apos;s a Lustre or some bad assumption, but the same test works fine on ext4, and presumably all filesystem supported by the xfs test suite.&lt;/p&gt;

&lt;p&gt;xfstests is easy to get and install. See &lt;a href=&quot;http://xfs.org/index.php/Getting_the_latest_source_code&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://xfs.org/index.php/Getting_the_latest_source_code&lt;/a&gt;. fiemap-tester will fail within seconds, with no particular parameter besides the name of a file on Lustre.&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;# ./src/fiemap-tester /mnt/lustre/qwerty
preallocation not supported, disabling
Starting infinite run, if you don&apos;t see any output then its working properly.
ERROR: couldn&apos;t find extent at 197
map is &apos;HHHHHHDHDDDHDDDHDHHHDHHHHHDHDHDDDDHDDDDHDHDDDDDDDHHHDHDHHHDDHHHDHHDHHDDHDDDHHHHHHDDDDHHDDHDDDDDDHHHDDHDDDHHHHHHDDHDDHDHDDHDHDDDHHDDHDDHHDDHHHHDDHHHDHDDDHDDDDDHHDHHDHHHHDHDDHHHDDDHHDDHDDDHDDHHDDHHDHDDDHDHDDHDDDDDHDDHHDHHHHHHDDDHHHHDDHDHHHDHHHHDDDDHHHHHHDHHHHDHDHDDHHHDHDDHHDDDDHHHHDHDHHDHDDHHDDDHDDHHHDHHDDHHHDHHHHDDDDHDHHDHHHHDHDDDHDDDHDHHDHHDDDHDHDHDDDHHHDHHHHHDDDDHHDDHDHHDHHHDHHDHHHHDHHHHHQ&apos;
logical: [       6..       6] phys:    34998..   34998 flags: 0x80000000 tot: 1
logical: [       8..      10] phys:    34999..   35001 flags: 0x80000000 tot: 3
logical: [      12..      14] phys:    35002..   35004 flags: 0x80000000 tot: 3
...
logical: [     187..     188] phys:    35094..   35095 flags: 0x80000000 tot: 2
logical: [     191..     192] phys:    35096..   35097 flags: 0x80000000 tot: 2
logical: [     195..     195] phys:    35098..   35098 flags: 0x80000000 tot: 1
Problem comparing fiemap and map
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;


&lt;p&gt;Related to &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-920&quot; title=&quot;include xfstests into regular testing runs&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-920&quot;&gt;LU-920&lt;/a&gt;.&lt;/p&gt;
</description>
                <environment></environment>
        <key id="27842">LU-6007</key>
            <summary>FIEMAP fails xfstests&apos;s fiemap-tester</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.whamcloud.com/images/icons/priorities/major.svg">Major</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="wc-triage">WC Triage</assignee>
                                    <reporter username="fzago">Frank Zago</reporter>
                        <labels>
                    </labels>
                <created>Mon, 8 Dec 2014 22:55:19 +0000</created>
                <updated>Sat, 29 Jan 2022 10:19:19 +0000</updated>
                                            <version>Lustre 2.7.0</version>
                                                        <due></due>
                            <votes>0</votes>
                                    <watches>11</watches>
                                                                            <comments>
                            <comment id="101338" author="adilger" created="Thu, 11 Dec 2014 18:24:52 +0000"  >&lt;p&gt;I would love to get xfstests running on Lustre on a regular basis. &lt;/p&gt;</comment>
                            <comment id="105025" author="fzago" created="Wed, 28 Jan 2015 21:36:41 +0000"  >&lt;p&gt;FIEMAP is broken at least 2 ways.&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;FIEMAP_EXTENT_LAST is set even when the extent is not the last one&lt;/li&gt;
	&lt;li&gt;fm_start is somewhat ignored.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Here&apos;s two sample output from the same test, on Lustre and ext4. &lt;/p&gt;

&lt;p&gt;Lustre head of tree:&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;$./src/fiemap-tester /mnt/lustre/qwe -S 7 -r 1

*** NEW RUN ***
FS_IOC_FIEMAP query fm_start=0, fm_length=1142784, fm_extent_count=279
FS_IOC_FIEMAP result, fm_mapped_extents=75
logical: [       1..       6] phys:    35008..   35013 flags: 0x80000000 tot: 6
logical: [       8..       9] phys:    35014..   35015 flags: 0x80000000 tot: 2
logical: [      12..      12] phys:    35016..   35016 flags: 0x80000000 tot: 1
.....
logical: [     272..     272] phys:    35141..   35141 flags: 0x80000000 tot: 1
logical: [     275..     276] phys:    35142..   35143 flags: 0x80000000 tot: 2
logical: [     278..     281] phys:    35144..   35147 flags: 0x80000001 tot: 4
FS_IOC_FIEMAP query fm_start=311296, fm_length=1142784, fm_extent_count=279
FS_IOC_FIEMAP result, fm_mapped_extents=90
logical: [       1..       6] phys:    35008..   35013 flags: 0x80000000 tot: 6
logical: [       8..       9] phys:    35014..   35015 flags: 0x80000000 tot: 2
logical: [      12..      12] phys:    35016..   35016 flags: 0x80000000 tot: 1
.....
logical: [     341..     341] phys:    35178..   35178 flags: 0x80000000 tot: 1
logical: [     343..     350] phys:    35179..   35186 flags: 0x80000000 tot: 8
logical: [     354..     355] phys:    35187..   35188 flags: 0x80000001 tot: 2
FS_IOC_FIEMAP query fm_start=684032, fm_length=1142784, fm_extent_count=279
FS_IOC_FIEMAP result, fm_mapped_extents=97
logical: [       1..       6] phys:    35008..   35013 flags: 0x80000000 tot: 6
logical: [       8..       9] phys:    35014..   35015 flags: 0x80000000 tot: 2
logical: [      12..      12] phys:    35016..   35016 flags: 0x80000000 tot: 1
.....
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;ext4:&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;*** NEW RUN ***
FS_IOC_FIEMAP query fm_start=0, fm_length=1142784, fm_extent_count=279
FS_IOC_FIEMAP result, fm_mapped_extents=126
logical: [       0..       1] phys:  2563767.. 2563768 flags: 0x800 tot: 2
logical: [       2..       3] phys:  4423998.. 4423999 flags: 0x000 tot: 2
logical: [       4..       7] phys:  2563769.. 2563772 flags: 0x800 tot: 4
.....
logical: [     273..     274] phys:  4430097.. 4430098 flags: 0x000 tot: 2
logical: [     275..     275] phys:  4430099.. 4430099 flags: 0x800 tot: 1
logical: [     278..     278] phys:  4430102.. 4430102 flags: 0x800 tot: 1
FS_IOC_FIEMAP query fm_start=520192, fm_length=1142784, fm_extent_count=279
FS_IOC_FIEMAP result, fm_mapped_extents=107
logical: [     127..     127] phys:  4425471.. 4425471 flags: 0x800 tot: 1
logical: [     129..     129] phys:  4445185.. 4445185 flags: 0x000 tot: 1
logical: [     130..     130] phys:  4445186.. 4445186 flags: 0x800 tot: 1
.....
logical: [     377..     377] phys:  4430201.. 4430201 flags: 0x000 tot: 1
logical: [     380..     380] phys:  4430204.. 4430204 flags: 0x000 tot: 1
logical: [     382..     382] phys:  4430206.. 4430206 flags: 0x801 tot: 1
FS_IOC_FIEMAP query fm_start=962560, fm_length=1142784, fm_extent_count=279
FS_IOC_FIEMAP result, fm_mapped_extents=60
logical: [     234..     235] phys:  4445290.. 4445291 flags: 0x800 tot: 2
logical: [     238..     240] phys:  4445294.. 4445296 flags: 0x800 tot: 3
logical: [     242..     242] phys:  4445298.. 4445298 flags: 0x800 tot: 1
.....
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="105026" author="fzago" created="Wed, 28 Jan 2015 21:38:43 +0000"  >&lt;p&gt;Patch to add more debug traces to xfstests&apos; fiemap-tester.c&lt;/p&gt;</comment>
                            <comment id="105759" author="fzago" created="Thu, 5 Feb 2015 00:21:58 +0000"  >&lt;p&gt;I&apos;ve looked into that a bit more. basically fiemap will lie when the caller queries the file in chunks. Some application relying on that information will then read corrupted data.&lt;/p&gt;

&lt;p&gt;I suggest increasing the severity of this bug.&lt;/p&gt;
</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="12050">LU-1941</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="15939">LU-1923</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="27642">LU-5933</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="49613">LU-10335</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="12660">LU-920</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="16784" name="fiemap.diff" size="2042" author="fzago" created="Wed, 28 Jan 2015 21:38:43 +0000"/>
                    </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|hzx25r:</customfieldvalue>

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