<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:34:55 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-3556] osd-ldiskfs module depends on mdd</title>
                <link>https://jira.whamcloud.com/browse/LU-3556</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;It seems the osd-ldiskfs module depends on the mdd module because of the use of md_capainfo() in osd_object_auth() and osd_capa_get().  That causes a circular dependency on the modules and should be fixed.  Problems are only avoided because the OSD module is loaded manually depending on OSD type.&lt;/p&gt;</description>
                <environment></environment>
        <key id="19687">LU-3556</key>
            <summary>osd-ldiskfs module depends on mdd</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="dmiter">Dmitry Eremin</assignee>
                                    <reporter username="adilger">Andreas Dilger</reporter>
                        <labels>
                    </labels>
                <created>Wed, 3 Jul 2013 19:16:51 +0000</created>
                <updated>Tue, 10 Sep 2013 18:51:25 +0000</updated>
                            <resolved>Tue, 10 Sep 2013 18:51:25 +0000</resolved>
                                    <version>Lustre 2.4.1</version>
                    <version>Lustre 2.5.0</version>
                                    <fixVersion>Lustre 2.5.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>8</watches>
                                                                            <comments>
                            <comment id="61806" author="bzzz" created="Thu, 4 Jul 2013 04:29:51 +0000"  >&lt;p&gt;probably &lt;a href=&quot;http://review.whamcloud.com/#/c/5572/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/5572/&lt;/a&gt; could help?&lt;/p&gt;</comment>
                            <comment id="61810" author="tappro" created="Thu, 4 Jul 2013 08:06:52 +0000"  >&lt;p&gt;it should help, yes. Btw, what is the status of that patch? Is it going to be landed soon or is it low priority?&lt;/p&gt;</comment>
                            <comment id="61825" author="adilger" created="Thu, 4 Jul 2013 19:21:53 +0000"  >&lt;p&gt;We discussed to remove capa code on OST, but also if it is useful for LFSCK like if parent FID is used as simple capa to deny clients to access to an object if they have the wrong parent. &lt;/p&gt;</comment>
                            <comment id="62121" author="adilger" created="Thu, 11 Jul 2013 15:54:47 +0000"  >&lt;p&gt;For now, would it be easier to just move the tiny code fragment out of mdd_device.c:&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;/*
 * context key constructor/destructor:
 * mdd_capainfo_key_init, mdd_capainfo_key_fini
 */     
LU_KEY_INIT_FINI(mdd_capainfo, struct md_capainfo);

struct lu_context_key mdd_capainfo_key = {
        .lct_tags = LCT_SESSION,
        .lct_init = mdd_capainfo_key_init,
        .lct_fini = mdd_capainfo_key_fini
};

struct md_capainfo *md_capainfo(&lt;span class=&quot;code-keyword&quot;&gt;const&lt;/span&gt; struct lu_env *env)
{
        &lt;span class=&quot;code-comment&quot;&gt;/* NB, in mdt_init0 */&lt;/span&gt;
        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (env-&amp;gt;le_ses == NULL)
                &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; NULL;
        &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; lu_context_key_get(env-&amp;gt;le_ses, &amp;amp;mdd_capainfo_key);
}
EXPORT_SYMBOL(md_capainfo);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;int md_object.h, or some other public header?&lt;/p&gt;</comment>
                            <comment id="62134" author="bzzz" created="Thu, 11 Jul 2013 17:50:25 +0000"  >&lt;p&gt;I&apos;m fine with that. as for capabilities.. I&apos;m not sure we can easily use current infrastructure to do verification on OST because by design the checks are supposed to be done in OSD, but we need checks in OFD?&lt;/p&gt;</comment>
                            <comment id="62163" author="adilger" created="Thu, 11 Jul 2013 21:55:16 +0000"  >&lt;p&gt;I&apos;ve pushed &lt;a href=&quot;http://review.whamcloud.com/6945:&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/6945:&lt;/a&gt;&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;LU-3566 osd-ldiskfs: remove dependency on mdd module
    
Move the lu_capainfo_get() function (formerly named md_capainfo())
into obdclass/capa.c instead of mdd_device.c.  Otherwise, the
osd-ldiskfs.ko module depends on mdd.ko in order to load, and that
doesn&apos;t really make sense.
    
Move the lu_capainfo structure (formerly named md_capainfo) into
lustre_capa.h, and change the structure field prefix to match the
new name.
    
Fix up the users of this structure/function, and do some code
style cleanup in those functions at the same time.
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I don&apos;t really know much about this code, but it looks like there is a lot of simple cleanup that could be done:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;rename &lt;tt&gt;BYPASS_CAPA&lt;/tt&gt; to &lt;tt&gt;LC_BYPASS_CAPA&lt;/tt&gt; to make it less generic for upstream submission&lt;/li&gt;
	&lt;li&gt;rename &lt;tt&gt;mdt_set_capainfo()&lt;/tt&gt; to &lt;tt&gt;mdt_capainfo_set()&lt;/tt&gt;, same for &lt;tt&gt;mdt_dump_capainfo()&lt;/tt&gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;It looks like &lt;tt&gt;md_capainfo&lt;/tt&gt; was being accessed in the MDT, MDD, and OSD layers.  I don&apos;t know if that is good or bad, just a bit unexpected.&lt;/p&gt;</comment>
                            <comment id="64199" author="dmiter" created="Tue, 13 Aug 2013 18:58:02 +0000"  >&lt;p&gt;First part was landed to master. Do we need a code clean up?&lt;/p&gt;</comment>
                            <comment id="66236" author="adilger" created="Tue, 10 Sep 2013 18:51:25 +0000"  >&lt;p&gt;Dependency on mdd has been removed from osd-ldiskfs module.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="18241">LU-3105</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </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|hzvumn:</customfieldvalue>

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