<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:40: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-4239] lfs fid2path ioctl err -75: Value too large for defined data type (75)</title>
                <link>https://jira.whamcloud.com/browse/LU-4239</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;I have created 100 nested directories. No problem until 99.&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;root@st01-cli2 ~&amp;#93;&lt;/span&gt;# lfs fid2path /mnt/pippo &lt;span class=&quot;error&quot;&gt;&amp;#91;0x200000400:0xcc:0x0&amp;#93;&lt;/span&gt;&lt;br/&gt;
/mnt/pippo/1/2/3/4/5/6/7/8/9/10/11/12/13/14/15/16/17/18/19/20/21/22/23/24/25/26/27/28/29/30/31/32/33/34/35/36/37/38/39/40/41/42/43/44/45/46/47/48/49/50/51/52/53/54/55/56/57/58/59/60/61/62/63/64/65/66/67/68/69/70/71/72/73/74/75/76/77/78/79/80/81/82/83/84/85/86/87/88/89/90/91/92/93/94/95/96/97/98/99&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;root@st01-cli2 ~&amp;#93;&lt;/span&gt;# lfs fid2path /mnt/pippo &lt;span class=&quot;error&quot;&gt;&amp;#91;0x200000400:0xcd:0x0&amp;#93;&lt;/span&gt;&lt;br/&gt;
ioctl err -75: Value too large for defined data type (75)&lt;br/&gt;
fid2path error: Value too large for defined data type&lt;/p&gt;</description>
                <environment>lustre-client-2.4.0-2.6.32_358.11.1.el6.x86_64_ga049816.x86_64</environment>
        <key id="21953">LU-4239</key>
            <summary>lfs fid2path ioctl err -75: Value too large for defined data type (75)</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="bzzz">Alex Zhuravlev</assignee>
                                    <reporter username="gabriele.paciucci">Gabriele Paciucci</reporter>
                        <labels>
                            <label>cdwgbl</label>
                            <label>patch</label>
                    </labels>
                <created>Sat, 9 Nov 2013 04:47:18 +0000</created>
                <updated>Tue, 7 Jul 2015 00:17:29 +0000</updated>
                            <resolved>Tue, 7 Jul 2015 00:17:29 +0000</resolved>
                                    <version>Lustre 2.6.0</version>
                                    <fixVersion>Lustre 2.8.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>10</watches>
                                                                            <comments>
                            <comment id="71202" author="keith" created="Sat, 9 Nov 2013 15:12:45 +0000"  >&lt;p&gt;At least there is a Path too Large error returned. &lt;/p&gt;

&lt;p&gt;Do you feel more depth is needed? 99 Deep seems reasonable to document?   &lt;/p&gt;</comment>
                            <comment id="71216" author="malkolm" created="Mon, 11 Nov 2013 03:41:08 +0000"  >&lt;p&gt;If the file system can support nested directories beyond a depth of 99, then it is reasonable to expect the tools to keep up. It is something of an edge case, I agree, but it is also not the expected behaviour.&lt;/p&gt;</comment>
                            <comment id="71222" author="gabriele.paciucci" created="Mon, 11 Nov 2013 10:20:42 +0000"  >&lt;p&gt;should be = POSIX PATH MAX ?&lt;/p&gt;</comment>
                            <comment id="71273" author="malkolm" created="Mon, 11 Nov 2013 22:09:18 +0000"  >&lt;p&gt;The limits.h definition describes the number of characters in the file path, not the number of directories. The limit you are hitting is the tree depth, not the number of chars. PATH_MAX is 4K (but there are other choices &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.whamcloud.com/images/icons/emoticons/smile.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt; ). I agree that the limit should correspond to some recognisable constant such as PATH_MAX.&lt;/p&gt;</comment>
                            <comment id="86621" author="paf" created="Fri, 13 Jun 2014 21:39:35 +0000"  >&lt;p&gt;Just put out a patch for this...  Note this is a server patch, not a client one - The limitation is not in LFS, it&apos;s actually in some code on the MDS.&lt;/p&gt;

&lt;p&gt;As I wrote in the patch description:&lt;br/&gt;
&lt;a href=&quot;https://jira.whamcloud.com/browse/LU-4239&quot; title=&quot;lfs fid2path ioctl err -75: Value too large for defined data type (75)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-4239&quot;&gt;&lt;del&gt;LU-4239&lt;/del&gt;&lt;/a&gt; mdt: Increase MAX_PATH_DEPTH to PATH_MAX/2&lt;/p&gt;

&lt;p&gt;Currently, MAX_PATH_DEPTH is limited to 100.&lt;br/&gt;
This is an arbitrary limit, and prevents using lfs fid2path&lt;br/&gt;
on very deep directory trees.&lt;/p&gt;

&lt;p&gt;More seriously, this same limit prevents HSM from archiving&lt;br/&gt;
these files.&lt;/p&gt;

&lt;p&gt;Change MAX_PATH_DEPTH to PATH_MAX/2 because the highest&lt;br/&gt;
FID/character density is in paths like:&lt;br/&gt;
/a/b&lt;br/&gt;
which has 4 characters and 2 FIDs.&lt;br/&gt;
&amp;#8212;&lt;br/&gt;
The obvious downside to this patch is it increases the size of path_lookup_info by about 31k.&lt;br/&gt;
(Each FID is 16 bytes, 100*16 bytes = 1600 bytes, 2048*16 bytes = 32k bytes)&lt;/p&gt;

&lt;p&gt;Here&apos;s a quick test showing a file system with this patch on the MDS - Previously, this would give the -75 error mentioned:&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;root@centclient01 centss01&amp;#93;&lt;/span&gt;# lfs path2fid 1/2/3/4/5/6/7/8/9/10/11/12/13/14/15/16/17/18/19/20/21/22/23/24/25/26/27/28/29/30/31/32/33/34/35/36/37/38/39/40/41/42/43/44/45/46/47/48/49/50/51/52/53/54/55/56/57/58/59/60/61/62/63/64/65/66/67/68/69/70/71/72/73/74/75/76/77/78/79/80/81/82/83/84/85/86/87/88/89/90/91/92/93/94/95/96/97/98/99/100/&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;0x200000400:0x65:0x0&amp;#93;&lt;/span&gt;&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;root@centclient01 centss01&amp;#93;&lt;/span&gt;# lfs fid2path /mnt/centss01 &lt;span class=&quot;error&quot;&gt;&amp;#91;0x200000400:0x65:0x0&amp;#93;&lt;/span&gt;&lt;br/&gt;
/mnt/centss01/1/2/3/4/5/6/7/8/9/10/11/12/13/14/15/16/17/18/19/20/21/22/23/24/25/26/27/28/29/30/31/32/33/34/35/36/37/38/39/40/41/42/43/44/45/46/47/48/49/50/51/52/53/54/55/56/57/58/59/60/61/62/63/64/65/66/67/68/69/70/71/72/73/74/75/76/77/78/79/80/81/82/83/84/85/86/87/88/89/90/91/92/93/94/95/96/97/98/99/100&lt;/p&gt;</comment>
                            <comment id="86622" author="paf" created="Fri, 13 Jun 2014 21:41:02 +0000"  >&lt;p&gt;A quick observation...&lt;br/&gt;
In order to test the patch, I&apos;m exploring creating extremely deep directory trees...  (Roughly PATH_MAX/2, so 2048 or so.)&lt;/p&gt;

&lt;p&gt;As I get to very long path lengths, mkdir is getting extremely slow.  I don&apos;t think this is related to the patch, but I could be wrong.&lt;/p&gt;</comment>
                            <comment id="86626" author="paf" created="Fri, 13 Jun 2014 21:59:57 +0000"  >&lt;p&gt;Expanding a little on the possible concern about memory usage.&lt;/p&gt;

&lt;p&gt;If this is a commonly used piece of code, we&apos;ve gone from a struct that probably fits in one page to one that doesn&apos;t fit in 8.  That&apos;s potentially quite bad, if it&apos;s in a fairly hot path on the MDS.  I&apos;m hoping some Intel engineers can comment on that as a possible problem, and if it is one, suggest other solutions.&lt;/p&gt;

&lt;p&gt;For example - Do we need to record FIDs in this manner when looking up paths?  I see it being done, but I don&apos;t actually see the data stored in pli_fids being used.  The array is accessed, but only the most recent values in it.  It looks like it would be simple enough to rewrite the loop in mdt_path_current to not use the array.&lt;/p&gt;</comment>
                            <comment id="87217" author="paf" created="Fri, 20 Jun 2014 22:32:38 +0000"  >&lt;p&gt;Patch is here:&lt;br/&gt;
&lt;a href=&quot;http://review.whamcloud.com/#/c/10717/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/10717/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;PS1 increases the array size, PS2 is a rewrite to no longer use the array.&lt;/p&gt;

&lt;p&gt;Testing here:&lt;br/&gt;
centclient01 is running a recent version of master, &lt;br/&gt;
centss10 is also running a recent version of master.&lt;br/&gt;
&lt;a href=&quot;https://jira.whamcloud.com/browse/LU-4239&quot; title=&quot;lfs fid2path ioctl err -75: Value too large for defined data type (75)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-4239&quot;&gt;&lt;del&gt;LU-4239&lt;/del&gt;&lt;/a&gt; is present, as seen in the &quot;Value too large&quot; error.&lt;/p&gt;

&lt;p&gt;centss09 is running a recent version of master+my patch set 2.&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;root@centclient01 centss09&amp;#93;&lt;/span&gt;# cd /mnt/centss10&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;root@centclient01 centss10&amp;#93;&lt;/span&gt;# lfs path2fid 1/2/3/4/5/6/7/8/9/10/11/12/13/14/15/16/17/18/19/20/21/22/23/24/25/26/27/28/29/30/31/32/33/34/35/36/37/38/39/40/41/42/43/44/45/46/47/48/49/50/51/52/53/54/55/56/57/58/59/60/61/62/63/64/65/66/67/68/69/70/71/72/73/74/75/76/77/78/79/80/81/82/83/84/85/86/87/88/89/90/91/92/93/94/95/96/97/98/99/100/101/102/103/104/105/106/107/108/109/110/&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;0x200000400:0x6f:0x0&amp;#93;&lt;/span&gt;&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;root@centclient01 centss10&amp;#93;&lt;/span&gt;# lfs fid2path /mnt/centss10/ &lt;span class=&quot;error&quot;&gt;&amp;#91;0x200000400:0x6f:0x0&amp;#93;&lt;/span&gt;&lt;br/&gt;
ioctl err -75: Value too large for defined data type (75)&lt;br/&gt;
fid2path: error on FID &lt;span class=&quot;error&quot;&gt;&amp;#91;0x200000400:0x6f:0x0&amp;#93;&lt;/span&gt;: Value too large for defined data type&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;root@centclient01 centss10&amp;#93;&lt;/span&gt;# cd ../centss09&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;root@centclient01 centss09&amp;#93;&lt;/span&gt;# lfs path2fid 1/2/3/4/5/6/7/8/9/10/11/12/13/14/15/16/17/18/19/20/21/22/23/24/25/26/27/28/29/30/31/32/33/34/35/36/37/38/39/40/41/42/43/44/45/46/47/48/49/50/51/52/53/54/55/56/57/58/59/60/61/62/63/64/65/66/67/68/69/70/71/72/73/74/75/76/77/78/79/80/81/82/83/84/85/86/87/88/89/90/91/92/93/94/95/96/97/98/99/100/101/102/103/104/105/106/107/108/109/110/&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;0x200000400:0x74:0x0&amp;#93;&lt;/span&gt;&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;root@centclient01 centss09&amp;#93;&lt;/span&gt;# lfs fid2path /mnt/centss09 &lt;span class=&quot;error&quot;&gt;&amp;#91;0x200000400:0x74:0x0&amp;#93;&lt;/span&gt;&lt;br/&gt;
/mnt/centss09/1/2/3/4/5/6/7/8/9/10/11/12/13/14/15/16/17/18/19/20/21/22/23/24/25/26/27/28/29/30/31/32/33/34/35/36/37/38/39/40/41/42/43/44/45/46/47/48/49/50/51/52/53/54/55/56/57/58/59/60/61/62/63/64/65/66/67/68/69/70/71/72/73/74/75/76/77/78/79/80/81/82/83/84/85/86/87/88/89/90/91/92/93/94/95/96/97/98/99/100/101/102/103/104/105/106/107/108/109/110&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;root@centclient01 centss09&amp;#93;&lt;/span&gt;# &lt;/p&gt;</comment>
                            <comment id="96357" author="simmonsja" created="Tue, 14 Oct 2014 22:35:23 +0000"  >&lt;p&gt;Can you add a test so Maloo can verify this patch.&lt;/p&gt;</comment>
                            <comment id="98232" author="fzago" created="Mon, 3 Nov 2014 21:51:36 +0000"  >&lt;p&gt;Tests for this patch: &lt;a href=&quot;http://review.whamcloud.com/12545&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/12545&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="99404" author="gerrit" created="Mon, 17 Nov 2014 20:36:52 +0000"  >&lt;p&gt;Patrick Farrell (paf@cray.com) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/10717&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/10717&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-4239&quot; title=&quot;lfs fid2path ioctl err -75: Value too large for defined data type (75)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-4239&quot;&gt;&lt;del&gt;LU-4239&lt;/del&gt;&lt;/a&gt; mdt: Optimize fid2path&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 15&lt;br/&gt;
Commit: 78034fb07174a1fe9e22fa5ea54a58d6007af0b3&lt;/p&gt;</comment>
                            <comment id="102321" author="gerrit" created="Fri, 26 Dec 2014 16:58:24 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;http://review.whamcloud.com/10717/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/10717/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-4239&quot; title=&quot;lfs fid2path ioctl err -75: Value too large for defined data type (75)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-4239&quot;&gt;&lt;del&gt;LU-4239&lt;/del&gt;&lt;/a&gt; mdt: Optimize fid2path&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 825570b0b03e0fd70aba5400dedca4e6d94d5141&lt;/p&gt;</comment>
                            <comment id="109958" author="gerrit" created="Wed, 18 Mar 2015 11:02:38 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;http://review.whamcloud.com/12545/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/12545/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-4239&quot; title=&quot;lfs fid2path ioctl err -75: Value too large for defined data type (75)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-4239&quot;&gt;&lt;del&gt;LU-4239&lt;/del&gt;&lt;/a&gt; tests: test FID related APIs&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 2b10c0bde269e1d45ae9483a492ce171f05831a1&lt;/p&gt;</comment>
                            <comment id="120510" author="pjones" created="Tue, 7 Jul 2015 00:17:29 +0000"  >&lt;p&gt;Landed for 2.8&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="29157">LU-6384</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="28494">LU-6194</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|hzw8jr:</customfieldvalue>

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