<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:19:05 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-1718] fix Lustre NFS re-export for 3.0+ kernels</title>
                <link>https://jira.whamcloud.com/browse/LU-1718</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;During the &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-812&quot; title=&quot;Support for Linux 3.0 kernels&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-812&quot;&gt;&lt;del&gt;LU-812&lt;/del&gt;&lt;/a&gt; patch series to implement Linux 3.0 client support for Lustre, lustre_mount() was changed to remove the &lt;tt&gt;struct vfsmnt&lt;/tt&gt; argument that was previously available to lustre_get_sb().  The lack of struct vfsmnt argument complicates the ability to re-export the Lustre client filesystem via NFS, due to the BUG_ON(!mnt) in dentry_open().&lt;/p&gt;

&lt;p&gt;It seems rather unfortunate/unfair that the default get_name() function is passed the &quot;mnt&quot; argument, while the filesystem-specific get_name() is not. I don&apos;t know if this is due to technical or ideological reasons.&lt;/p&gt;

&lt;p&gt;The simplest fix would would be to see if we can get a patch submitted upstream and to SLES SP3 to pass the &quot;mnt&quot; argument to the -&amp;gt;get_name() method, but this may hit objections and would take time in any case.&lt;/p&gt;

&lt;p&gt;Another way to fix this, as btrfs_get_name() and gfs2_get_name() have done, is to implement the name lookup part of the code internally, without using the VFS readdir() code to do it. This is considerably more complex, since it would mean duplicating or refactoring ll_readdir(), ll_get_dir_page(), and ll_dir_readpage() to avoid the use of filp/file arguments so that it can be called directly from ll_get_name().&lt;/p&gt;

&lt;p&gt;A major hack would be to stash the vfsmnt from some function like ll_getattr into sbi-&amp;gt;ll_mnt, but this has the danger that the vfsmnt might change during runtime without Lustre being notified of it.&lt;/p&gt;</description>
                <environment></environment>
        <key id="15432">LU-1718</key>
            <summary>fix Lustre NFS re-export for 3.0+ kernels</summary>
                <type id="7" iconUrl="https://jira.whamcloud.com/images/icons/issuetypes/task_agile.png">Technical task</type>
                            <parent id="12300">LU-812</parent>
                                    <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="wc-triage">WC Triage</assignee>
                                    <reporter username="adilger">Andreas Dilger</reporter>
                        <labels>
                    </labels>
                <created>Tue, 7 Aug 2012 14:50:41 +0000</created>
                <updated>Tue, 4 Dec 2012 15:04:30 +0000</updated>
                            <resolved>Tue, 4 Dec 2012 14:32:27 +0000</resolved>
                                    <version>Lustre 2.3.0</version>
                                    <fixVersion>Lustre 2.4.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>13</watches>
                                                                            <comments>
                            <comment id="42839" author="adilger" created="Tue, 7 Aug 2012 16:51:35 +0000"  >&lt;p&gt;Actual change introducing this problem is &lt;a href=&quot;http://review.whamcloud.com/1951&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/1951&lt;/a&gt;, since there are several patches landing under &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-812&quot; title=&quot;Support for Linux 3.0 kernels&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-812&quot;&gt;&lt;del&gt;LU-812&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="43124" author="simmonsja" created="Mon, 13 Aug 2012 13:28:24 +0000"  >&lt;p&gt;I also thought about the hack of storing ll_mnt from some other function. Looking at the code it doesn&apos;t look to bad to refactor it much like btrfs and gfs2 does it. I have a patch I&apos;m doing basic testing to right now that I can post soon.&lt;/p&gt;</comment>
                            <comment id="43135" author="simmonsja" created="Mon, 13 Aug 2012 14:03:30 +0000"  >&lt;p&gt;Okay this is a rough first patch, &lt;a href=&quot;http://review.whamcloud.com/#change,3624&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#change,3624&lt;/a&gt;. Most likely I missed some thing so feel free to tear it apart.&lt;/p&gt;</comment>
                            <comment id="43797" author="simmonsja" created="Mon, 27 Aug 2012 11:23:58 +0000"  >&lt;p&gt;Patch updated for master.&lt;/p&gt;</comment>
                            <comment id="43980" author="simmonsja" created="Thu, 30 Aug 2012 08:16:27 +0000"  >&lt;p&gt;I have a patch ready for NFS export testing for Lustre 2.1. The question is should &lt;a href=&quot;http://review.whamcloud.com/#change,3661&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#change,3661&lt;/a&gt; be redone without the NFS disable part in llite_lib.c&lt;br/&gt;
and I submit my patch for this part or should I make my NFS patch dependent on the &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-812&quot; title=&quot;Support for Linux 3.0 kernels&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-812&quot;&gt;&lt;del&gt;LU-812&lt;/del&gt;&lt;/a&gt; patch for b2_1 as is?&lt;/p&gt;</comment>
                            <comment id="43988" author="bogl" created="Thu, 30 Aug 2012 10:49:04 +0000"  >&lt;p&gt;James, I think you should make your NFS patch dependent on the &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-812&quot; title=&quot;Support for Linux 3.0 kernels&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-812&quot;&gt;&lt;del&gt;LU-812&lt;/del&gt;&lt;/a&gt; patch for b2_1 as is. As far as I can see your patch is only needed if and when &lt;a href=&quot;http://review.whamcloud.com/#change,3661&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#change,3661&lt;/a&gt; is accepted and merged.&lt;/p&gt;</comment>
                            <comment id="48742" author="pjones" created="Tue, 4 Dec 2012 14:32:27 +0000"  >&lt;p&gt;Landed for 2.4&lt;/p&gt;</comment>
                            <comment id="48747" author="simmonsja" created="Tue, 4 Dec 2012 14:55:00 +0000"  >&lt;p&gt;Their is still a patch outstanding for b2_1&lt;/p&gt;</comment>
                            <comment id="48748" author="pjones" created="Tue, 4 Dec 2012 15:04:30 +0000"  >&lt;p&gt;James we track those differently&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="15258">LU-1646</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="12300">LU-812</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|hzv3h3:</customfieldvalue>

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