<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:19:00 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-15519] fallocate does not increase projid quota usage</title>
                <link>https://jira.whamcloud.com/browse/LU-15519</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Using &quot;&lt;tt&gt;fallocate -l &amp;lt;size&amp;gt; &amp;lt;file&amp;gt;&lt;/tt&gt;&quot; to allocate space to &lt;tt&gt;&amp;lt;file&amp;gt;&lt;/tt&gt; does not increase the quota usage for the affected project:&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;# lfs quota -p 1000 /mnt/testfs
Disk quotas for prj 1000 (pid 1000):
     Filesystem  kbytes   quota   limit   grace   files   quota   limit   grace
    /mnt/testfs  102408       0  204800       -       3       0   10000       -
# mkdir /mnt/testfs/projdir
# lfs project -p 1000 /mnt/testfs/projdir
# fallocate -l 50M /mnt/testfs/projdir/50M
# lfs quota -p 1000 /mnt/testfs
Disk quotas for prj 1000 (pid 1000):
     Filesystem  kbytes   quota   limit   grace   files   quota   limit   grace
    /mnt/testfs  102408       0  204800       -       4       0   10000       -
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="68487">LU-15519</key>
            <summary>fallocate does not increase projid quota usage</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.whamcloud.com/images/icons/priorities/major.svg">Major</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="arshad512">Arshad Hussain</assignee>
                                    <reporter username="adilger">Andreas Dilger</reporter>
                        <labels>
                    </labels>
                <created>Thu, 3 Feb 2022 22:31:48 +0000</created>
                <updated>Thu, 19 Oct 2023 14:57:13 +0000</updated>
                            <resolved>Mon, 30 May 2022 22:01:58 +0000</resolved>
                                                    <fixVersion>Lustre 2.16.0</fixVersion>
                    <fixVersion>Lustre 2.15.4</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>6</watches>
                                                                            <comments>
                            <comment id="325196" author="adilger" created="Thu, 3 Feb 2022 22:54:53 +0000"  >&lt;p&gt;Not sure if there is still time to fix this in 2.15.0, but if the patch misses the cutoff there is always 2.15.1.&lt;/p&gt;</comment>
                            <comment id="325201" author="adilger" created="Thu, 3 Feb 2022 23:09:42 +0000"  >&lt;p&gt;Just taking a quick look into the code where &lt;tt&gt;OBD_MD_FLUID&lt;/tt&gt; is used, this may need changes on the client in &lt;tt&gt;obdo_from_inode()&lt;/tt&gt;, &lt;tt&gt;vvp_req_attr_set()&lt;/tt&gt;, &lt;tt&gt;osc_io_setattr_start()&lt;/tt&gt;, &lt;tt&gt;struct cl_setattr_io sa_falloc_prjid&lt;/tt&gt;, &lt;tt&gt;osc_brw_prep_request()&lt;/tt&gt;, &lt;tt&gt;lustre_set_wire_obdo()&lt;/tt&gt;.&lt;/p&gt;

&lt;p&gt;On the server, it also looks like &lt;tt&gt;mdt_obd_commitrw()&lt;/tt&gt; and &lt;tt&gt;dump_obdo()&lt;/tt&gt; are missing to sete &lt;tt&gt;OBD_MD_FLPROJID&lt;/tt&gt; even though &lt;tt&gt;o_projid&lt;/tt&gt; is set.&lt;/p&gt;

&lt;p&gt;It also wouldn&apos;t hurt to copy &lt;tt&gt;o_projid&lt;/tt&gt; in &lt;tt&gt;obdo_cpy_md()&lt;/tt&gt;, which is only used in &lt;tt&gt;echo.c&lt;/tt&gt;, even though I don&apos;t think it affects normal operation.&lt;/p&gt;</comment>
                            <comment id="325242" author="arshad512" created="Fri, 4 Feb 2022 03:35:13 +0000"  >&lt;p&gt;Hi Andreas, Thanks for putting in the details. I am looking into this. Targeting 2.15.1 &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.whamcloud.com/images/icons/emoticons/smile.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;

&lt;p&gt;Thanks!&lt;/p&gt;</comment>
                            <comment id="327844" author="gerrit" created="Wed, 2 Mar 2022 10:35:02 +0000"  >&lt;p&gt;&quot;Arshad Hussain &amp;lt;arshad.hussain@aeoncomputing.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/46676&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/46676&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-15519&quot; title=&quot;fallocate does not increase projid quota usage&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-15519&quot;&gt;&lt;del&gt;LU-15519&lt;/del&gt;&lt;/a&gt; quota: fallocate does not increase projectid usage&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 19337471bf2786792311796a68c50db7d3781578&lt;/p&gt;</comment>
                            <comment id="336343" author="gerrit" created="Mon, 30 May 2022 19:04:16 +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/46676/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/46676/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-15519&quot; title=&quot;fallocate does not increase projid quota usage&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-15519&quot;&gt;&lt;del&gt;LU-15519&lt;/del&gt;&lt;/a&gt; quota: fallocate does not increase projectid usage&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 5fc934ebbbe665f24e2f11fe224065dd8e9a08ba&lt;/p&gt;</comment>
                            <comment id="336360" author="pjones" created="Mon, 30 May 2022 22:01:58 +0000"  >&lt;p&gt;Landed for 2.16&lt;/p&gt;</comment>
                            <comment id="377249" author="gerrit" created="Mon, 3 Jul 2023 12:54:08 +0000"  >&lt;p&gt;&quot;Etienne AUJAMES &amp;lt;eaujames@ddn.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/51535&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/51535&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-15519&quot; title=&quot;fallocate does not increase projid quota usage&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-15519&quot;&gt;&lt;del&gt;LU-15519&lt;/del&gt;&lt;/a&gt; quota: fallocate does not increase projectid usage&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_15&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 3908b15e915c985ec8bae2d6d5940446d38f1c49&lt;/p&gt;</comment>
                            <comment id="389921" author="gerrit" created="Thu, 19 Oct 2023 13:46:54 +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/+/51535/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/51535/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-15519&quot; title=&quot;fallocate does not increase projid quota usage&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-15519&quot;&gt;&lt;del&gt;LU-15519&lt;/del&gt;&lt;/a&gt; quota: fallocate does not increase projectid usage&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_15&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 691387d77bfe9260b65669978fb3f988055fc1e0&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10324">
                    <name>Cloners</name>
                                            <outwardlinks description="Clones">
                                        <issuelink>
            <issuekey id="66841">LU-15167</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="61793">LU-14157</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="19874">LU-3606</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="56210">LU-12480</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="69238">LU-15683</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|i02h8v:</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>