<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:05:06 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-13893] Attempt to add PCC with param &apos;size&gt;{1M}&amp;size&lt;{500G} reports Invalid argument (22)</title>
                <link>https://jira.whamcloud.com/browse/LU-13893</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Step to to reproduce:&lt;/p&gt;

&lt;p&gt;Use combination of parameters&#160; size with&#160; both&#160; M and G affix&lt;/p&gt;

&lt;p&gt;Add cache:&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;&#160;/usr/sbin/lctl pcc add /mnt/lustre /mnt/pccro --param &apos;*size&amp;gt;\{1M}&amp;amp;size&amp;lt;\{500G}* roid=7 ropcc=1&apos;
lctl pcc pcc: error: setting llite.lustre-ffff92c83864f000.pcc=&apos;add /mnt/pccro size&amp;gt;\{1M}&amp;amp;size&amp;lt;\{500G} roid=7 ropcc=1&apos;: *Invalid argument (22)*

&#160;/usr/sbin/lctl pcc add /mnt/lustre /mnt/pccro --param &apos;size&amp;gt;*{100M}&amp;amp;size&amp;lt;\{500G}* roid=7 ropcc=1&apos;
lctl pcc pcc: error: setting llite.lustre-ffff92c83864f000.pcc=&apos;add /mnt/pccro size&amp;gt;\{100M}&amp;amp;size&amp;lt;\{500G} roid=7 ropcc=1&apos;: *Invalid argument (22)*
&#160;&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Also is it support for K postfix? it also reports Invalid argument&lt;/p&gt;</description>
                <environment></environment>
        <key id="60339">LU-13893</key>
            <summary>Attempt to add PCC with param &apos;size&gt;{1M}&amp;size&lt;{500G} reports Invalid argument (22)</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="qian_wc">Qian Yingjin</assignee>
                                    <reporter username="vilapa">Vikentsi Lapa</reporter>
                        <labels>
                    </labels>
                <created>Fri, 7 Aug 2020 20:30:55 +0000</created>
                <updated>Sat, 8 Aug 2020 03:00:11 +0000</updated>
                                            <version>Lustre 2.14.0</version>
                                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="277001" author="adilger" created="Fri, 7 Aug 2020 21:53:34 +0000"  >&lt;p&gt;Honestly, the syntax for these rules is not very easy to parse and write, and would have been better done differently IMHO. For example, separating the configuration of the PCC device from the setting of rules, avoiding the use of complex separators for values (e.g. why do we need &apos;&lt;tt&gt;&apos;&lt;/tt&gt; around every value), etc.&#160; Hopefully this can be improved as part of the landing for 2.15.&lt;/p&gt;

&lt;p&gt;According to the &quot;&lt;tt&gt;lfs-pcc.1&lt;/tt&gt;&quot; man page on master, there is no need for &quot;&lt;tt&gt;&#8211;param&lt;/tt&gt;&quot;, just specify the list of parameters , but maybe that is changed by the patches?&#160; The man page says:&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 pcc add /mnt/lustre /mnt/pcc &quot;projid=\{500,1000}&amp;amp;fname=\{*.h5},uid=1001 rwid=1&quot;
        Add HSM root and Archive ID (referenced by rwid name-value pair)
        mapping for RW-PCC. Where &quot;&amp;amp;&quot; represents the logical conjunction
        operator while &quot;,&quot; represents the logical disjunction operator.
        The example rule means that new files are only auto cached if
        the project ID is either 500 or 1000 and the suffix of the file
        name is ah5a or the user ID is 1001.
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="277007" author="qian_wc" created="Sat, 8 Aug 2020 02:58:21 +0000"  >&lt;p&gt;It worked on my testing:&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;
[root@qian tests]# ../utils/lctl pcc add /mnt/lustre /mnt/pcc -p &lt;span class=&quot;code-quote&quot;&gt;&quot;size&amp;gt;{100M}&amp;amp;size&amp;lt;{500G} roid=7 ropcc=1&quot;&lt;/span&gt;
[root@qian tests]# ../utils/lctl pcc list /mnt/lustre                           
pcc:
  -
    pccpath: /mnt/pcc
    hsmtool: posix
    rwid: 0
    roid: 7
    flags: 2e
    autocache: size&amp;gt;{100M}&amp;amp;size&amp;lt;{500G}
[root@qian tests]# ../utils/lctl pcc clear /mnt/lustre
[root@qian tests]# ../utils/lctl pcc add /mnt/lustre /mnt/pcc -p &lt;span class=&quot;code-quote&quot;&gt;&quot;size&amp;gt;{100K}&amp;amp;size&amp;lt;{500G} roid=7 ropcc=1&quot;&lt;/span&gt;
[root@qian tests]# ../utils/lctl pcc list /mnt/lustre
pcc:
  -
    pccpath: /mnt/pcc
    hsmtool: posix
    rwid: 0
    roid: 7
    flags: 2e
    autocache: size&amp;gt;{100K}&amp;amp;size&amp;lt;{500G}
[root@qian tests]# ../utils/lctl pcc list /mnt/lustre

[root@qian tests]# ../utils/lctl pcc clear /mnt/lustre
[root@qian tests]# ../utils/lctl pcc add /mnt/lustre /mnt/pcc -p &lt;span class=&quot;code-quote&quot;&gt;&quot;size&amp;lt;{100K}&amp;amp;size&amp;gt;{500K} roid=7 ropcc=1&quot;&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I think you did not use the latest patch for testing, please download the latest Jenkins build to test it again.&lt;/p&gt;</comment>
                            <comment id="277008" author="qian_wc" created="Sat, 8 Aug 2020 03:00:11 +0000"  >&lt;p&gt;Hi Andreas,&lt;/p&gt;

&lt;p&gt;I will update the man page accordingly.&lt;br/&gt;
Thanks for pointing it out.&lt;/p&gt;

&lt;p&gt;Qian&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|i017g7:</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>