<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:05:38 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-7058] Hit &quot;No such file or directory&quot; error when migrating a dir ends with slash</title>
                <link>https://jira.whamcloud.com/browse/LU-7058</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Hit error if migrate a dir ends with &quot;/&quot;,  non-slash works well.&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@onyx-27 lustre]# lfs migrate -m 1 /mnt/lustre/other-dir/
/mnt/lustre/other-dir migrate failed: No such file or directory (-2)
error: migrate: migrate file &apos;/mnt/lustre/other-dir/&apos; failed
[root@onyx-27 lustre]# lfs migrate -m 1 /mnt/lustre/other-dir
[root@onyx-27 lustre]# 
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment>lustre-master build # 3142 RHEL6.6</environment>
        <key id="31779">LU-7058</key>
            <summary>Hit &quot;No such file or directory&quot; error when migrating a dir ends with slash</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="5">Cannot Reproduce</resolution>
                                        <assignee username="sguminsx">Steve Guminski</assignee>
                                    <reporter username="sarah">Sarah Liu</reporter>
                        <labels>
                            <label>dne3</label>
                            <label>easy</label>
                    </labels>
                <created>Fri, 28 Aug 2015 22:06:17 +0000</created>
                <updated>Tue, 7 Apr 2020 23:45:19 +0000</updated>
                            <resolved>Tue, 7 Apr 2020 23:45:19 +0000</resolved>
                                    <version>Lustre 2.8.0</version>
                                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="125742" author="adilger" created="Mon, 31 Aug 2015 17:40:09 +0000"  >&lt;p&gt;I guess that the shell will auto-complete the directory name to have a trailing &apos;/&apos; so this could be hit fairly easily.  I haven&apos;t looked at the code yet, but running &lt;tt&gt;strace lfs migrate -c 2 bat/&lt;/tt&gt; on my 2.5.3 system generates:&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;open(&quot;bat&quot;, O_RDONLY)                   = 3
ioctl(3, IPMICTL_SEND_COMMAND_SETTIME, 0x1ab0030) = -1 ENOENT (No such file or directory)
close(3)                                = 0
mmap(NULL, 1056768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f68a701f000
open(&quot;bat/.\f\23\24\22:VOLATILE::&quot;, O_WRONLY|O_CREAT|O_NOCTTY|O_ASYNC|0x1000000, 0644) = 3
ioctl(3, 0x4008669a, 0x7ffffdf058f0)    = 0
open(&quot;bat/&quot;, O_RDWR|O_DIRECT)           = -1 EISDIR (Is a directory)
write(2, &quot;cannot open bat/ (Is a directory&quot;..., 34cannot open bat/ (Is a directory)
) = 34
close(3)                                = 0
munmap(0x7f68a701f000, 1056768)         = 0
write(2, &quot;error: migrate: migrate stripe f&quot;..., 50error: migrate: migrate stripe file &apos;bat/&apos; failed
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;so it looks like it doesn&apos;t detect that this is a directory and try to migrate the contents.   However, it also doesn&apos;t work with &lt;tt&gt;lfs migrate -c 2 bat&lt;/tt&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;open(&quot;.&quot;, O_RDONLY)                     = 3
ioctl(3, IPMICTL_SEND_COMMAND_SETTIME, 0xab8030) = 0
close(3)                                = 0
getcwd(&quot;/myth/tmp&quot;, 4096)               = 10
open(&quot;/myth/tmp/.\f\23\24\22:VOLATILE::&quot;, O_WRONLY|O_CREAT|O_NOCTTY|O_ASYNC|0x1000000, 0644) = 3
ioctl(3, 0x4008669a, 0x7fff4a7e85e0)    = 0
open(&quot;bat&quot;, O_RDWR|O_DIRECT)            = -1 EISDIR (Is a directory)
write(2, &quot;cannot open bat (Is a directory)&quot;..., 33cannot open bat (Is a directory)
) = 33
close(3)                                = 0
write(2, &quot;error: migrate: migrate stripe f&quot;..., 49error: migrate: migrate stripe file &apos;bat&apos; failed
) = 49
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Is this changed with newer versions of lfs?&lt;/p&gt;</comment>
                            <comment id="184868" author="adilger" created="Tue, 14 Feb 2017 23:05:12 +0000"  >&lt;p&gt;Steve, do you have the cycles to look into this one?  It might just be a quick fix (e.g. drop trailing &apos;/&apos; from pathname if it is present).&lt;/p&gt;</comment>
                            <comment id="184934" author="sguminsx" created="Wed, 15 Feb 2017 12:07:14 +0000"  >&lt;p&gt;Sure, I&apos;m just finishing up with another ticket, so I&apos;ll take a look at this one next.&lt;/p&gt;</comment>
                            <comment id="212476" author="adilger" created="Wed, 1 Nov 2017 03:07:34 +0000"  >&lt;p&gt;Steve, any chance you could make a patch for this?&lt;/p&gt;</comment>
                            <comment id="212554" author="sguminsx" created="Wed, 1 Nov 2017 18:23:31 +0000"  >&lt;p&gt;It looks like the latest lfs still has problems migrating directories regardless of whether there is a trailing slash or not, as you discovered.&#160; I&apos;m looking into this now.&lt;/p&gt;</comment>
                            <comment id="214172" author="gerrit" created="Mon, 20 Nov 2017 20:04:34 +0000"  >&lt;p&gt;Steve Guminski (stephenx.guminski@intel.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/30177&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/30177&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7058&quot; title=&quot;Hit &amp;quot;No such file or directory&amp;quot; error when migrating a dir ends with slash&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7058&quot;&gt;&lt;del&gt;LU-7058&lt;/del&gt;&lt;/a&gt; utils: Allow lfs migrate to operate on directories&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 14673ec012bc48391af47b38e8a7b42c1cde22c1&lt;/p&gt;</comment>
                            <comment id="267100" author="adilger" created="Tue, 7 Apr 2020 23:45:19 +0000"  >&lt;p&gt;This works fine on master, not sure when it was fixed.&lt;/p&gt;</comment>
                    </comments>
                    <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|hzxlmv:</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>