<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:43:32 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-4530] Mainline kernel client (3.12-3.14): lfs quota -u ... -&gt; Permission denied</title>
                <link>https://jira.whamcloud.com/browse/LU-4530</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;&apos;lfs quota -u $(whoami)...&apos; reports &quot;Permission denied&apos; for regular users. It works if the same user queries the quota for &lt;b&gt;another&lt;/b&gt; user:&lt;/p&gt;

&lt;p&gt;$ whoami&lt;br/&gt;
cdufour&lt;/p&gt;

&lt;p&gt;$ lfs quota -u $(whoami) /idiap/temp/$(whoami)&lt;br/&gt;
Permission denied.&lt;/p&gt;

&lt;p&gt;$ lfs quota -u formaz /idiap/temp/formaz&lt;br/&gt;
Disk quotas for user formaz (uid 1005):&lt;br/&gt;
     Filesystem  kbytes   quota   limit   grace   files   quota   limit   grace&lt;br/&gt;
/idiap/temp/formaz&lt;br/&gt;
                113371820  1072693248 1073741824       -  452499  9999900 10000000       -&lt;/p&gt;

&lt;p&gt;(patch follows as soon as I have the LU-&amp;lt;ID&amp;gt; for this bug)&lt;/p&gt;

&lt;p&gt;Best,&lt;/p&gt;

&lt;p&gt;C&#233;dric&lt;/p&gt;</description>
                <environment></environment>
        <key id="22853">LU-4530</key>
            <summary>Mainline kernel client (3.12-3.14): lfs quota -u ... -&gt; Permission denied</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="green">Oleg Drokin</assignee>
                                    <reporter username="cdufour">C&#233;dric Dufour</reporter>
                        <labels>
                            <label>patch</label>
                    </labels>
                <created>Thu, 23 Jan 2014 10:18:42 +0000</created>
                <updated>Wed, 1 Jul 2015 16:29:11 +0000</updated>
                            <resolved>Wed, 1 Jul 2015 16:29:11 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>6</watches>
                                                                            <comments>
                            <comment id="75498" author="cdufour" created="Thu, 23 Jan 2014 10:34:43 +0000"  >&lt;p&gt;Hello again,&lt;/p&gt;

&lt;p&gt;Problem was introduced by changes made in &lt;a href=&quot;https://lkml.org/lkml/2013/7/15/218&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://lkml.org/lkml/2013/7/15/218&lt;/a&gt;, which got the &quot;uid_eq&quot; check the wrong way around.&lt;/p&gt;

&lt;p&gt;Attached patch solves the issue:&lt;/p&gt;

&lt;p&gt;$ whoami&lt;br/&gt;
cdufour&lt;/p&gt;

&lt;p&gt;$ lfs quota -u $(whoami) /idiap/temp/$(whoami)&lt;br/&gt;
Disk quotas for user cdufour (uid 1224):&lt;br/&gt;
     Filesystem  kbytes   quota   limit   grace   files   quota   limit   grace&lt;br/&gt;
/idiap/temp/cdufour&lt;br/&gt;
                     20  1072693248 1073741824       -       5  9999900 10000000       -&lt;/p&gt;

&lt;p&gt;$ lfs quota -u formaz /idiap/temp/formaz&lt;br/&gt;
Permission denied.&lt;/p&gt;

&lt;p&gt;Best,&lt;/p&gt;

&lt;p&gt;C&#233;dric&lt;/p&gt;

&lt;p&gt;PS: what is the recommended GIT source to work on the mainline kernel client of Lustre ?&lt;br/&gt;
(I&apos;m currently working with git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git)&lt;/p&gt;</comment>
                            <comment id="75513" author="green" created="Thu, 23 Jan 2014 18:12:29 +0000"  >&lt;p&gt;Yes, the upstream kernel patches you just send to Greg &amp;amp; general Linux mailing lists (and CC us too, of course), as we have no commit right to staging tree ourselves.&lt;/p&gt;

&lt;p&gt;Thanks!&lt;/p&gt;</comment>
                            <comment id="75553" author="rfehren" created="Fri, 24 Jan 2014 14:27:08 +0000"  >&lt;p&gt;Couple of additional questions/comments concerning this:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;Is there no internal GIT repo for this at Intel (if yes, please make it available publicly)?&lt;/li&gt;
	&lt;li&gt;How do you manage the flow from the master Lustre branch to the in-kernel code? It seems&lt;br/&gt;
  a lot of fixes don&apos;t make it to the in-kernel code.&lt;/li&gt;
	&lt;li&gt;Is there any QA/testing on the in-kernel code (the 3.12 stuff crashes as soon as you load the modules)?&lt;/li&gt;
	&lt;li&gt;I think, if the in-kernel stuff is supposed to attract any serious users, there should be a much&lt;br/&gt;
  better workflow and clear policy regarding its management.&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="75626" author="green" created="Sat, 25 Jan 2014 03:33:43 +0000"  >&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;The mainline-tracking repo is currently being setup (so, no, there is not one yet).&lt;br/&gt;
For now the best you could do is send patches to Greg KH directly, and CC us, so we can pick those up once (either immediately, or once we actually add support for such modern kernels).&lt;/li&gt;
&lt;/ul&gt;


&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;The flow from master to mainline kernel is not currently working all that well, we are currently thinking how to overcome this. The present state is such that the upstream kernel lustre code is quite a bit behind in some respects and ahead in others.&lt;/li&gt;
&lt;/ul&gt;


&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;The official QA/testing will be happening in the repo from item #1 once it&apos;s ready, we are working on it. Until then, it&apos;s just a few developers have their own testbeds. I set up mine just this week and the state is quite sorry, I am feeding important bugfixes upstream to Greg now to make the client at least work in most cases (I guess see my patches from yesterday in lkml as a startign point, also do not use 3.12, for best results the staging tree is what has the most uptodate client).&lt;br/&gt;
Also, do not enable the additional lustre debug checks, those don&apos;t work at present and crash needlessly, this will be fixed eventually.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;I agree currently in-kernel stuff is in a somewhat strange state now (for a variety of reasons, not all of which are actually under our control), we are thinking on how to better turn it around.&lt;/p&gt;
</comment>
                            <comment id="75636" author="cdufour" created="Sat, 25 Jan 2014 19:58:25 +0000"  >&lt;p&gt;Hello Oleg,&lt;/p&gt;

&lt;p&gt;Thank you for those precisions.&lt;/p&gt;

&lt;p&gt;Thanks to Roland - who originally set up our Lustre cluster server-wise - we have been using Lustre for 5 years now, as a general purpose temp space for our users and our computation grid. We&apos;re quite happy with it, especially after evaluating several commercial solutions and finding none up to Lustre so far. Lately, we grew plagued by the requirement to stick with the 2.6.32 kernel (supporting new hardware and new distributions was becoming a nightmare). As we migrated from Lustre 1.8 to 2.4 - thanks to Roland again - we decided to use the in-kernel client (actually, using the in-kernel client was the pre-requisite for this migration). We&apos;re happy to see that it works. There are few bugs of course, but fortunately none blocking. Thanks to a very few patches added to 3.13/14 kernel - namely those addressing &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-4209&quot; title=&quot;O_LOV_DELAY_CREATE conflict with __O_TMPFILE&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-4209&quot;&gt;&lt;del&gt;LU-4209&lt;/del&gt;&lt;/a&gt;, 4231, 4400, 4530 and hopefully soon 4520 - our Lustre cluster is functional production-wise.&lt;/p&gt;

&lt;p&gt;We believe that proper in-kernel support can bring a lot of momentum to Lustre. We hope that Lustre in-kernel client may one day be as notorious as other Intel&apos;s contributions to the kernel. Let us know if we can help in some ways.&lt;/p&gt;

&lt;p&gt;Best,&lt;/p&gt;

&lt;p&gt;C&#233;dric&lt;/p&gt;</comment>
                            <comment id="75641" author="green" created="Sun, 26 Jan 2014 06:43:01 +0000"  >&lt;p&gt;Thanks for this info. I am glad to hear you find lustre useful and that even vanilla kernel client works for you.&lt;/p&gt;

&lt;p&gt;I uploaded a stream of patches I plan to push upstream to &lt;a href=&quot;https://github.com/verygreen/linux/tree/lustre-next&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/verygreen/linux/tree/lustre-next&lt;/a&gt;&lt;br/&gt;
With it and updated &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-4209&quot; title=&quot;O_LOV_DELAY_CREATE conflict with __O_TMPFILE&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-4209&quot;&gt;&lt;del&gt;LU-4209&lt;/del&gt;&lt;/a&gt; patch for the tools sanity testing almost completely succeeds, and more importantly, nothing crashes anymore.&lt;/p&gt;

&lt;p&gt;I know Peng Tao has his tree at &lt;a href=&quot;https://github.com/bergwolf/linux/compare/master-sync-round-5&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/bergwolf/linux/compare/master-sync-round-5&lt;/a&gt; that has some more patches, though not as critical for normal operations.&lt;/p&gt;

&lt;p&gt;BTW, do you happen to use jobstats feature?&lt;/p&gt;</comment>
                            <comment id="75648" author="cdufour" created="Sun, 26 Jan 2014 11:05:24 +0000"  >&lt;p&gt;Thanks for the GIT pointers. Having some &quot;insider&apos;s&quot; insights on which patch to &quot;backport&quot; in priority (before they make it to the kernel) will definitely help (and provide opportunities for feedback from us users before it does).&lt;/p&gt;

&lt;p&gt;Will/should patches always be linked to Jira IDs and should Jira be the place to provide feedback (in case issues remain) ?&lt;br/&gt;
Will a notice be given in Jira when a patch is submitted to mainline ?&lt;/p&gt;

&lt;p&gt;Also, are you the one to link new mainline kernel issues with &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-4416&quot; title=&quot;support for 3.12 linux kernel&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-4416&quot;&gt;&lt;del&gt;LU-4416&lt;/del&gt;&lt;/a&gt; or can/should we reporter do it ?&lt;br/&gt;
(note: actually haven&apos;t found how to link one issue to another in Jira).&lt;/p&gt;

&lt;p&gt;As for jobstats: I hadn&apos;t heard of them until your mention but I will look into it; it seems it would allow us to address some questions we have with some load patterns we experience with our (SGE) grid.&lt;/p&gt;

&lt;p&gt;Best,&lt;/p&gt;

&lt;p&gt;C&#233;dric&lt;/p&gt;</comment>
                            <comment id="75659" author="rfehren" created="Mon, 27 Jan 2014 09:07:04 +0000"  >&lt;p&gt;Thanks for your detailed answer to my questions. I am glad to see you are putting further&lt;br/&gt;
effort into the vanilla kernel client. Looking forward to the days, when the server code will&lt;br/&gt;
compile against recent vanilla kernels as well &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.whamcloud.com/images/icons/emoticons/wink.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;</comment>
                            <comment id="75903" author="green" created="Wed, 29 Jan 2014 22:38:21 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.whamcloud.com/browse/LU-4416&quot; title=&quot;support for 3.12 linux kernel&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-4416&quot;&gt;&lt;del&gt;LU-4416&lt;/del&gt;&lt;/a&gt; is not related to in-kernel client, instead it&apos;s for our efforts to make our lustre version to compile against mainline kernel.&lt;br/&gt;
There&apos;s certainly some overlap, but please file in-kernel client bugreports separately ad marked as such&lt;/p&gt;</comment>
                            <comment id="82997" author="simmonsja" created="Thu, 1 May 2014 15:32:44 +0000"  >&lt;p&gt;This patch landed upstream. We can now close this ticket.&lt;/p&gt;</comment>
                            <comment id="86245" author="simmonsja" created="Tue, 10 Jun 2014 18:02:55 +0000"  >&lt;p&gt;Peter you can close this ticket as well since the patch has landed upstream.&lt;/p&gt;</comment>
                            <comment id="93948" author="simmonsja" created="Sun, 14 Sep 2014 15:14:43 +0000"  >&lt;p&gt;The fix &lt;/p&gt;

&lt;p&gt;commit 8b9e418c013e8b671fc10108ab14243f0657bffd&lt;br/&gt;
Author: C&#233;dric Dufour - Idiap Research Institute &amp;lt;cedric.dufour@idiap.ch&amp;gt;&lt;br/&gt;
Date:   Fri Jan 24 20:57:05 2014 +0100&lt;/p&gt;

&lt;p&gt;    staging: lustre: fix quotactl permission denied (&lt;a href=&quot;https://jira.whamcloud.com/browse/LU-4530&quot; title=&quot;Mainline kernel client (3.12-3.14): lfs quota -u ... -&amp;gt; Permission denied&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-4530&quot;&gt;&lt;del&gt;LU-4530&lt;/del&gt;&lt;/a&gt;)&lt;/p&gt;

&lt;p&gt;    The changes introduced in commit 4b1a25f06b30b203 (&quot;fix build when&lt;br/&gt;
    CONFIG_UIDGID_STRICT_TYPE_CHECKS is on&quot;) got the UID check the wrong way&lt;br/&gt;
    around, leading to &quot;Permission denied&quot; when a regular user attempts to&lt;br/&gt;
    retrieve his quota (lfs quota -u ...) but allowing him to retrieve other&lt;br/&gt;
    users quota.&lt;/p&gt;

&lt;p&gt;    Full details at: &lt;a href=&quot;https://jira.hpdd.intel.com/browse/LU-4530&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://jira.hpdd.intel.com/browse/LU-4530&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;    Cc: Peng Tao &amp;lt;tao.peng@emc.com&amp;gt;&lt;br/&gt;
    Cc: &amp;lt;stable@vger.kernel.org&amp;gt; # 3.12.x&lt;br/&gt;
    Cc: &amp;lt;stable@vger.kernel.org&amp;gt; # 3.13.x&lt;br/&gt;
    Signed-off-by: C&#233;dric Dufour &amp;lt;cedric.dufour@idiap.ch&amp;gt;&lt;br/&gt;
    Signed-off-by: Greg Kroah-Hartman &amp;lt;gregkh@linuxfoundation.org&amp;gt;&lt;/p&gt;

&lt;p&gt;was landed upstream. This ticket can be closed.&lt;/p&gt;</comment>
                            <comment id="120063" author="ys" created="Wed, 1 Jul 2015 16:29:11 +0000"  >&lt;p&gt;Close as James&apos;s comment.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="28577">LU-6215</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="21129">LU-4011</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="22582">LU-4416</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="14015" name="lustre-llite-fix-quotactl-permission-denied-LU4530.patch" size="834" author="cdufour" created="Thu, 23 Jan 2014 10:34:43 +0000"/>
                    </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|hzwdgn:</customfieldvalue>

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