<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:39:27 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-4077] lfs changelog command: RENME flag displays wrong target FID</title>
                <link>https://jira.whamcloud.com/browse/LU-4077</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;lustre: 2.4.0&lt;br/&gt;
kernel: patchless_client&lt;br/&gt;
build:  2.4.0-RC2-gd3f91c4-PRISTINE-2.6.32-358.6.2.el6_lustre.g230b174.x86_64&lt;/p&gt;

&lt;p&gt;As you can see, an invalid target ID is being set:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;328479 08RENME 21:40:54.122228367 2013.10.08 0x0 t=[0:0x0:0x0] p=[0x200000007:0x1:0x0] z1 s=[0x200000bd2:0xbc88:0x0] sp=[0x200000007:0x1:0x0] z
328480 17MTIME 21:41:02.306553532 2013.10.08 0x7 t=[0x200000bd2:0xbc88:0x0]
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Additionally this target ID seems to be persistent:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;328482 02MKDIR 21:44:38.780748749 2013.10.08 0x0 t=[0x200000bd2:0xbc8a:0x0] p=[0x200000007:0x1:0x0] dir
328483 01CREAT 21:44:43.788336497 2013.10.08 0x0 t=[0x200000bd2:0xbc8b:0x0] p=[0x200000bd2:0xbc8a:0x0] x
328484 11CLOSE 21:44:43.789336461 2013.10.08 0x42 t=[0x200000bd2:0xbc8b:0x0]
328485 08RENME 21:44:45.42233725 2013.10.08 0x0 t=[0:0x0:0x0] p=[0x200000bd2:0xbc8a:0x0] y s=[0x200000bd2:0xbc8b:0x0] sp=[0x200000bd2:0xbc8a:0x0] x
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="21313">LU-4077</key>
            <summary>lfs changelog command: RENME flag displays wrong target FID</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="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="6">Not a Bug</resolution>
                                        <assignee username="wc-triage">WC Triage</assignee>
                                    <reporter username="cfaber#1">Colin Faber [X]</reporter>
                        <labels>
                    </labels>
                <created>Tue, 8 Oct 2013 21:49:45 +0000</created>
                <updated>Sat, 9 Oct 2021 05:49:19 +0000</updated>
                            <resolved>Sat, 9 Oct 2021 05:49:19 +0000</resolved>
                                    <version>Lustre 2.4.0</version>
                                                        <due></due>
                            <votes>0</votes>
                                    <watches>7</watches>
                                                                            <comments>
                            <comment id="68651" author="adilger" created="Wed, 9 Oct 2013 00:08:43 +0000"  >&lt;p&gt;Colin,&lt;br/&gt;
If the source file/directory is not being renamed on top of another file, then I can imagine that the target FID is empty.  For example, I suspect that the above log is for the case:&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;$ touch /mnt/lustre/a
$ mv /mnt/lustre/a /mnt/lustre/b
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I expect that if there is a target filename it will appear in the RENME record:&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;$ touch /mnt/lustre/a /mnt/lustre/b
$ mv /mnt/lustre/a /mnt/lustre/b
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Whether it is better to print an empty target or not print it at all, I can&apos;t say for sure. Always printing the target FID (even if empty) at least simplifies the output. The lctl changelog command output isn&apos;t really intended for direct consumption, it makes more sense to have a tool reading the ChangeLog directly to avoid overhead. &lt;/p&gt;</comment>
                            <comment id="69234" author="cfaber" created="Thu, 17 Oct 2013 17:06:33 +0000"  >&lt;p&gt;To me, this makes not so much sense, as the target FID &apos;fid&apos; in all other context is the file being acted upon, not the destination directory or file it&apos;s writing into.&lt;/p&gt;

&lt;p&gt;Having sfid indicate the target works fine, it just seems inconsistent with the rest of the logging output.&lt;/p&gt;

&lt;p&gt;-cf&lt;/p&gt;</comment>
                            <comment id="69253" author="adilger" created="Thu, 17 Oct 2013 20:08:54 +0000"  >&lt;p&gt;I suspect it is too late to do anything about this, but I&apos;ve added JC to the CC list, since I think this code was originally added for HSM.&lt;/p&gt;</comment>
                            <comment id="69383" author="leibovici-cea" created="Mon, 21 Oct 2013 07:28:16 +0000"  >&lt;p&gt;As Andreas said, tfid in RENME records is expected to give the target (removed) entry, if any.&lt;br/&gt;
It looks this is not a major bug here, just a cosmetic issue in lfs output.&lt;br/&gt;
-Thomas&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|hzw53z:</customfieldvalue>

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