<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:39:01 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-4028] lfs quota option to print allocated blocks and inode inaddtion to used</title>
                <link>https://jira.whamcloud.com/browse/LU-4028</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;We are finding that users are running into cases where their used space is less than their soft/hardlimit but what they have been allocated is more. This results in being over quota. But the lfs quota command doesn&apos;t print how much a user is allocated. We would like an option to print total allocated blocks and inodes.&lt;/p&gt;
</description>
                <environment></environment>
        <key id="21199">LU-4028</key>
            <summary>lfs quota option to print allocated blocks and inode inaddtion to used</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="niu">Niu Yawei</assignee>
                                    <reporter username="mhanafi">Mahmoud Hanafi</reporter>
                        <labels>
                            <label>mn4</label>
                    </labels>
                <created>Mon, 30 Sep 2013 17:34:25 +0000</created>
                <updated>Tue, 27 May 2014 15:47:43 +0000</updated>
                            <resolved>Fri, 18 Apr 2014 13:08:29 +0000</resolved>
                                    <version>Lustre 2.1.5</version>
                                    <fixVersion>Lustre 2.6.0</fixVersion>
                    <fixVersion>Lustre 2.5.2</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>8</watches>
                                                                            <comments>
                            <comment id="68143" author="johann" created="Wed, 2 Oct 2013 12:54:52 +0000"  >&lt;p&gt;Mahmound, the &quot;-v&quot; option of the lfs quota command shows you how much quota space is actually allocated to each target. Is that what you are looking for?&lt;/p&gt;</comment>
                            <comment id="70143" author="mhanafi" created="Tue, 29 Oct 2013 18:02:18 +0000"  >&lt;p&gt;The -v option will show it for each ost not total. We want it to be printed in the summary. We would also like to request Human readable output option (ie. MB, GB, TB, etc).&lt;/p&gt;</comment>
                            <comment id="70602" author="niu" created="Mon, 4 Nov 2013 13:56:21 +0000"  >&lt;p&gt;improve lfs quota output to print total allocated block/inode limit and print block space/limit in kbytes/MB/GB/TB: &lt;a href=&quot;http://review.whamcloud.com/8152&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/8152&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="70893" author="jaylan" created="Wed, 6 Nov 2013 19:11:59 +0000"  >&lt;p&gt;Was your patch against b2_1?&lt;/p&gt;

&lt;p&gt;Making all in utils&lt;br/&gt;
make&lt;span class=&quot;error&quot;&gt;&amp;#91;5&amp;#93;&lt;/span&gt;: Entering directory `/usr/src/packages/BUILD/lustre-2.1.5/lustre/utils&apos;&lt;br/&gt;
make&lt;span class=&quot;error&quot;&gt;&amp;#91;6&amp;#93;&lt;/span&gt;: Entering directory `/usr/src/packages/BUILD/lustre-2.1.5/lustre/utils&apos;&lt;br/&gt;
lfs.c:1897: error: expected declaration specifiers or &apos;...&apos; before &apos;bool&apos;&lt;br/&gt;
lfs.c: In function &apos;print_quota_title&apos;:&lt;br/&gt;
lfs.c:1903: error: &apos;human_readable&apos; undeclared (first use in this function)&lt;br/&gt;
lfs.c:1903: error: (Each undeclared identifier is reported only once&lt;br/&gt;
lfs.c:1903: error: for each function it appears in.)&lt;br/&gt;
lfs.c: At top level:&lt;br/&gt;
lfs.c:1908: error: expected declaration specifiers or &apos;...&apos; before &apos;bool&apos;&lt;br/&gt;
lfs.c: In function &apos;kbytes2str&apos;:&lt;br/&gt;
lfs.c:1910: error: &apos;h&apos; undeclared (first use in this function)&lt;br/&gt;
lfs.c: At top level:&lt;br/&gt;
lfs.c:1925: error: expected declaration specifiers or &apos;...&apos; before &apos;bool&apos;&lt;br/&gt;
lfs.c: In function &apos;print_quota&apos;:&lt;br/&gt;
lfs.c:1969: error: &apos;h&apos; undeclared (first use in this function)&lt;br/&gt;
lfs.c:1969: error: too many arguments to function &apos;kbytes2str&apos;&lt;br/&gt;
lfs.c:1976: error: too many arguments to function &apos;kbytes2str&apos;&lt;br/&gt;
lfs.c:1983: error: too many arguments to function &apos;kbytes2str&apos;&lt;br/&gt;
lfs.c: At top level:&lt;br/&gt;
lfs.c:2027: error: expected declaration specifiers or &apos;...&apos; before &apos;bool&apos;&lt;br/&gt;
lfs.c: In function &apos;print_obd_quota&apos;:&lt;br/&gt;
lfs.c:2057: error: &apos;h&apos; undeclared (first use in this function)&lt;br/&gt;
lfs.c:2057: error: too many arguments to function &apos;print_quota&apos;&lt;br/&gt;
lfs.c: In function &apos;lfs_quota&apos;:&lt;br/&gt;
lfs.c:2079: error: &apos;bool&apos; undeclared (first use in this function)&lt;br/&gt;
lfs.c:2079: error: expected &apos;;&apos; before &apos;human_readable&apos;&lt;br/&gt;
lfs.c:2120: error: &apos;human_readable&apos; undeclared (first use in this function)&lt;br/&gt;
lfs.c:2120: error: &apos;true&apos; undeclared (first use in this function)&lt;br/&gt;
lfs.c:2193: error: too many arguments to function &apos;print_quota_title&apos;&lt;br/&gt;
lfs.c:2205: error: too many arguments to function &apos;print_quota&apos;&lt;br/&gt;
lfs.c:2211: error: too many arguments to function &apos;kbytes2str&apos;&lt;br/&gt;
lfs.c:2213: error: too many arguments to function &apos;print_obd_quota&apos;&lt;br/&gt;
lfs.c:2215: error: too many arguments to function &apos;print_obd_quota&apos;&lt;br/&gt;
make&lt;span class=&quot;error&quot;&gt;&amp;#91;6&amp;#93;&lt;/span&gt;: *** &lt;span class=&quot;error&quot;&gt;&amp;#91;lfs.o&amp;#93;&lt;/span&gt; Error 1&lt;/p&gt;
</comment>
                            <comment id="70943" author="niu" created="Thu, 7 Nov 2013 01:17:29 +0000"  >&lt;p&gt;The patch is against master, I&apos;ll backport it to b2_1 once it landed on master.&lt;/p&gt;</comment>
                            <comment id="71594" author="jlevi" created="Thu, 14 Nov 2013 23:25:44 +0000"  >&lt;p&gt;Patch landed to Master. Let me know if more work is needed in this ticket and I&apos;ll reopen.&lt;/p&gt;</comment>
                            <comment id="71595" author="pjones" created="Thu, 14 Nov 2013 23:29:36 +0000"  >&lt;p&gt;We need this ported to b2_1 and b2_4 for NASA&lt;/p&gt;</comment>
                            <comment id="71767" author="pjones" created="Mon, 18 Nov 2013 13:00:31 +0000"  >&lt;p&gt;b2_1 &lt;a href=&quot;http://review.whamcloud.com/#/c/8283/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/8283/&lt;/a&gt;&lt;br/&gt;
b2_4 &lt;a href=&quot;http://review.whamcloud.com/#/c/8282/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/8282/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="72187" author="green" created="Sat, 23 Nov 2013 14:45:37 +0000"  >&lt;p&gt;We need a documentation update to go along with this change, I think.&lt;br/&gt;
Can somebody create an appropriate LUDOC ticket?&lt;/p&gt;</comment>
                            <comment id="72202" author="niu" created="Mon, 25 Nov 2013 01:27:54 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.whamcloud.com/browse/LUDOC-209&quot; title=&quot;Update &amp;#39;lfs quota&amp;#39; option in Lustre Manual&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LUDOC-209&quot;&gt;&lt;del&gt;LUDOC-209&lt;/del&gt;&lt;/a&gt; is created.&lt;/p&gt;</comment>
                            <comment id="72343" author="mhanafi" created="Tue, 26 Nov 2013 21:24:19 +0000"  >
&lt;p&gt;I think there is a problem with the patch&lt;/p&gt;

&lt;p&gt;this&lt;br/&gt;
kbytes2str(total_balloc, strbuf, human_readable); &lt;br/&gt;
should be called after print_obd_quota.&lt;/p&gt;


&lt;p&gt;2211	+&#187;       &#187;       kbytes2str(total_balloc, strbuf, human_readable);  &lt;br/&gt;
2212	+&#187;       &#187;       rc2 = print_obd_quota(mnt, &amp;amp;qctl, 1, human_readable,&lt;br/&gt;
2213	+&#187;       &#187;       &#187;       &#187;             &amp;amp;total_ialloc);&lt;br/&gt;
2214	+&#187;       &#187;       rc3 = print_obd_quota(mnt, &amp;amp;qctl, 0, human_readable,&lt;br/&gt;
2215	+&#187;       &#187;       &#187;       &#187;             &amp;amp;total_balloc);&lt;br/&gt;
2216	+&#187;       &#187;       printf(&quot;Total allocated inode limit: &quot;LPU64&quot;, total &quot;&lt;br/&gt;
2217	+&#187;       &#187;              &quot;allocated block limit: %s\n&quot;, total_ialloc, strbuf);&lt;br/&gt;
2218	+&#187;       }&lt;/p&gt;</comment>
                            <comment id="72363" author="niu" created="Wed, 27 Nov 2013 01:51:00 +0000"  >&lt;p&gt;indeed, I&apos;ll push a patch to fix it, thank you, Mahmoud.&lt;/p&gt;</comment>
                            <comment id="72367" author="niu" created="Wed, 27 Nov 2013 03:40:30 +0000"  >&lt;p&gt;&lt;a href=&quot;http://review.whamcloud.com/8407&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/8407&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="72762" author="jaylan" created="Tue, 3 Dec 2013 23:27:15 +0000"  >&lt;p&gt;Niu, can you provide a 2.4.x version and a 2.1.x version as well? Thanks!&lt;/p&gt;</comment>
                            <comment id="72763" author="niu" created="Wed, 4 Dec 2013 00:12:20 +0000"  >&lt;blockquote&gt;
&lt;p&gt;Niu, can you provide a 2.4.x version and a 2.1.x version as well? Thanks!&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Sure, once it passed review and landed on master, I&apos;ll port it to b2_4 &amp;amp; b2_1.&lt;/p&gt;</comment>
                            <comment id="81933" author="pjones" created="Fri, 18 Apr 2014 13:08:29 +0000"  >&lt;p&gt;Landed for 2.6&lt;/p&gt;</comment>
                            <comment id="84665" author="bogl" created="Wed, 21 May 2014 22:16:06 +0000"  >&lt;p&gt;backports to b2_5:&lt;br/&gt;
&lt;a href=&quot;http://review.whamcloud.com/10411&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/10411&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;http://review.whamcloud.com/10412&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/10412&lt;/a&gt;&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|hzw4fb:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>10824</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                </customfields>
    </item>
</channel>
</rss>