<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:59:27 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-13224] Expose lctl get/set/list param functionality in lustreapi</title>
                <link>https://jira.whamcloud.com/browse/LU-13224</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Allow applications that need to access the various lustre parameters in sysfs, profs, etc. to call a function from lustreapi.h that behaves similarly to &quot;lctl get_param &amp;lt;param name&amp;gt;&quot; and has the option to return data to any FILE*, so that it can be further processed by the calling application.&lt;/p&gt;

&lt;p&gt;The goal is to use the same infrastructure that allows lctl to know where the correct files are without having to create an lctl process for each get, set, and list operation.&lt;/p&gt;

&lt;p&gt;The target applications are those that need to continuously monitor lustre, such as LMT.&lt;/p&gt;</description>
                <environment>RHEL 7.5</environment>
        <key id="58032">LU-13224</key>
            <summary>Expose lctl get/set/list param functionality in lustreapi</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="defazio">Gian-Carlo Defazio</assignee>
                                    <reporter username="defazio">Gian-Carlo Defazio</reporter>
                        <labels>
                            <label>llnl</label>
                    </labels>
                <created>Sat, 8 Feb 2020 00:39:12 +0000</created>
                <updated>Thu, 23 Apr 2020 16:24:38 +0000</updated>
                            <resolved>Tue, 21 Apr 2020 15:31:11 +0000</resolved>
                                    <version>Lustre 2.10.8</version>
                                    <fixVersion>Lustre 2.14.0</fixVersion>
                    <fixVersion>Lustre 2.12.5</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>7</watches>
                                                                            <comments>
                            <comment id="262878" author="adilger" created="Sat, 8 Feb 2020 03:56:04 +0000"  >&lt;p&gt;There are already functions in liblustreapi_param.c that do this, they just haven&apos;t been exposed publicly yet.&lt;/p&gt;

&lt;p&gt;Please take a look at &lt;tt&gt;get_lustre_param_path()&lt;/tt&gt; and &lt;tt&gt;get_lustre_param_value()&lt;/tt&gt;.  If they seem suitable for your use, we can expose them as proper &lt;tt&gt;llapi_&amp;#42;&lt;/tt&gt; functions.  Otherwise, feedback is welcome.&lt;/p&gt;</comment>
                            <comment id="263038" author="defazio" created="Mon, 10 Feb 2020 22:24:20 +0000"  >&lt;p&gt;&lt;tt&gt;get_lustre_param_path()&lt;/tt&gt; and &lt;tt&gt;get_lustre_param_value()&lt;/tt&gt; do most of what I&apos;m looking for. However, &lt;tt&gt;get_lustre_param_value()&lt;/tt&gt; reads only the first line of the first file that matches some pattern. I&apos;d like a more flexible interface that can do some of what lctl does, such as reading all lines of all files that match. The solution I&apos;ve come up with moves, and slightly modifies, some functions from lustre_cfg.c to liblustreapi.c and then exposes them using lustreapi.h.}}&lt;/p&gt;</comment>
                            <comment id="263044" author="adilger" created="Tue, 11 Feb 2020 00:42:36 +0000"  >&lt;p&gt;I&apos;m OK with changing the &lt;tt&gt;get_lustre_param_{path,value}()&lt;/tt&gt; interface slightly, since those are not officially supported APIs.  The new function names should preferably be something like &lt;tt&gt;llapi_param_get_{path,value}()&lt;/tt&gt; so the names are more closely related. Alternately, you could add a third interface like &lt;tt&gt;llapi_param_get_values()&lt;/tt&gt; or &lt;tt&gt;llapi_param_get_all()&lt;/tt&gt; that returns all of the fields.  What might be even more helpful would be &lt;tt&gt;llapi_param_get_value_matching()&lt;/tt&gt; that can parse out matching subfields of YAML data and return only the data from one field.&lt;/p&gt;</comment>
                            <comment id="263107" author="gerrit" created="Tue, 11 Feb 2020 23:13:50 +0000"  >&lt;p&gt;Gian-Carlo DeFazio (defazio1@llnl.gov) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/37545&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/37545&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-13224&quot; title=&quot;Expose lctl get/set/list param functionality in lustreapi&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-13224&quot;&gt;&lt;del&gt;LU-13224&lt;/del&gt;&lt;/a&gt; utils: expose lctl functionality via lustreapi&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 4641f2b945b7f51fdd8783f0b8238a0f7c99551f&lt;/p&gt;</comment>
                            <comment id="265772" author="gerrit" created="Fri, 20 Mar 2020 17:56:12 +0000"  >&lt;p&gt;Gian-Carlo DeFazio (defazio1@llnl.gov) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/38011&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/38011&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-13224&quot; title=&quot;Expose lctl get/set/list param functionality in lustreapi&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-13224&quot;&gt;&lt;del&gt;LU-13224&lt;/del&gt;&lt;/a&gt; utils: insignificant changes to compare tests.&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: a96243e315bede22a1bfbe934e21badf2e315e6e&lt;/p&gt;</comment>
                            <comment id="267053" author="gerrit" created="Tue, 7 Apr 2020 17:19:10 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/37545/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/37545/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-13224&quot; title=&quot;Expose lctl get/set/list param functionality in lustreapi&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-13224&quot;&gt;&lt;del&gt;LU-13224&lt;/del&gt;&lt;/a&gt; utils: expose llapi_param* functions&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 9b44cf70a95b2ee97a17697dc97fbe462ad1f5b9&lt;/p&gt;</comment>
                            <comment id="267760" author="gerrit" created="Wed, 15 Apr 2020 22:40:01 +0000"  >&lt;p&gt;Gian-Carlo DeFazio (defazio1@llnl.gov) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/38239&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/38239&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-13224&quot; title=&quot;Expose lctl get/set/list param functionality in lustreapi&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-13224&quot;&gt;&lt;del&gt;LU-13224&lt;/del&gt;&lt;/a&gt; utils: expose llapi_param* functions&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_12&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: bbb9485b7d63c5aea42ad65e664b88d55a40da76&lt;/p&gt;</comment>
                            <comment id="268099" author="gerrit" created="Tue, 21 Apr 2020 01:40:28 +0000"  >&lt;p&gt;Gian-Carlo DeFazio (defazio1@llnl.gov) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/38299&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/38299&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-13224&quot; title=&quot;Expose lctl get/set/list param functionality in lustreapi&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-13224&quot;&gt;&lt;del&gt;LU-13224&lt;/del&gt;&lt;/a&gt; utils: expose llapi_param* functions&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_10&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: a3f90f10a23e14b07c9250e07b3aacc21757979d&lt;/p&gt;</comment>
                            <comment id="268130" author="simmonsja" created="Tue, 21 Apr 2020 13:14:21 +0000"  >&lt;p&gt;Can this be closed?&lt;/p&gt;</comment>
                            <comment id="268146" author="adilger" created="Tue, 21 Apr 2020 15:31:11 +0000"  >&lt;p&gt;Closing this issue. The backports can land independently. &lt;/p&gt;</comment>
                            <comment id="268363" author="gerrit" created="Thu, 23 Apr 2020 16:05:07 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/38239/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/38239/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-13224&quot; title=&quot;Expose lctl get/set/list param functionality in lustreapi&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-13224&quot;&gt;&lt;del&gt;LU-13224&lt;/del&gt;&lt;/a&gt; utils: expose llapi_param* functions&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_12&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: c1ff1110d090686833196918ccf289cf62a280d6&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|i00tfr:</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>