<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:19:20 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-15557] creating/breaking mirror should not change file timestamps</title>
                <link>https://jira.whamcloud.com/browse/LU-15557</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;When a file is mirrored and the mirrored is broken file time stamps should be preserved. Here we see that ctime and mtime change to the mirror creation time.&lt;/p&gt;

&lt;p&gt;Initial File:&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;
 # stat testfile
  File: &lt;span class=&quot;code-quote&quot;&gt;&apos;testfile&apos;&lt;/span&gt;
  Size: 59535     	Blocks: 120        IO Block: 4194304 regular file
Device: 521e79ech/1377729004d	Inode: 342273918398214817  Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2022-02-14 15:48:45.000000000 -0800
Modify: 2022-02-14 15:48:45.000000000 -0800
Change: 2022-02-14 15:48:45.000000000 -0800
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&#160;&lt;br/&gt;
Now we mirror&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;
 # date; lfs mirror extend -N S 1M -c 1 -p hdd-pool testfile
Mon Feb 14 15:50:27 PST 2022
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;State the File and layout&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;
# stat testfile
  File: &lt;span class=&quot;code-quote&quot;&gt;&apos;testfile&apos;&lt;/span&gt;
  Size: 59535     	Blocks: 120        IO Block: 4194304 regular file
Device: 521e79ech/1377729004d	Inode: 342273918398214817  Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2022-02-14 15:48:45.000000000 -0800
Modify: 2022-02-14 15:48:45.000000000 -0800
Change: 2022-02-14 15:48:45.000000000 -0800
 Birth: -
pfe25 /nobackupp18/mhanafi # lfs getstripe testfile
testfile
  lcm_layout_gen:    1
  lcm_mirror_count:  2
  lcm_entry_count:   4
    lcme_id:             65537
    lcme_mirror_id:      1
    lcme_flags:          init,prefer
    lcme_extent.e_start: 0
    lcme_extent.e_end:   268435456
      lmm_stripe_count:  1
      lmm_stripe_size:   16777216
      lmm_pattern:       raid0
      lmm_layout_gen:    0
      lmm_stripe_offset: 109
      lmm_pool:          ssd-pool
      lmm_objects:
      - 0: { l_ost_idx: 109, l_fid: [0x90000040a:0x53990:0x0] }

    lcme_id:             65538
    lcme_mirror_id:      1
    lcme_flags:          prefer
    lcme_extent.e_start: 268435456
    lcme_extent.e_end:   5368709120
      lmm_stripe_count:  -1
      lmm_stripe_size:   16777216
      lmm_pattern:       raid0
      lmm_layout_gen:    0
      lmm_stripe_offset: -1
      lmm_pool:          ssd-pool

    lcme_id:             65539
    lcme_mirror_id:      1
    lcme_flags:          0
    lcme_extent.e_start: 5368709120
    lcme_extent.e_end:   EOF
      lmm_stripe_count:  16
      lmm_stripe_size:   16777216
      lmm_pattern:       raid0
      lmm_layout_gen:    0
      lmm_stripe_offset: -1
      lmm_pool:          hdd-pool

    lcme_id:             131073
    lcme_mirror_id:      2
    lcme_flags:          init
    lcme_extent.e_start: 0
    lcme_extent.e_end:   EOF
      lmm_stripe_count:  1
      lmm_stripe_size:   1048576
      lmm_pattern:       raid0
      lmm_layout_gen:    0
      lmm_stripe_offset: 0
      lmm_pool:          hdd-pool
      lmm_objects:
      - 0: { l_ost_idx: 0, l_fid: [0x2c0000409:0x30c3e:0x0] }

&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Break the mirror and stat the file. File ctime and atime has changed.&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;
date; lfs mirror split -d --mirror-id 1 testfile
Mon Feb 14 15:51:31 PST 2022
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&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;
 # stat testfile
  File: &lt;span class=&quot;code-quote&quot;&gt;&apos;testfile&apos;&lt;/span&gt;
  Size: 59535     	Blocks: 120        IO Block: 4194304 regular file
Device: 521e79ech/1377729004d	Inode: 342273918398214817  Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2022-02-14 15:50:27.000000000 -0800
Modify: 2022-02-14 15:48:45.000000000 -0800
Change: 2022-02-14 15:50:27.000000000 -0800
 Birth: -
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="68673">LU-15557</key>
            <summary>creating/breaking mirror should not change file timestamps</summary>
                <type id="4" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11310&amp;avatarType=issuetype">Improvement</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="6">Not a Bug</resolution>
                                        <assignee username="cfaber">Colin Faber</assignee>
                                    <reporter username="mhanafi">Mahmoud Hanafi</reporter>
                        <labels>
                    </labels>
                <created>Tue, 15 Feb 2022 00:16:53 +0000</created>
                <updated>Wed, 22 Jun 2022 20:38:35 +0000</updated>
                            <resolved>Wed, 22 Jun 2022 20:38:35 +0000</resolved>
                                    <version>Lustre 2.12.6</version>
                                                        <due></due>
                            <votes>0</votes>
                                    <watches>5</watches>
                                                                            <comments>
                            <comment id="326377" author="JIRAUSER17312" created="Tue, 15 Feb 2022 15:57:32 +0000"  >&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;What version are you running?&lt;/p&gt;

&lt;p&gt;-cf&lt;/p&gt;</comment>
                            <comment id="326379" author="mhanafi" created="Tue, 15 Feb 2022 16:15:53 +0000"  >&lt;p&gt;lustre server/client 2.12.7&lt;/p&gt;</comment>
                            <comment id="326382" author="jhammond" created="Tue, 15 Feb 2022 16:37:06 +0000"  >&lt;p&gt;Generally mirror split will change the block count and therefore should update the ctime. Do you have some workflow or application that is affected by the ctime update?&lt;/p&gt;</comment>
                            <comment id="326544" author="mhanafi" created="Wed, 16 Feb 2022 22:12:12 +0000"  >&lt;p&gt;Some users track file time stamps and expect them not to change.&#160;&lt;/p&gt;</comment>
                            <comment id="326554" author="JIRAUSER17312" created="Wed, 16 Feb 2022 23:06:07 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.whamcloud.com/secure/ViewProfile.jspa?name=mhanafi&quot; class=&quot;user-hover&quot; rel=&quot;mhanafi&quot;&gt;mhanafi&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.whamcloud.com/browse/LU-14508&quot; title=&quot;lfs mirror operations do not preserve timestamps&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-14508&quot;&gt;&lt;del&gt;LU-14508&lt;/del&gt;&lt;/a&gt; should address this and will be availeble in the 2.15 release.&lt;/p&gt;

&lt;p&gt;-cf&lt;/p&gt;</comment>
                            <comment id="326845" author="mhanafi" created="Mon, 21 Feb 2022 20:15:39 +0000"  >&lt;p&gt;can we get a back port to 2.12.6_ddn and 2.14?&lt;/p&gt;</comment>
                            <comment id="326940" author="JIRAUSER17312" created="Tue, 22 Feb 2022 16:33:26 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.whamcloud.com/secure/ViewProfile.jspa?name=mhanafi&quot; class=&quot;user-hover&quot; rel=&quot;mhanafi&quot;&gt;mhanafi&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;We&apos;re still discussing this, because the blocks change on disk, ctime should change (according to POSIX standard), this is expected behavior, (if the blocks don&apos;t change, this patch will prevent ctime updates).&lt;/p&gt;

&lt;p&gt;Because of this we need to discuss how to deliver this with (possibly) a configuration option to turn on and off this behavior.&lt;/p&gt;

&lt;p&gt;-cf&lt;/p&gt;</comment>
                            <comment id="338430" author="JIRAUSER17312" created="Wed, 22 Jun 2022 20:38:35 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.whamcloud.com/secure/ViewProfile.jspa?name=mhanafi&quot; class=&quot;user-hover&quot; rel=&quot;mhanafi&quot;&gt;mhanafi&lt;/a&gt; after some discussion with the developers, this behavior is as designed specifically desirable with the creation of new mirrors.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="63271">LU-14508</issuekey>
        </issuelink>
                            </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|i02idz:</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>