<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:33:07 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-3344] Add open_by_handle() syscall for Lustre clients</title>
                <link>https://jira.whamcloud.com/browse/LU-3344</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;The open_by_handle_at() and name_to_handle() functions were added to Linux 2.6.38, and allow opening files by a file handle instead of path traversal.  This may be useful for HPC applications to reduce loading on the metadata server from repeated path traversal.&lt;/p&gt;

&lt;p&gt;There is some chance this feature already works on Lustre, due to the re-use of the NFS exportfs_encode_fh() and exportfs_decode_fh() functions.  This code needs a regression test in Lustre to verify it is working correctly, along with documentation in the user manual.&lt;/p&gt;</description>
                <environment></environment>
        <key id="19021">LU-3344</key>
            <summary>Add open_by_handle() syscall for Lustre clients</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="yujian">Jian Yu</assignee>
                                    <reporter username="adilger">Andreas Dilger</reporter>
                        <labels>
                            <label>patch</label>
                    </labels>
                <created>Wed, 15 May 2013 10:09:58 +0000</created>
                <updated>Fri, 5 Jun 2015 00:31:03 +0000</updated>
                            <resolved>Sun, 2 Feb 2014 16:06:59 +0000</resolved>
                                                    <fixVersion>Lustre 2.6.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>11</watches>
                                                                            <comments>
                            <comment id="61871" author="gmahajan" created="Mon, 8 Jul 2013 05:02:23 +0000"  >&lt;p&gt;Working on this. We are hit by a Null pointer dereference in ll_revalidate_nd (llite/dcache.c) in an NFS mounted Lustre file system.  &lt;a href=&quot;https://jira.hpdd.intel.com/browse/LU-3483&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://jira.hpdd.intel.com/browse/LU-3483&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="63022" author="gmahajan" created="Fri, 26 Jul 2013 10:00:11 +0000"  >&lt;p&gt;Status :  Work In Progress&lt;/p&gt;

&lt;p&gt;Here is the initial patch for sanity tests to check &apos;name_to_handle_at&apos; and &apos;open_by_handle_at&apos; syscalls.&lt;br/&gt;
&lt;a href=&quot;http://review.whamcloud.com/#/c/7129/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/7129/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Currently the patch is incomplete because &apos;name_to_handle_at&apos; and &apos;open_by_handle_at&apos; are updated in glibc 2.14. Current Glibc version is 2.12. So for now we are calling the syscalls with syscall numbers directly.&lt;/p&gt;</comment>
                            <comment id="63708" author="spimpale" created="Tue, 6 Aug 2013 12:45:11 +0000"  >&lt;p&gt;Please note that the above patch (&lt;a href=&quot;http://review.whamcloud.com/#/c/7129/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/7129/&lt;/a&gt;) is abandoned.&lt;/p&gt;

&lt;p&gt;I have added a new patch here (&lt;a href=&quot;http://review.whamcloud.com/#/c/7247/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/7247/&lt;/a&gt;)&lt;br/&gt;
As mentioned in the previous comment, these syscalls are supported in glibc &amp;gt;= 2.14&lt;br/&gt;
So currently this test is run only on FC18 clients which have 2.16 glibc and skipped otherwise.&lt;/p&gt;</comment>
                            <comment id="63760" author="spimpale" created="Wed, 7 Aug 2013 08:37:36 +0000"  >&lt;p&gt;While testing these syscalls on FC18 client, I hit this (&lt;a href=&quot;https://jira.hpdd.intel.com/browse/LU-3717&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://jira.hpdd.intel.com/browse/LU-3717&lt;/a&gt;) panic in ll_enocde_fh()&lt;/p&gt;</comment>
                            <comment id="64818" author="spimpale" created="Thu, 22 Aug 2013 08:54:05 +0000"  >&lt;p&gt;As noted in the ticket description the syscalls and the structure file_handle were added in Linux kernel 2.6.39&lt;/p&gt;

&lt;p&gt;I have added a config time check which checks whether file_handle, name_to_handle_at() and open_by_handle_at() can be resolved.&lt;br/&gt;
I expect this patch (&lt;a href=&quot;http://review.whamcloud.com/#/c/7247/5&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/7247/5&lt;/a&gt;) to solve the build errors on targets where these syscalls aren&apos;t supported.&lt;/p&gt;</comment>
                            <comment id="65603" author="pjones" created="Tue, 3 Sep 2013 14:25:36 +0000"  >&lt;p&gt;Bobbie&lt;/p&gt;

&lt;p&gt;Could you please review and take care of this patch?&lt;/p&gt;

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

&lt;p&gt;Peter&lt;/p&gt;</comment>
                            <comment id="67520" author="pjones" created="Wed, 25 Sep 2013 12:45:06 +0000"  >&lt;p&gt;Yu, Jian will take over ensuring that this patch lands&lt;/p&gt;</comment>
                            <comment id="72703" author="simmonsja" created="Tue, 3 Dec 2013 16:15:20 +0000"  >&lt;p&gt;I updated the patch. Even tho I was testing with a 3.11 kernel I couldn&apos;t get this to work but then I realized the kernel has to be configured with CONFIG_FHANDLE so I updated the autoconf test to handle this case. I also removed the FC18 condition for the sanity test since this is not the case for me.&lt;/p&gt;</comment>
                            <comment id="72971" author="simmonsja" created="Fri, 6 Dec 2013 13:51:37 +0000"  >&lt;p&gt;Patch &lt;a href=&quot;http://review.whamcloud.com/#/c/7247&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/7247&lt;/a&gt; has been updated and tested.&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;root@spoon46 tests&amp;#93;&lt;/span&gt;# ./check_fhandle_syscalls temp-file /lustre/barry&lt;br/&gt;
fh_bytes: 32&lt;br/&gt;
fh_type: 151&lt;br/&gt;
fh_data: 0 4 0 0 2 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0&lt;br/&gt;
check_fhandle_syscalls test Passed!&lt;/p&gt;</comment>
                            <comment id="76056" author="simmonsja" created="Sun, 2 Feb 2014 15:48:26 +0000"  >&lt;p&gt;The last patch &lt;a href=&quot;http://review.whamcloud.com/#/c/7247&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/7247&lt;/a&gt; has been merged. This ticket can be closed.&lt;/p&gt;</comment>
                            <comment id="76058" author="pjones" created="Sun, 2 Feb 2014 16:06:59 +0000"  >&lt;p&gt;Fixed in 2.6&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="20221">LU-3717</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|hzvr1j:</customfieldvalue>

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