<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:39: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-4107] luser_user.h is not C++ compatible</title>
                <link>https://jira.whamcloud.com/browse/LU-4107</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Some users would like to include lustre_user.h or lustreapi.h in C++ applications. There are a few compatibility issues currently preventing this.&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;$ cat a.c
#include &amp;lt;lustre/lustre_user.h&amp;gt;
$ g++ -c a.c
In file included from a.c:1:
/usr/include/lustre/lustre_user.h:185: error: &apos;struct ost_id::&amp;lt;anonymous union&amp;gt;::ostid&apos; invalid; an anonymous union can only have non-static data members
/usr/include/lustre/lustre_user.h: In function &apos;hsm_event hsm_get_cl_event(__u16)&apos;:
/usr/include/lustre/lustre_user.h:728: error: invalid conversion from &apos;int&apos; to &apos;hsm_event&apos;
/usr/include/lustre/lustre_user.h: In function &apos;int hur_len(hsm_user_request*)&apos;:
/usr/include/lustre/lustre_user.h:1002: error: &apos;hur&apos; cannot appear in a constant-expression
/usr/include/lustre/lustre_user.h:1002: error: &apos;-&amp;gt;&apos; cannot appear in a constant-expression
/usr/include/lustre/lustre_user.h:1002: error: &apos;.&apos; cannot appear in a constant-expression
/usr/include/lustre/lustre_user.h: In function &apos;char* hai_dump_data_field(hsm_action_item*, char*, int)&apos;:
/usr/include/lustre/lustre_user.h:1068: error: &apos;snprintf&apos; was not declared in this scope
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;While we&apos;re at it, we may also want to clean up these warnings which are normally suppressed because they&apos;re in a system header.&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;$ g++ -Wall -Wsystem-headers -c a.c
In file included from a.c:1:
/usr/include/lustre/lustre_user.h:185: error: &apos;struct ost_id::&amp;lt;anonymous union&amp;gt;::ostid&apos; invalid; an anonymous union can only have non-static data members
/usr/include/lustre/lustre_user.h: In function &apos;hsm_event hsm_get_cl_event(__u16)&apos;:
/usr/include/lustre/lustre_user.h:728: error: invalid conversion from &apos;int&apos; to &apos;hsm_event&apos;
/usr/include/lustre/lustre_user.h: In function &apos;char* hsm_progress_state2name(hsm_progress_states)&apos;:
/usr/include/lustre/lustre_user.h:889: warning: deprecated conversion from string constant to &apos;char*&apos;
/usr/include/lustre/lustre_user.h:890: warning: deprecated conversion from string constant to &apos;char*&apos;
/usr/include/lustre/lustre_user.h:891: warning: deprecated conversion from string constant to &apos;char*&apos;
/usr/include/lustre/lustre_user.h:892: warning: deprecated conversion from string constant to &apos;char*&apos;
/usr/include/lustre/lustre_user.h: In function &apos;char* hsm_user_action2name(hsm_user_action)&apos;:
/usr/include/lustre/lustre_user.h:951: warning: deprecated conversion from string constant to &apos;char*&apos;
/usr/include/lustre/lustre_user.h:952: warning: deprecated conversion from string constant to &apos;char*&apos;
/usr/include/lustre/lustre_user.h:953: warning: deprecated conversion from string constant to &apos;char*&apos;
/usr/include/lustre/lustre_user.h:954: warning: deprecated conversion from string constant to &apos;char*&apos;
/usr/include/lustre/lustre_user.h:955: warning: deprecated conversion from string constant to &apos;char*&apos;
/usr/include/lustre/lustre_user.h:956: warning: deprecated conversion from string constant to &apos;char*&apos;
/usr/include/lustre/lustre_user.h:957: warning: deprecated conversion from string constant to &apos;char*&apos;
/usr/include/lustre/lustre_user.h: In function &apos;int hur_len(hsm_user_request*)&apos;:
/usr/include/lustre/lustre_user.h:1002: error: &apos;hur&apos; cannot appear in a constant-expression
/usr/include/lustre/lustre_user.h:1002: error: &apos;-&amp;gt;&apos; cannot appear in a constant-expression
/usr/include/lustre/lustre_user.h:1002: error: &apos;.&apos; cannot appear in a constant-expression
/usr/include/lustre/lustre_user.h: In function &apos;char* hsm_copytool_action2name(hsm_copytool_action)&apos;:
/usr/include/lustre/lustre_user.h:1025: warning: deprecated conversion from string constant to &apos;char*&apos;
/usr/include/lustre/lustre_user.h:1026: warning: deprecated conversion from string constant to &apos;char*&apos;
/usr/include/lustre/lustre_user.h:1027: warning: deprecated conversion from string constant to &apos;char*&apos;
/usr/include/lustre/lustre_user.h:1028: warning: deprecated conversion from string constant to &apos;char*&apos;
/usr/include/lustre/lustre_user.h:1029: warning: deprecated conversion from string constant to &apos;char*&apos;
/usr/include/lustre/lustre_user.h:1030: warning: deprecated conversion from string constant to &apos;char*&apos;
/usr/include/lustre/lustre_user.h: In function &apos;char* hai_dump_data_field(hsm_action_item*, char*, int)&apos;:
/usr/include/lustre/lustre_user.h:1068: error: &apos;snprintf&apos; was not declared in this scope
/usr/include/lustre/lustre_user.h: In function &apos;int hal_size(hsm_action_list*)&apos;:
/usr/include/lustre/lustre_user.h:1121: warning: comparison between signed and unsigned integer expressions
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="21421">LU-4107</key>
            <summary>luser_user.h is not C++ compatible</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="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="mdiep">Minh Diep</assignee>
                                    <reporter username="nedbass">Ned Bass</reporter>
                        <labels>
                    </labels>
                <created>Tue, 15 Oct 2013 18:32:01 +0000</created>
                <updated>Tue, 1 Sep 2015 19:56:42 +0000</updated>
                            <resolved>Thu, 17 Apr 2014 22:39:26 +0000</resolved>
                                    <version>Lustre 2.4.1</version>
                                    <fixVersion>Lustre 2.6.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="69030" author="pjones" created="Tue, 15 Oct 2013 21:02:04 +0000"  >&lt;p&gt;Minh will help with this one&lt;/p&gt;</comment>
                            <comment id="69130" author="adilger" created="Wed, 16 Oct 2013 16:12:59 +0000"  >&lt;p&gt;Is this a regression compared to lustre_user.h in 2.4, or is this a new application using it for the first time?&lt;/p&gt;</comment>
                            <comment id="69142" author="nedbass" created="Wed, 16 Oct 2013 17:17:02 +0000"  >&lt;p&gt;It&apos;s a new app, so not a regression.  In fact, they were trying to build against Lustre 2.1, and got a slightly different set of errors.&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;/usr/include/lustre/lustre_user.h: In function &apos;hsm_event hsm_get_cl_event(__u16)&apos;:
/usr/include/lustre/lustre_user.h:565: error: invalid conversion from &apos;__u16&apos; to &apos;hsm_event&apos;
/usr/include/lustre/lustre_user.h: In function &apos;int hur_len(hsm_user_request*)&apos;:
/usr/include/lustre/lustre_user.h:759: error: invalid use of &apos;void&apos;
/usr/include/lustre/lustre_user.h: In function &apos;char* hai_dump_data_field(hsm_action_item*, char*, int)&apos;:
/usr/include/lustre/lustre_user.h:823: error: &apos;snprintf&apos; was not declared in this scope
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="69432" author="mdiep" created="Mon, 21 Oct 2013 18:17:22 +0000"  >&lt;p&gt;&lt;a href=&quot;http://review.whamcloud.com/#/c/8033/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/8033/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="81892" author="pjones" created="Thu, 17 Apr 2014 22:39:26 +0000"  >&lt;p&gt;Landed for 2.6&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                                        </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|hzw5nj:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>11039</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>