<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:17:53 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-1579] osd_declare_xattr_set() doesn&apos;t reserve credits for version set</title>
                <link>https://jira.whamcloud.com/browse/LU-1579</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;In the osd_declare_xattr_set() for ldiskfs:&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;        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (strcmp(name, XATTR_NAME_VERSION) == 0) {
                &lt;span class=&quot;code-comment&quot;&gt;/* no credits &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; version */&lt;/span&gt;
                &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; 0;
        }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;So if a caller calls only dt_version_set() to set inode version, the reserved credits for this transaction will be zero. I think we&apos;d reserve 1 block for version set.&lt;/p&gt;</description>
                <environment></environment>
        <key id="15073">LU-1579</key>
            <summary>osd_declare_xattr_set() doesn&apos;t reserve credits for version set</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="niu">Niu Yawei</assignee>
                                    <reporter username="niu">Niu Yawei</reporter>
                        <labels>
                    </labels>
                <created>Thu, 28 Jun 2012 07:49:54 +0000</created>
                <updated>Thu, 18 Apr 2013 18:50:56 +0000</updated>
                            <resolved>Thu, 13 Sep 2012 01:38:38 +0000</resolved>
                                                    <fixVersion>Lustre 2.3.0</fixVersion>
                    <fixVersion>Lustre 2.4.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>0</watches>
                                                                            <comments>
                            <comment id="41251" author="tappro" created="Thu, 28 Jun 2012 08:17:57 +0000"  >&lt;p&gt;As I remember there is always inode update when version is changed. So this inode block is reserved and we don&apos;t need to reserve one more. Do you have in mind any case when it is not so?&lt;/p&gt;</comment>
                            <comment id="41252" author="niu" created="Thu, 28 Jun 2012 08:21:01 +0000"  >&lt;p&gt;I&apos;m not sure if there is any use cases for now, but in orion_quota, we&apos;ll use the version as quota index file version, and sometimes, we need to bump version only.&lt;/p&gt;</comment>
                            <comment id="41253" author="bzzz" created="Thu, 28 Jun 2012 08:32:11 +0000"  >&lt;p&gt;to be honest, I wouldn&apos;t worry about quota index files, because related transactions will be rather small...&lt;/p&gt;</comment>
                            <comment id="41254" author="niu" created="Thu, 28 Jun 2012 08:44:01 +0000"  >&lt;p&gt;The problem is that if we don&apos;t reserve anything for set version, we may end up with an 0 credits journal handle (and trigger LBUG in jbd) for the caller who calls declare_version_set() -&amp;gt; dt_version_set() only. &lt;/p&gt;

&lt;p&gt;An alternative is that we can call some other declare functions before dt_version_set(), but which looks not clean.&lt;/p&gt;</comment>
                            <comment id="41304" author="niu" created="Fri, 29 Jun 2012 03:11:49 +0000"  >&lt;p&gt;&lt;a href=&quot;http://review.whamcloud.com/3242&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/3242&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="44752" author="niu" created="Thu, 13 Sep 2012 01:38:38 +0000"  >&lt;p&gt;patch landed.&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|hzv5sf:</customfieldvalue>

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