<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:28:04 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-16560] &apos;lfs find -printf %w&apos; does not print birth time</title>
                <link>https://jira.whamcloud.com/browse/LU-16560</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;I was using &quot;&lt;tt&gt;lfs find -printf&lt;/tt&gt;&quot; to generate output similar to &quot;&lt;tt&gt;find -ls&lt;/tt&gt;&quot; until &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-15504&quot; title=&quot;&amp;quot;lfs find&amp;quot; is missing &amp;quot;-ls&amp;quot; support&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-15504&quot;&gt;LU-15504&lt;/a&gt; is implemented, and incorrectly used &quot;&lt;tt&gt;%w&lt;/tt&gt;&quot; instead of &quot;&lt;tt&gt;%t&lt;/tt&gt;&quot; to print the timestamp.&lt;/p&gt;

&lt;p&gt;This showed that the birth time is not being printed properly, always printing the epoch zero time for the birth time:&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;$ lfs find /myth/tmp/adilger  -size +512k -printf &quot;%Li %LF %b %U %G %s %w %p\n&quot;
4 0x20003b551:0xb:0x0 266240 1000 1000 136314880 Wed Dec 31 17:00:00 1969 /myth/tmp/adilger/pflfile2
1 0x200035f67:0xd55:0x0 16384 1000 1000 8388608 Wed Dec 31 17:00:00 1969 /myth/tmp/adilger/pflfile8
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Using the &quot;&lt;tt&gt;%t&lt;/tt&gt;&quot; format showed that it is printing the mtime properly:&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;$ lfs find /myth/tmp/adilger  -size +512k -printf &quot;%Li %LF %b %U %G %s %t %p\n&quot;
4 0x20003b551:0xb:0x0 266240 1000 1000 136314880 Fri Jul 29 16:28:17 2022 /myth/tmp/adilger/pflfile2
1 0x200035f67:0xd55:0x0 16384 1000 1000 8388608 Fri Aug 12 19:16:28 2022 /myth/tmp/adilger/pflfile8
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Running the &lt;tt&gt;statx&lt;/tt&gt; tool on the file showed that the birth time was correctly set on the inode and being returned by &lt;tt&gt;statx()&lt;/tt&gt; syscall to userspace, so the problem appears to be in the &quot;&lt;tt&gt;lfs find -printf&lt;/tt&gt;&quot; handling for this attribute:&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/tests/statx /myth/tmp/adilger/pflfile{2,8}
  File: /myth/tmp/adilger/pflfile2
  Size: 136314880 	Blocks: 266240     IO Block: 4194304 regular file
Device: 9a6023aeh/2589991854d	Inode: 144119265358774283  Links: 1
Access: (0664/-rw-rw-r--)  Uid: ( 1000/ adilger)   Gid: ( 1000/ adilger)
Context: unconfined_u:object_r:unlabeled_t:s0
Access: 2022-07-29 16:28:48.000000000 -0600
Modify: 2022-07-29 16:28:17.000000000 -0600
Change: 2022-07-29 16:28:48.000000000 -0600
 Birth: 2022-07-29 16:27:51.000000000 -0600
  File: /myth/tmp/adilger/pflfile8
  Size: 8388608   	Blocks: 16384      IO Block: 4194304 regular file
Device: 9a6023aeh/2589991854d	Inode: 144118896360688981  Links: 1
Access: (0664/-rw-rw-r--)  Uid: ( 1000/ adilger)   Gid: ( 1000/ adilger)
Context: system_u:object_r:unlabeled_t:s0
Access: 2022-08-12 19:21:46.000000000 -0600
Modify: 2022-08-12 19:16:28.000000000 -0600
Change: 2022-08-12 19:21:46.000000000 -0600
 Birth: 2022-08-12 19:16:28.000000000 -0600
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="74700">LU-16560</key>
            <summary>&apos;lfs find -printf %w&apos; does not print birth time</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="georgea">Anjus George</assignee>
                                    <reporter username="adilger">Andreas Dilger</reporter>
                        <labels>
                    </labels>
                <created>Wed, 15 Feb 2023 21:18:50 +0000</created>
                <updated>Thu, 11 May 2023 15:01:23 +0000</updated>
                                                                                <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                            <comments>
                            <comment id="362958" author="adilger" created="Wed, 15 Feb 2023 21:23:01 +0000"  >&lt;p&gt;Anjus, would you be able to take a look at this issue?&lt;/p&gt;</comment>
                            <comment id="363072" author="georgea" created="Thu, 16 Feb 2023 19:56:07 +0000"  >&lt;p&gt;Andreas, thanks for reporting. This is interesting. And yes I will take a look at it.&lt;/p&gt;</comment>
                            <comment id="371962" author="gerrit" created="Thu, 11 May 2023 15:01:23 +0000"  >&lt;p&gt;&quot;Anjus George &amp;lt;georgea@ornl.gov&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/50958&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/50958&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16560&quot; title=&quot;&amp;#39;lfs find -printf %w&amp;#39; does not print birth time&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16560&quot;&gt;LU-16560&lt;/a&gt; utils: correct lfs find printf btime&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 8f598c273443a4af654cade5407c0857bb514989&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="25084">LU-5170</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="70232">LU-15837</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="68412">LU-15504</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="49717">LU-10378</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|i03e8n:</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>