<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:58:10 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-6205] tests: fix bash expansion of FIDs</title>
                <link>https://jira.whamcloud.com/browse/LU-6205</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;When calling lfs path2fid, and FID is returned between bracket. When that fid variable is used, it is then expanded by the shell to something else. For instance when it is given to fid2path, it returns an error:&lt;/p&gt;

&lt;p&gt;      $ ../utils/lfs fid2path lustre &lt;span class=&quot;error&quot;&gt;&amp;#91;0x200000be7:0xb:0x0&amp;#93;&lt;/span&gt;&lt;br/&gt;
      bad FID format &lt;span class=&quot;error&quot;&gt;&amp;#91;x&amp;#93;&lt;/span&gt;, should be &lt;span class=&quot;error&quot;&gt;&amp;#91;0x1:0x2:0x0&amp;#93;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;      fid2path: error on FID x: Invalid argument&lt;/p&gt;

&lt;p&gt;This will cause some tests, such as 154A or test_238 to fail under certain conditions, such as being called with:&lt;/p&gt;

&lt;p&gt;     ONLY=154A PDSH=ssh AGTCOUNT=1 agt1_HOST=localhost \&lt;br/&gt;
       NAME=local sh ./sanity.sh&lt;/p&gt;</description>
                <environment></environment>
        <key id="28539">LU-6205</key>
            <summary>tests: fix bash expansion of FIDs</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="wc-triage">WC Triage</assignee>
                                    <reporter username="fzago">Frank Zago</reporter>
                        <labels>
                            <label>patch</label>
                    </labels>
                <created>Tue, 3 Feb 2015 21:11:03 +0000</created>
                <updated>Mon, 24 Apr 2017 18:15:28 +0000</updated>
                            <resolved>Tue, 24 Mar 2015 16:27:49 +0000</resolved>
                                    <version>Lustre 2.7.0</version>
                                    <fixVersion>Lustre 2.8.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>7</watches>
                                                                            <comments>
                            <comment id="105598" author="gerrit" created="Tue, 3 Feb 2015 21:33:22 +0000"  >&lt;p&gt;frank zago (fzago@cray.com) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/13618&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/13618&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-6205&quot; title=&quot;tests: fix bash expansion of FIDs&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-6205&quot;&gt;&lt;del&gt;LU-6205&lt;/del&gt;&lt;/a&gt; tests: fix bash expansion of fid&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: aa99d73b66d377c0d5bad798eafbb25b0413b524&lt;/p&gt;</comment>
                            <comment id="105601" author="rread" created="Tue, 3 Feb 2015 21:37:36 +0000"  >&lt;p&gt;I can&apos;t figure out how to make this fail.  Do you have a simple reproducer for this?&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@test1 lustre]# touch foo
[root@test1 lustre]# lfs path2fid foo
[0x200000400:0x4a:0x0]
[root@test1 lustre]# lfs fid2path lustre [0x200000400:0x4a:0x0]
foo
[root@test1 lustre]# v=[0x200000400:0x4a:0x0]
[root@test1 lustre]# lfs fid2path lustre $v
foo
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="105604" author="fzago" created="Tue, 3 Feb 2015 21:43:13 +0000"  >&lt;p&gt;Your sample fails for me:&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;# lustre/utils/lfs fid2path lustre [0x200000400:0x4a:0x0]
bad FID format [a], should be [0x1:0x2:0x0]

# v=[0x200000400:0x4a:0x0]
[root@c65-l251-intel-fzago lustre-cleanup]# lustre/utils/lfs fid2path lustre $v
bad FID format [a], should be [0x1:0x2:0x0]
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I&apos;m running bash on centos 6.5.&lt;/p&gt;</comment>
                            <comment id="105605" author="fzago" created="Tue, 3 Feb 2015 21:46:14 +0000"  >&lt;p&gt;Robert, create a file &quot;a&quot; and try again.&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;# v=[0x200000400:0x4a:0x0]
# lfs fid2path lustre $v
fid2path: error on FID [0x200000400:0x4a:0x0]: No such file or directory
# touch a
# lfs fid2path lustre $v
bad FID format [a], should be [0x1:0x2:0x0]

fid2path: error on FID a: Invalid argument
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="105630" author="rread" created="Wed, 4 Feb 2015 01:04:52 +0000"  >&lt;p&gt;doh!&lt;/p&gt;</comment>
                            <comment id="109964" author="gerrit" created="Wed, 18 Mar 2015 11:19:00 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;http://review.whamcloud.com/13618/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/13618/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-6205&quot; title=&quot;tests: fix bash expansion of FIDs&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-6205&quot;&gt;&lt;del&gt;LU-6205&lt;/del&gt;&lt;/a&gt; tests: fix bash expansion of fid&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: fd3bfcd73ee93e356adb716b11feca4bfd860af4&lt;/p&gt;</comment>
                            <comment id="110489" author="jamesanunez" created="Tue, 24 Mar 2015 16:27:49 +0000"  >&lt;p&gt;Landed to master (pre-2.8.0)&lt;/p&gt;</comment>
                            <comment id="139111" author="lixi" created="Sat, 16 Jan 2016 02:10:27 +0000"  >&lt;p&gt;There are other scripts that needs similar fix, e.g.&lt;/p&gt;

&lt;p&gt;== sanity-lfsck test 2a: LFSCK can find out and repair crashed linkEA entry == 02:11:11 (1452877871)&lt;br/&gt;
formatall&lt;br/&gt;
setupall&lt;br/&gt;
preparing... 1 * 1 files will be created.&lt;br/&gt;
prepared.&lt;br/&gt;
stop mds1&lt;br/&gt;
start mds1&lt;br/&gt;
Starting client: atest-vm31: -o user_xattr,flock atest-vm32@tcp:/lustre /mnt/lustre&lt;br/&gt;
fail_loc=0x1603&lt;br/&gt;
fail_loc=0&lt;br/&gt;
10.128.12.32@tcp:/lustre /mnt/lustre lustre rw,flock,user_xattr 0 0&lt;br/&gt;
Stopping client atest-vm31 /mnt/lustre (opts&lt;img class=&quot;emoticon&quot; src=&quot;https://jira.whamcloud.com/images/icons/emoticons/smile.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;br/&gt;
Started LFSCK on the device lustre-MDT0000: namespace.&lt;br/&gt;
Starting client: atest-vm31: -o user_xattr,flock atest-vm32@tcp:/lustre /mnt/lustre&lt;br/&gt;
bad FID format &lt;span class=&quot;error&quot;&gt;&amp;#91;b&amp;#93;&lt;/span&gt;, should be &lt;span class=&quot;error&quot;&gt;&amp;#91;0x1:0x2:0x0&amp;#93;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;fid2path: error on FID b: Invalid argument&lt;br/&gt;
 sanity-lfsck test_2a: @@@@@@ FAIL: (8) Fail to repair linkEA: &lt;span class=&quot;error&quot;&gt;&amp;#91;0x280000bd0:0x1:0x0&amp;#93;&lt;/span&gt;  &lt;br/&gt;
  Trace dump:&lt;br/&gt;
  = /usr/lib64/lustre/tests/test-framework.sh:4421:error_noexit()&lt;br/&gt;
  = /usr/lib64/lustre/tests/test-framework.sh:4452:error()&lt;br/&gt;
  = /usr/lib64/lustre/tests/sanity-lfsck.sh:262:test_2a()&lt;br/&gt;
  = /usr/lib64/lustre/tests/test-framework.sh:4691:run_one()&lt;br/&gt;
  = /usr/lib64/lustre/tests/test-framework.sh:4728:run_one_logged()&lt;br/&gt;
  = /usr/lib64/lustre/tests/test-framework.sh:4594:run_test()&lt;br/&gt;
  = /usr/lib64/lustre/tests/sanity-lfsck.sh:264:main()&lt;br/&gt;
Dumping lctl log to /tmp/test_logs/logdir_1007_sanity-lfsck_1/sanity-lfsck.test_2a.*.1452877964.log&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                                                <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|hzx5kn:</customfieldvalue>

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