<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:30:02 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-16791] Modern ZFS constified nvlist* functions breaking zfs_[gs]et_prop_*</title>
                <link>https://jira.whamcloud.com/browse/LU-16791</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;When trying to build lustre against&#160; zfs master tree we get 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;libmount_utils_zfs.c: In function &apos;zfs_get_prop_int&apos;:
libmount_utils_zfs.c:491:51: error: passing argument 3 of &apos;nvlist_lookup_string&apos; from incompatible pointer type [-Werror=incompatible-pointer-types]
&#160; ret = nvlist_lookup_string(propval, ZPROP_VALUE, &amp;amp;propstr);
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;^~~~~~~~ &lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;and related&lt;/p&gt;</description>
                <environment></environment>
        <key id="75885">LU-16791</key>
            <summary>Modern ZFS constified nvlist* functions breaking zfs_[gs]et_prop_*</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="green">Oleg Drokin</assignee>
                                    <reporter username="green">Oleg Drokin</reporter>
                        <labels>
                            <label>LTS15</label>
                            <label>lug23dd</label>
                    </labels>
                <created>Mon, 1 May 2023 23:23:35 +0000</created>
                <updated>Sun, 21 Jan 2024 05:54:27 +0000</updated>
                            <resolved>Thu, 18 Jan 2024 13:16:01 +0000</resolved>
                                    <version>Lustre 2.16.0</version>
                                    <fixVersion>Lustre 2.16.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>9</watches>
                                                                            <comments>
                            <comment id="371102" author="gerrit" created="Mon, 1 May 2023 23:25:18 +0000"  >&lt;p&gt;&quot;Oleg Drokin &amp;lt;green@whamcloud.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/50824&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/50824&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16791&quot; title=&quot;Modern ZFS constified nvlist* functions breaking zfs_[gs]et_prop_*&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16791&quot;&gt;&lt;del&gt;LU-16791&lt;/del&gt;&lt;/a&gt; utils: Constify prop argument for zfs nvlist*&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: f434618dfde371b05eafeeb9ab10ab8711e0a284&lt;/p&gt;</comment>
                            <comment id="387328" author="gerrit" created="Tue, 26 Sep 2023 20:30:02 +0000"  >&lt;p&gt;&quot;Brian Atkinson &amp;lt;batkinson@lanl.gov&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/52519&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/52519&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16791&quot; title=&quot;Modern ZFS constified nvlist* functions breaking zfs_[gs]et_prop_*&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16791&quot;&gt;&lt;del&gt;LU-16791&lt;/del&gt;&lt;/a&gt; utils: ZFS 2.2 const prop args&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: d01bf3997a43e13fb22067fd8ee803dc9a5a9f5c&lt;/p&gt;</comment>
                            <comment id="398996" author="JIRAUSER18017" created="Tue, 9 Jan 2024 16:41:10 +0000"  >&lt;p&gt;On the latest lustre-release code along with this patch, the build fails due to `arc_prune_func_t` changes:&#160;&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/akash/akash/build/lustre-release/lustre/osd-zfs/osd_handler.c: In function &lt;span class=&quot;code-quote&quot;&gt;&apos;osd_objset_register_callbacks&apos;&lt;/span&gt;:
/root/akash/akash/build/lustre-release/lustre/osd-zfs/osd_handler.c:915:50: error: passing argument 1 of &lt;span class=&quot;code-quote&quot;&gt;&apos;arc_add_prune_callback&apos;&lt;/span&gt; from incompatible pointer type [-Werror=incompatible-pointer-types]
  915 |         o-&amp;gt;arc_prune_cb = arc_add_prune_callback(arc_prune_func, o);
      |                                                  ^~~~~~~~~~~~~~
      |                                                  |
      |                                                  void (*)(int64_t,  void *) {aka void (*)(&lt;span class=&quot;code-object&quot;&gt;long&lt;/span&gt; &lt;span class=&quot;code-object&quot;&gt;long&lt;/span&gt; &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;,  void *)}
In file included from /root/akash/akash/build/lustre-release/lustre/osd-zfs/osd_internal.h:51,
                 from /root/akash/akash/build/lustre-release/lustre/osd-zfs/osd_handler.c:51:
/usr/src/zfs-2.2.2/include/sys/arc.h:310:55: note: expected &lt;span class=&quot;code-quote&quot;&gt;&apos;void (*)(uint64_t,  void *)&apos;&lt;/span&gt; {aka &lt;span class=&quot;code-quote&quot;&gt;&apos;void (*)(&lt;span class=&quot;code-object&quot;&gt;long&lt;/span&gt; &lt;span class=&quot;code-object&quot;&gt;long&lt;/span&gt; unsigned &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;,  void *)&apos;&lt;/span&gt;} but argument is of type &lt;span class=&quot;code-quote&quot;&gt;&apos;void (*)(int64_t,  void *)&apos;&lt;/span&gt; {aka &lt;span class=&quot;code-quote&quot;&gt;&apos;void (*)(&lt;span class=&quot;code-object&quot;&gt;long&lt;/span&gt; &lt;span class=&quot;code-object&quot;&gt;long&lt;/span&gt; &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;,  void *)&apos;&lt;/span&gt;}
  310 | arc_prune_t *arc_add_prune_callback(arc_prune_func_t *func, void *priv);
      |                                     ~~~~~~~~~~~~~~~~~~^~~~
cc1: all warnings being treated as errors
make[6]: *** [scripts/Makefile.build:321: /root/akash/akash/build/lustre-release/lustre/osd-zfs/osd_handler.o] Error 1
make[6]: *** Waiting &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; unfinished jobs....
make[5]: *** [scripts/Makefile.build:607: /root/akash/akash/build/lustre-release/lustre/osd-zfs] Error 2
make[4]: *** [scripts/Makefile.build:607: /root/akash/akash/build/lustre-release/lustre] Error 2
make[3]: *** [Makefile:1923: /root/akash/akash/build/lustre-release] Error 2
make[3]: Leaving directory &lt;span class=&quot;code-quote&quot;&gt;&apos;/usr/src/kernels/5.14.0-284.18.1.x7.0.000.9.x86_64&apos;&lt;/span&gt;
make[2]: *** [autoMakefile:1200: modules] Error 2
make[2]: Leaving directory &lt;span class=&quot;code-quote&quot;&gt;&apos;/root/akash/akash/build/lustre-release&apos;&lt;/span&gt;
make[1]: *** [autoMakefile:711: all-recursive] Error 1
make[1]: Leaving directory &lt;span class=&quot;code-quote&quot;&gt;&apos;/root/akash/akash/build/lustre-release&apos;&lt;/span&gt;
make: *** [autoMakefile:571: all] Error 2&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Build failure seems to be due to the changes to `arc_prune_func_t`&#160; from the following commit from OpenZFS:&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;
commit 3ec4ea68d491a82c8de3360d50032bdecd53608f
Date:   Mon Oct 30 19:56:04 2023 -0400
Unify arc_prune_async() code
Closes #15456
...
- typedef void arc_prune_func_t(int64_t bytes, void *priv);
+ typedef void arc_prune_func_t(uint64_t bytes, void *priv);
...&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="400149" author="gerrit" created="Thu, 18 Jan 2024 06:15:42 +0000"  >&lt;p&gt;&quot;Oleg Drokin &amp;lt;green@whamcloud.com&amp;gt;&quot; merged in patch &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/52519/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/52519/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16791&quot; title=&quot;Modern ZFS constified nvlist* functions breaking zfs_[gs]et_prop_*&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16791&quot;&gt;&lt;del&gt;LU-16791&lt;/del&gt;&lt;/a&gt; utils: ZFS 2.2 const prop args&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: b4b32ffd22d276bc1d8f40e3336df982f3717070&lt;/p&gt;</comment>
                            <comment id="400190" author="pjones" created="Thu, 18 Jan 2024 13:16:01 +0000"  >&lt;p&gt;Landed for 2.16&lt;/p&gt;</comment>
                            <comment id="400318" author="JIRAUSER18017" created="Fri, 19 Jan 2024 04:31:57 +0000"  >&lt;p&gt;Can we check if openzfs (zfs-2.2-release and master) builds on the latest lustre-release code along with this patch, and see if there are any failures due to `arc_prune_func_t` &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16791?focusedId=398996&amp;amp;page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-398996&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;changes&lt;/a&gt;?&#160;&lt;/p&gt;</comment>
                            <comment id="400452" author="JIRAUSER18017" created="Sun, 21 Jan 2024 05:54:27 +0000"  >&lt;p&gt;There are build failures when it&apos;s built against ZFS (master and zfs-2.2-release) builds even after landing &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16791&quot; title=&quot;Modern ZFS constified nvlist* functions breaking zfs_[gs]et_prop_*&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16791&quot;&gt;&lt;del&gt;LU-16791&lt;/del&gt;&lt;/a&gt;. Further, &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-17421&quot; title=&quot;Lustre master build failure with ZFS 2.2.1&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-17421&quot;&gt;LU-17421&lt;/a&gt; is created to fix the build issue for the `arc_prune_func_t` changes.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="75912">LU-16795</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </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|i03kef:</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>