<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:12:10 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-7816] Add default quota setting support for Lustre</title>
                <link>https://jira.whamcloud.com/browse/LU-7816</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;          GPFS support default quota setting, but Lustre still dosen&apos;t.&lt;br/&gt;
Sometimes, for example administrators are not aware of when new&lt;br/&gt;
users will be created, and it is common that administrators want to&lt;br/&gt;
set a default quota for users/groups when they are created.&lt;/p&gt;</description>
                <environment></environment>
        <key id="34957">LU-7816</key>
            <summary>Add default quota setting support for Lustre</summary>
                <type id="2" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11311&amp;avatarType=issuetype">New Feature</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="wangshilong">Wang Shilong</assignee>
                                    <reporter username="wangshilong">Wang Shilong</reporter>
                        <labels>
                            <label>patch</label>
                    </labels>
                <created>Thu, 25 Feb 2016 10:50:26 +0000</created>
                <updated>Thu, 30 Aug 2018 02:46:39 +0000</updated>
                            <resolved>Tue, 3 Jul 2018 21:08:30 +0000</resolved>
                                                    <fixVersion>Lustre 2.12.0</fixVersion>
                                        <due></due>
                            <votes>2</votes>
                                    <watches>14</watches>
                                                                            <comments>
                            <comment id="143722" author="gerrit" created="Thu, 25 Feb 2016 10:51:01 +0000"  >&lt;p&gt;Wang Shilong (wshilong@ddn.com) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/18664&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/18664&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7816&quot; title=&quot;Add default quota setting support for Lustre&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7816&quot;&gt;&lt;del&gt;LU-7816&lt;/del&gt;&lt;/a&gt; quota: add default quota setting support&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 869bf09b85c092dcb79436293824941cc9760f61&lt;/p&gt;</comment>
                            <comment id="143804" author="jgmitter" created="Thu, 25 Feb 2016 18:08:58 +0000"  >&lt;p&gt;Hi Niu,&lt;br/&gt;
Can you have a look at this feature patch?&lt;/p&gt;

&lt;p&gt;Thanks.&lt;br/&gt;
Joe&lt;/p&gt;</comment>
                            <comment id="143884" author="niu" created="Fri, 26 Feb 2016 03:57:34 +0000"  >&lt;blockquote&gt;
&lt;p&gt;I don&apos;t quite see how this feature is used, after looking at the patch, my current understanding is: Administrator set default quota for certain user by &quot;lfs setquota --default -u $UID ...&quot;, and this setting can be overwritten by real quota setting &quot;lfs setquota -u $UID ...&quot;. If there is no real quota setting for certain user, system will turn to use the default one.&lt;/p&gt;

&lt;p&gt;My question is : If administrator want quota limit on certain user, why don&apos;t he just set quota for the user directly? I mean why not just use the &quot;lfs setquota -u $UID ...&quot; to set a &apos;default&apos; value to the user?&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Ah, my mistake. The default value is per system not per user. &lt;/p&gt;</comment>
                            <comment id="143894" author="niu" created="Fri, 26 Feb 2016 07:40:51 +0000"  >&lt;p&gt;I have few questions:&lt;/p&gt;

&lt;p&gt;1.  When default quota is set on system, how can we specify a user/group with no quota limit? No users/groups can have 0 quota limit if there is a non-zero default setting?&lt;/p&gt;

&lt;p&gt;2. How to set default quota? Set quota to a special UID/GID or introduce a new quota command? (like Q_SET/GET_DEF_USR/GRP) The latter way needs client to support the new qc_cmd, but doesn&apos;t need to reserve special UID/GIDs for the default setting. Consequently, the default quota can be stored in the global index (former way) or a separate plain file (latter way).&lt;/p&gt;

&lt;p&gt;3. How a user/group inherit the default quota setting? For instance, If a user/group has only soft limit, should he inherit the hard limit from default setting? Should the default limit be copied to the entry of other user/group in global index? What if the default value is changed?&lt;/p&gt;

&lt;p&gt;4. How to notify quota slave when default quota is set/changed/cleared?&lt;/p&gt;

&lt;p&gt;Probably we&apos;d compose a brief design to address these concerns? Thank you.&lt;/p&gt;</comment>
                            <comment id="202336" author="niu" created="Mon, 17 Jul 2017 13:48:41 +0000"  >&lt;p&gt;Silong, are you still working on this? Can we close it? Thanks.&lt;/p&gt;</comment>
                            <comment id="203065" author="pjones" created="Fri, 21 Jul 2017 13:05:39 +0000"  >&lt;p&gt;Ihara&lt;/p&gt;

&lt;p&gt;Is this work expected to be a candidate for inclusion in 2.11? &lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;

&lt;p&gt;Peter&lt;/p&gt;</comment>
                            <comment id="226932" author="ihara" created="Mon, 30 Apr 2018 01:50:33 +0000"  >&lt;p&gt;Shilong revised patch and rebased against latest master. We are waiting for review of patches.&lt;/p&gt;</comment>
                            <comment id="227410" author="gerrit" created="Mon, 7 May 2018 05:25:36 +0000"  >&lt;p&gt;Hongchao Zhang (hongchao.zhang@intel.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/32306&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/32306&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7816&quot; title=&quot;Add default quota setting support for Lustre&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7816&quot;&gt;&lt;del&gt;LU-7816&lt;/del&gt;&lt;/a&gt; quota: add default quota setting support&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 69ae397cd1b5c88070a3ec05b7d7957e98fa646e&lt;/p&gt;</comment>
                            <comment id="227411" author="hongchao.zhang" created="Mon, 7 May 2018 06:38:11 +0000"  >&lt;p&gt;Thanks for the patch created by Shilong, and I have some more ideas to implement the default quota based on Shilong&apos;s patch.&lt;/p&gt;

&lt;p&gt;1. the default quota setting is more like a normal setting (it&apos;s not related to specific user/group/project account, and it is more like a global setting),&lt;br/&gt;
    then it&apos;s better to be implemented by some global setting, for example, by some special account or some specific quota configuration file.&lt;/p&gt;

&lt;p&gt;2. To support the default quota based on the existing quota mechanism, we can create a special quota record for the non-enforced quota account,&lt;br/&gt;
    the special record will have zero hard/soft limit and a flag at the high bits of the grace time (so it can be downgraded to previous Lustre version),&lt;br/&gt;
    and enforce it with the global default quota setting dynamically.&lt;/p&gt;

&lt;p&gt;Thanks!&lt;/p&gt;</comment>
                            <comment id="229888" author="gerrit" created="Tue, 3 Jul 2018 18:05:28 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/32306/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/32306/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7816&quot; title=&quot;Add default quota setting support for Lustre&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7816&quot;&gt;&lt;del&gt;LU-7816&lt;/del&gt;&lt;/a&gt; quota: add default quota setting support&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 530881fe4ee20b56b0426a5c4d3a2b5226768d06&lt;/p&gt;</comment>
                            <comment id="229891" author="pjones" created="Tue, 3 Jul 2018 21:08:30 +0000"  >&lt;p&gt;Landed for 2.12&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10120">
                    <name>Blocker</name>
                                                                <inwardlinks description="is blocked by">
                                        <issuelink>
            <issuekey id="52222">LUDOC-405</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="52689">LU-11141</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="52249">LU-11023</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_10490" key="com.atlassian.jira.plugin.system.customfieldtypes:datepicker">
                        <customfieldname>End date</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 2 Mar 2016 10:50:26 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10390" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hzy2on:</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_10493" key="com.atlassian.jira.plugin.system.customfieldtypes:datepicker">
                        <customfieldname>Start date</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 25 Feb 2016 10:50:26 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    </customfields>
    </item>
</channel>
</rss>