<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:41:43 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-11188] Add to &quot;lfs find&quot; the ability to check on permissions</title>
                <link>https://jira.whamcloud.com/browse/LU-11188</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Adding the capability to &quot;&lt;tt&gt;lfs find&lt;/tt&gt;&quot; to search/locate on permission of file, matching the &lt;tt&gt;find -perm&lt;/tt&gt; behaviour of &lt;tt&gt;find(1)&lt;/tt&gt;.&lt;/p&gt;</description>
                <environment>CentOS 7.3  Lustre 2.9 and 2.10.4 clients</environment>
        <key id="52846">LU-11188</key>
            <summary>Add to &quot;lfs find&quot; the ability to check on permissions</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="courrier">Guillaume Courrier</assignee>
                                    <reporter username="mlarko">Megan Larko</reporter>
                        <labels>
                            <label>easy</label>
                            <label>lfs</label>
                    </labels>
                <created>Fri, 27 Jul 2018 19:39:00 +0000</created>
                <updated>Wed, 30 Jun 2021 14:09:46 +0000</updated>
                            <resolved>Wed, 2 Jun 2021 23:34:10 +0000</resolved>
                                    <version>Lustre 2.12.0</version>
                                    <fixVersion>Lustre 2.15.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="231017" author="adilger" created="Fri, 27 Jul 2018 20:15:24 +0000"  >&lt;p&gt;This should just be a matter of copying the code that handles &quot;&lt;tt&gt;-type&lt;/tt&gt;&quot; or similar (with new &lt;tt&gt;params.fp_mode&lt;/tt&gt; and &lt;tt&gt;params.fp_mode_sign&lt;/tt&gt; fields), and then modifying it to compare the mode.  The tricky part is getting the semantics correct with +/-mode, and converting symbolic modes to octal (the &lt;tt&gt;find(1)&lt;/tt&gt; man page goes into depth on this issue). Starting with only &quot;&lt;tt&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;+-&amp;#93;&lt;/span&gt;octal&lt;/tt&gt;&quot; may be enough for initial usefulness.  The OSX &lt;tt&gt;find(1)&lt;/tt&gt; man page summarizes the desired semantics nicely:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;If the mode is preceded by a dash (&apos;&lt;tt&gt;-&lt;/tt&gt;&apos;), this primary evaluates to true if at least &lt;b&gt;all&lt;/b&gt; of the bits in the mode are set in the file&apos;s mode bits.  If the mode is preceded by a plus (&apos;&lt;tt&gt;+&lt;/tt&gt;&apos;), this primary evaluates to true if &lt;b&gt;any&lt;/b&gt; of the bits in the mode are set in the file&apos;s mode bits.  Otherwise, this primary evaluates to true if the bits in the mode exactly match the file&apos;s mode bits.&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;This appears to equate to &lt;tt&gt;st_mode &amp;amp; fp_mode == fp_mode&lt;/tt&gt; and &lt;tt&gt;st_mode &amp;amp; fp_mode != 0&lt;/tt&gt; for &apos;&lt;tt&gt;-&lt;/tt&gt;&apos; and &apos;&lt;tt&gt;+&lt;/tt&gt;&apos; respectively.&lt;/p&gt;

&lt;p&gt;Newer versions of find also accept the &apos;&lt;tt&gt;/&lt;/tt&gt;&apos; modifier as equivalent to the &apos;&lt;tt&gt;+&lt;/tt&gt;&apos; modifier, since it avoids ambiguity with symbolic mode parsing.&lt;/p&gt;</comment>
                            <comment id="299751" author="adilger" created="Mon, 26 Apr 2021 17:57:07 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.whamcloud.com/secure/ViewProfile.jspa?name=courrier&quot; class=&quot;user-hover&quot; rel=&quot;courrier&quot;&gt;courrier&lt;/a&gt;, thanks for taking on this work.  Please let me know if you have any questions. &lt;/p&gt;

&lt;p&gt;For a change like this it should typically include a new sanity test as well as an update to the &lt;tt&gt;lustre/doc/lfs-find.1&lt;/tt&gt; man page.&lt;/p&gt;

&lt;p&gt;The &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7495&quot; title=&quot;lfs find is missing &amp;quot;-links&amp;quot; support&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7495&quot;&gt;&lt;del&gt;LU-7495&lt;/del&gt;&lt;/a&gt; ticket is very similar (possibly a bit easier than this one), while &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-10378&quot; title=&quot;&amp;quot;lfs find&amp;quot; is missing &amp;quot;-printf&amp;quot; support&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-10378&quot;&gt;&lt;del&gt;LU-10378&lt;/del&gt;&lt;/a&gt; would be somewhat more complex.&lt;/p&gt;</comment>
                            <comment id="299788" author="courrier" created="Tue, 27 Apr 2021 06:46:39 +0000"  >&lt;p&gt;Hi, thanks for your help. As I&apos;m new on this project, I&apos;ll be discovering the code as I&apos;m working on this patch.&lt;/p&gt;

&lt;p&gt;I&apos;ll come back to you if I have questions.&lt;/p&gt;</comment>
                            <comment id="301757" author="gerrit" created="Mon, 17 May 2021 08:42:32 +0000"  >&lt;p&gt;Guillaume Courrier (guillaume.courrier@cea.fr) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/43715&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/43715&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11188&quot; title=&quot;Add to &amp;quot;lfs find&amp;quot; the ability to check on permissions&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-11188&quot;&gt;&lt;del&gt;LU-11188&lt;/del&gt;&lt;/a&gt; lfs: add &quot;--perm&quot; option to &quot;lfs find&quot;&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 964b32570787f96cc615fae17049211f591bc4eb&lt;/p&gt;</comment>
                            <comment id="303331" author="gerrit" created="Wed, 2 Jun 2021 17:49:13 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/43715/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/43715/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11188&quot; title=&quot;Add to &amp;quot;lfs find&amp;quot; the ability to check on permissions&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-11188&quot;&gt;&lt;del&gt;LU-11188&lt;/del&gt;&lt;/a&gt; lfs: add &quot;--perm&quot; option to &quot;lfs find&quot;&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 06588e4a22b0ff037eafa1eee5e22521b1626904&lt;/p&gt;</comment>
                            <comment id="303383" author="pjones" created="Wed, 2 Jun 2021 23:34:10 +0000"  >&lt;p&gt;Landed for 2.15. Congratulations &lt;a href=&quot;https://jira.whamcloud.com/secure/ViewProfile.jspa?name=courrier&quot; class=&quot;user-hover&quot; rel=&quot;courrier&quot;&gt;courrier&lt;/a&gt; &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.whamcloud.com/images/icons/emoticons/smile.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10120">
                    <name>Blocker</name>
                                                                <inwardlinks description="is blocked by">
                                        <issuelink>
            <issuekey id="64921">LU-14801</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="25084">LU-5170</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="33365">LU-7495</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|hzzzyn:</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>