<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:20: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>[LU-8801] ldiskfs quota accounting iterator is flawed</title>
                <link>https://jira.whamcloud.com/browse/LU-8801</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;The ldiskfs quota accounting iterator is flawed, that&apos;ll result in some accounting entries being missed in the output of proc files (acct_user &amp;amp; acct_group).&lt;/p&gt;

&lt;p&gt;This can be reproduced by:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;Create a fresh filesystem;&lt;/li&gt;
	&lt;li&gt;Run the following script to generate large amount of accounting entries:
&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;#!/bin/bash
&lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; i in `seq 10000`; &lt;span class=&quot;code-keyword&quot;&gt;do&lt;/span&gt;
        touch /mnt/lustre/file_$i
        chown $i:$i /mnt/lustre/file_$i
done
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/li&gt;
	&lt;li&gt;Verify proc file by: cat /proc/fs/lustre/osd-ldiskfs/lustre-MDT0000/quota_slave/acct_user; Some entries are missed in the output.&lt;/li&gt;
&lt;/ul&gt;
</description>
                <environment></environment>
        <key id="41311">LU-8801</key>
            <summary>ldiskfs quota accounting iterator is flawed</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>Fri, 4 Nov 2016 14:38:44 +0000</created>
                <updated>Thu, 2 Feb 2017 17:14:45 +0000</updated>
                            <resolved>Sat, 17 Dec 2016 15:07:05 +0000</resolved>
                                                    <fixVersion>Lustre 2.10.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                            <comments>
                            <comment id="172331" author="gerrit" created="Fri, 4 Nov 2016 15:04:49 +0000"  >&lt;p&gt;Niu Yawei (yawei.niu@intel.com) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/23583&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/23583&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-8801&quot; title=&quot;ldiskfs quota accounting iterator is flawed&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-8801&quot;&gt;&lt;del&gt;LU-8801&lt;/del&gt;&lt;/a&gt; quota: fix ldiskfs accounting iterator&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: bcb301aad574beed8022b1d34dc2bab02c64ca5b&lt;/p&gt;</comment>
                            <comment id="172473" author="niu" created="Mon, 7 Nov 2016 06:40:26 +0000"  >&lt;p&gt;Another problem is that reading acct_user/group will become extremely slow when the amount of id entries is large, because in each lprocfs_quota_seq_start(), we use it-&amp;gt;next() to move the cursor to current the last processed position like this:&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;while&lt;/span&gt; (offset--) {
               rc = iops-&amp;gt;next(&amp;amp;lqp-&amp;gt;lqp_env, it);
               &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (rc != 0) &lt;span class=&quot;code-comment&quot;&gt;/* Error or reach the end */&lt;/span&gt;
                       &lt;span class=&quot;code-keyword&quot;&gt;goto&lt;/span&gt; not_found;
       }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Which is quite time consuming when the accounting file getting large. I&apos;ll optimize it with above fix together.&lt;/p&gt;</comment>
                            <comment id="178216" author="gerrit" created="Sat, 17 Dec 2016 05:42:46 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/23583/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/23583/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-8801&quot; title=&quot;ldiskfs quota accounting iterator is flawed&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-8801&quot;&gt;&lt;del&gt;LU-8801&lt;/del&gt;&lt;/a&gt; quota: fix ldiskfs accounting iterator&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 623b315f6ddf8aa6ef435aa405e371ba93d0454a&lt;/p&gt;</comment>
                            <comment id="178272" author="pjones" created="Sat, 17 Dec 2016 15:07:05 +0000"  >&lt;p&gt;Landed for 2.10&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                                        </outwardlinks>
                                                                <inwardlinks description="is related to">
                                                        </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|hzyuhz:</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>
                                                                                            <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>