<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:35:30 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-10482] enhance &quot;lfs find&quot; to add mirror related search options</title>
                <link>https://jira.whamcloud.com/browse/LU-10482</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Enhance &quot;lfs find&quot; to add the following mirror related search options:&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;[!] --mirror-count|-N [+-]&amp;lt;mirror_cnt&amp;gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Number of mirrors.&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;[!] --file-state &amp;lt;file_state&amp;gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;State of a mirrored file.&lt;br/&gt;
A mirrored file can be one of the following states:&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;RDONLY - the mirrored file is in read only state, all of the mirrors contain the up-to-date data;
WRITE_PENDING - the mirrored file is being written;
SYNC_PENDING - the mirrored file is being resynchronized.
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;The user-friendly file state names would be &quot;ro&quot;, &quot;write&quot; and &quot;sync&quot;.&lt;/p&gt;</description>
                <environment></environment>
        <key id="50123">LU-10482</key>
            <summary>enhance &quot;lfs find&quot; to add mirror related search options</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="1">Fixed</resolution>
                                        <assignee username="yujian">Jian Yu</assignee>
                                    <reporter username="yujian">Jian Yu</reporter>
                        <labels>
                            <label>FLR2</label>
                    </labels>
                <created>Wed, 10 Jan 2018 08:46:15 +0000</created>
                <updated>Wed, 14 Feb 2018 05:42:02 +0000</updated>
                            <resolved>Wed, 14 Feb 2018 02:29:32 +0000</resolved>
                                                    <fixVersion>Lustre 2.11.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>5</watches>
                                                                            <comments>
                            <comment id="218931" author="adilger" created="Tue, 23 Jan 2018 20:12:10 +0000"  >&lt;p&gt;For the &quot;states&quot;, are these encoded as component flags?  In that case, the handling should just be implemented via &lt;tt&gt;lfs find --comp-flags=rdonly&lt;/tt&gt; or similar.&lt;/p&gt;</comment>
                            <comment id="218940" author="jay" created="Tue, 23 Jan 2018 22:16:41 +0000"  >&lt;p&gt;It&apos;s about file state, instead of state for individual components.&lt;/p&gt;</comment>
                            <comment id="218960" author="adilger" created="Wed, 24 Jan 2018 03:32:50 +0000"  >&lt;p&gt;Where is this state stored?  If in LMA, then we might also use this to prevent access from 2.10 clients?  If STALE is in incompat LMA flags, then this prevents 2.10 MDS from accessing a mirrored file to prevent it from allowing a 2.10 client to modify it. &lt;/p&gt;</comment>
                            <comment id="218966" author="jay" created="Wed, 24 Jan 2018 03:53:14 +0000"  >&lt;p&gt;It&apos;s stored in the layout, the lowest 2 bits of &lt;tt&gt;lov_comp_md_v1::lcm_flags&lt;/tt&gt;. There is a field in the layout to record the current number of mirrors, and I used that to decide if this is a mirrored file, and then prevent 2.10 clients from accessing it.&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;/**                                                                             
 * on-disk data &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; lcm_flags. Valid &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; lcm_magic is LOV_MAGIC_COMP_V1.         
 */                                                                             
&lt;span class=&quot;code-keyword&quot;&gt;enum&lt;/span&gt; lov_comp_md_flags {                                                        
        &lt;span class=&quot;code-comment&quot;&gt;/* the least 2 bits are used by FLR to record file state */&lt;/span&gt;             
        LCM_FL_NOT_FLR          = 0,                                            
        LCM_FL_RDONLY           = 1,                                            
        LCM_FL_WRITE_PENDING    = 2,                                            
        LCM_FL_SYNC_PENDING     = 3,                                            
        LCM_FL_FLR_MASK         = 0x3,                                          
};
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="219341" author="gerrit" created="Sun, 28 Jan 2018 02:58:45 +0000"  >&lt;p&gt;Jian Yu (jian.yu@intel.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/31069&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/31069&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-10482&quot; title=&quot;enhance &amp;quot;lfs find&amp;quot; to add mirror related search options&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-10482&quot;&gt;&lt;del&gt;LU-10482&lt;/del&gt;&lt;/a&gt; flr: enhance &quot;lfs find&quot; to add mirror options&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: fe971eaec046fe873cb30ee593202970e7869d7d&lt;/p&gt;</comment>
                            <comment id="220935" author="gerrit" created="Wed, 14 Feb 2018 00:52:50 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/31069/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/31069/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-10482&quot; title=&quot;enhance &amp;quot;lfs find&amp;quot; to add mirror related search options&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-10482&quot;&gt;&lt;del&gt;LU-10482&lt;/del&gt;&lt;/a&gt; flr: enhance &quot;lfs find&quot; to add mirror options&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 8cb239805699e925dae594bc82379f0caa43b491&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>
                            </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|hzzqsf:</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>
                                                                                                                                                                                                                                                                                                                                                                                                                </customfields>
    </item>
</channel>
</rss>