<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:39:40 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>[LUDOC-28] improve documentation examples for liblustreapi functions</title>
                <link>https://jira.whamcloud.com/browse/LUDOC-28</link>
                <project id="10070" key="LUDOC">Lustre Documentation</project>
                    <description>&lt;p&gt;Per &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-926&quot; title=&quot;llapi_file_fget_lov_uuid() is broken in 2.1&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-926&quot;&gt;&lt;del&gt;LU-926&lt;/del&gt;&lt;/a&gt;: A user found problems by trying the llapi example in the lustre manual. There are at least two obvious bugs in that example (just try compiling it, you&apos;ll see them), so that should be fixed as well.&lt;/p&gt;</description>
                <environment></environment>
        <key id="12680">LUDOC-28</key>
            <summary>improve documentation examples for liblustreapi functions</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="6" iconUrl="https://jira.whamcloud.com/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="1">Fixed</resolution>
                                        <assignee username="rhenwood">Richard Henwood</assignee>
                                    <reporter username="adilger">Andreas Dilger</reporter>
                        <labels>
                            <label>QContent</label>
                    </labels>
                <created>Thu, 15 Dec 2011 01:06:04 +0000</created>
                <updated>Fri, 10 May 2013 19:53:25 +0000</updated>
                            <resolved>Fri, 10 May 2013 19:53:20 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                            <comments>
                            <comment id="24864" author="morrone" created="Fri, 16 Dec 2011 02:38:56 +0000"  >&lt;p&gt;To be specific, the broken demo application is in section &quot;34.6.Example Using the llapi Library&quot;.  The first bug is here:&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;   printf(&lt;span class=&quot;code-quote&quot;&gt;&quot;Lov object group %llu\n&quot;&lt;/span&gt;, lump-&amp;gt;lmm_object_gr);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;That structure has no lmm_object_gr member.&lt;/p&gt;

&lt;p&gt;And here is an obvious typo of a missing &quot;p&quot;:&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; rintf(&lt;span class=&quot;code-quote&quot;&gt;&quot;Write to the file\n&quot;&lt;/span&gt;);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;While someone is fixing it, they should really also make it easier to use.  It would be nice if editing macros in the program was not necessary to run it.  Also it would be nice to accept a path on the command line instead of assuming that the CWD is in a lustre filesystem without any checks to that effect.&lt;/p&gt;</comment>
                            <comment id="24870" author="adilger" created="Fri, 16 Dec 2011 06:13:48 +0000"  >&lt;p&gt;I made those changes last night after looking into this section of the manual for the first time.&lt;/p&gt;

&lt;p&gt;My only hesitation in submitting it directly is that I edited the program inside the manual and now it needs to be tested.&lt;/p&gt;</comment>
                            <comment id="24871" author="adilger" created="Fri, 16 Dec 2011 06:29:36 +0000"  >&lt;p&gt;&lt;a href=&quot;http://review.whamcloud.com/1879&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/1879&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I haven&apos;t tested the example code yet, but posting it so it doesn&apos;t get lost.&lt;/p&gt;</comment>
                            <comment id="42140" author="morrone" created="Mon, 23 Jul 2012 16:26:30 +0000"  >&lt;p&gt;Also note that we&apos;ll need to update all of the man pages in lustre with the new examples as well.  I would make a new LU ticket and link it to here, but I don&apos;t have linking ability as far as I can tell.&lt;/p&gt;

&lt;p&gt;I think we should probably make all of the examples be buildable .c files to start with.  I have seen examples where C code was directly included into docbook documents using special directives.  We should see if we can do that without too much effort.&lt;/p&gt;

&lt;p&gt;For now we&apos;ll probably just need to copy-and-paste the examples into the man pages.  But perhaps in the future we&apos;ll put the manual in the Lustre tree, and let it build the man pages.  Docbook defines a &quot;reference page&quot; type (&amp;lt;refentry&amp;gt;)that can be directly converted into man page format.&lt;/p&gt;</comment>
                            <comment id="42141" author="adilger" created="Mon, 23 Jul 2012 16:34:14 +0000"  >&lt;p&gt;I agree - having a subdirectory in the Lustre Git repo with all of the examples as .c files that are built every time would be the best way to ensure they continue to compile over time.  Copying them into the manual occasionally is better than if they never get updated, and we can work on automating this process later, once we have examples that actually build and run.&lt;/p&gt;</comment>
                            <comment id="42142" author="rhenwood" created="Mon, 23 Jul 2012 16:40:20 +0000"  >&lt;p&gt;For a first draft at a regression test against Chris&apos;s &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-1606&quot; title=&quot;lustre_idl.h does not compile in user-space&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-1606&quot;&gt;&lt;del&gt;LU-1606&lt;/del&gt;&lt;/a&gt; fixes I have created a directory:&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;lustre/tests/clientapi/&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;I propose to put the examples from the manual in there.&lt;/p&gt;</comment>
                            <comment id="42764" author="adilger" created="Mon, 6 Aug 2012 16:09:32 +0000"  >&lt;p&gt;Assign to Richard, since he is mostly working on this.&lt;/p&gt;</comment>
                            <comment id="47963" author="morrone" created="Fri, 16 Nov 2012 17:07:39 +0000"  >&lt;p&gt;Richard, did you ever put the .c files somewhere?&lt;/p&gt;</comment>
                            <comment id="47964" author="morrone" created="Fri, 16 Nov 2012 17:14:41 +0000"  >&lt;p&gt;It might be better to use the &amp;lt;programlisting&amp;gt; docbook element for these program examples, instead of &amp;lt;screen&amp;gt;.&lt;/p&gt;</comment>
                            <comment id="47996" author="rhenwood" created="Mon, 19 Nov 2012 10:28:56 +0000"  >&lt;p&gt;Indeed! thanks for the prompt: not only does &lt;tt&gt;&amp;lt;programlisting&amp;gt;&lt;/tt&gt; look perfect for this, I&apos;ve found a page on including external code examples to allow breaking out the programs to simplify testing: &lt;a href=&quot;http://www.sagehill.net/docbookxsl/ExternalCode.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://www.sagehill.net/docbookxsl/ExternalCode.html&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Thanks for the prompt!&lt;/p&gt;</comment>
                            <comment id="48574" author="rhenwood" created="Fri, 30 Nov 2012 05:25:15 +0000"  >&lt;p&gt;i&apos;ve refreshed the code examples to work with the current master:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://review.whamcloud.com/#change,1879&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#change,1879&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="12672">LU-926</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="15149">LUDOC-63</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="15151">LU-1606</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                    <customfield id="customfield_10003" key="com.atlassian.jira.plugin.system.customfieldtypes:float">
                        <customfieldname>Business Value</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>23.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <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|hzvl47:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>7182</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10002" key="com.atlassian.jira.plugin.system.customfieldtypes:float">
                        <customfieldname>Story Points</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        </customfields>
    </item>
</channel>
</rss>