<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:58:05 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-6195] osd-zfs: osd_declare_object_destroy() calls dmu_tx_hold_zap() with wrong keys</title>
                <link>https://jira.whamcloud.com/browse/LU-6195</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;In osd_declare_object_destroy():&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;        /* declare that we&apos;ll remove object from fid-dnode mapping */
        zapid = osd_get_name_n_idx(env, osd, fid, buf);
        dmu_tx_hold_bonus(oh-&amp;gt;ot_tx, zapid);
        dmu_tx_hold_zap(oh-&amp;gt;ot_tx, zapid, 0, buf);

        /* declare that we&apos;ll remove object from inode accounting ZAPs */
        dmu_tx_hold_bonus(oh-&amp;gt;ot_tx, osd-&amp;gt;od_iusr_oid);
        dmu_tx_hold_zap(oh-&amp;gt;ot_tx, osd-&amp;gt;od_iusr_oid, 0, buf);
        dmu_tx_hold_bonus(oh-&amp;gt;ot_tx, osd-&amp;gt;od_igrp_oid);
        dmu_tx_hold_zap(oh-&amp;gt;ot_tx, osd-&amp;gt;od_igrp_oid, 0, buf);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The &lt;em&gt;buf&lt;/em&gt; holds string representation of the FID, so it&apos;s wrong to use it in dmu_tx_hold_zap() calls for osd-&amp;gt;od_iusr_oid and osd-&amp;gt;od_igrp_oid where the keys should be obj-&amp;gt;oo_attr.la_uid and obj-&amp;gt;oo_attr.la_gid.&lt;/p&gt;

&lt;p&gt;Same mistake in osd_declare_object_create().&lt;/p&gt;</description>
                <environment></environment>
        <key id="28495">LU-6195</key>
            <summary>osd-zfs: osd_declare_object_destroy() calls dmu_tx_hold_zap() with wrong keys</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="2">Won&apos;t Fix</resolution>
                                        <assignee username="isaac">Isaac Huang</assignee>
                                    <reporter username="isaac">Isaac Huang</reporter>
                        <labels>
                    </labels>
                <created>Mon, 2 Feb 2015 06:53:52 +0000</created>
                <updated>Sun, 10 Oct 2021 22:19:03 +0000</updated>
                            <resolved>Sun, 10 Oct 2021 22:19:03 +0000</resolved>
                                    <version>Lustre 2.7.0</version>
                                                        <due></due>
                            <votes>0</votes>
                                    <watches>5</watches>
                                                                            <comments>
                            <comment id="105336" author="bzzz" created="Mon, 2 Feb 2015 07:00:25 +0000"  >&lt;p&gt;didn&apos;t we plan to replace this code with in-zfs accounting?&lt;/p&gt;</comment>
                            <comment id="105367" author="isaac" created="Mon, 2 Feb 2015 16:39:04 +0000"  >&lt;p&gt;Yes, but it&apos;s going be a while until we have in-zfs accounting.&lt;/p&gt;</comment>
                            <comment id="105377" author="isaac" created="Mon, 2 Feb 2015 17:32:57 +0000"  >&lt;p&gt;Looks like just replace &lt;em&gt;buf&lt;/em&gt; with &lt;em&gt;NULL&lt;/em&gt;, and zap_count_write() will use worst-case estimate - should be good enough until we have in-zfs accounting.&lt;/p&gt;</comment>
                            <comment id="105765" author="gerrit" created="Thu, 5 Feb 2015 02:18:28 +0000"  >&lt;p&gt;Isaac Huang (he.huang@intel.com) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/13656&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/13656&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-6195&quot; title=&quot;osd-zfs: osd_declare_object_destroy() calls dmu_tx_hold_zap() with wrong keys&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-6195&quot;&gt;&lt;del&gt;LU-6195&lt;/del&gt;&lt;/a&gt; osd-zfs: dmu_tx_hold_zap() called with wrong keys&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: fd8fb80c6f71fedc476e82008fd309f9f4f8b418&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="25269">LU-5242</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="28377">LU-6160</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|hzx5ev:</customfieldvalue>

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