<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:46:34 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-4869] rmdir allowed on nonempty striped directories</title>
                <link>https://jira.whamcloud.com/browse/LU-4869</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&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;# lfs mkdir -c4 /mnt/lustre/d0
# touch /mnt/lustre/d0/f0
# ls -ai /mnt/lustre/d0
180144002274689036 .  180144002274689036 .   144115188193296385 ..
180144002274689036 .  144115188193296385 ..  144115188193296385 ..
180144002274689036 .  144115188193296385 ..  234187197819912199 f0
# rmdir /mnt/lustre/d0
# ls /mnt/lustre
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;If I hold an open file descriptor on a striped dir then I can unlink it but still create files in the non-zero stripes.&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;# export MDSCOUNT=4
# llmount.sh 
...
# lfs mkdir -c4 /mnt/lustre/d0
# cd /mnt/lustre/d0
# ls -ai
180144002274689025 .  180144002274689025 .  144115188193296385 ..  144115188193296385 ..
180144002274689025 .  180144002274689025 .  144115188193296385 ..  144115188193296385 ..
# rmdir /mnt/lustre/d0
# touch f0 f1 f2 f3
touch: cannot touch `f0&apos;: No such file or directory
touch: cannot touch `f1&apos;: No such file or directory
touch: cannot touch `f2&apos;: No such file or directory
touch: cannot touch `f3&apos;: No such file or directory
# cd
#
# lfs mkdir -c4 /mnt/lustre/d0
# cd /mnt/lustre/d0
# exec 3&amp;lt;.
# rmdir /mnt/lustre/d0
# ls -ai .
180144002274689027 .  180144002274689027 .   144115188193296385 ..
180144002274689027 .  144115188193296385 ..  144115188193296385 ..
# touch f0 f1 f2 f3
touch: cannot touch `f1&apos;: Stale file handle
# ls -ai .
180144002274689027 .  144115188193296385 ..  234187197819912194 f0
180144002274689027 .  144115188193296385 ..  198158400800948226 f2
180144002274689027 .  144115188193296385 ..  216172799310430210 f3
# exec 3&amp;lt;&amp;amp;-
# ls -ai .
ls: cannot open directory .: No such file or directory
# stat f0
  File: `f0&apos;
  Size: 0         	Blocks: 0          IO Block: 4194304 regular empty file
Device: 2c54f966h/743766374d	Inode: 234187197819912194  Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2014-04-08 10:04:06.000000000 -0500
Modify: 2014-04-08 10:04:06.000000000 -0500
Change: 2014-04-08 10:04:06.000000000 -0500
# stat f1
stat: cannot stat `f1&apos;: Stale file handle
# stat f2
  File: `f2&apos;
  Size: 0         	Blocks: 0          IO Block: 4194304 regular empty file
Device: 2c54f966h/743766374d	Inode: 198158400800948226  Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2014-04-08 10:04:06.000000000 -0500
Modify: 2014-04-08 10:04:06.000000000 -0500
Change: 2014-04-08 10:04:06.000000000 -0500
# stat f3
  File: `f3&apos;
  Size: 0         	Blocks: 0          IO Block: 4194304 regular empty file
Device: 2c54f966h/743766374d	Inode: 216172799310430210  Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2014-04-08 10:04:06.000000000 -0500
Modify: 2014-04-08 10:04:06.000000000 -0500
Change: 2014-04-08 10:04:06.000000000 -0500
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&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;# lfs mkdir -c4 /mnt/lustre/d0
# cd /mnt/lustre/d0
# exec 3&amp;lt;.
# ls -ai .
180144002274689032 .  180144002274689032 .  144115188193296385 ..  144115188193296385 ..
180144002274689032 .  180144002274689032 .  144115188193296385 ..  144115188193296385 ..
# rmdir /mnt/lustre/d0
# ls -ai .
180144002274689032 .  180144002274689032 .   144115188193296385 ..
180144002274689032 .  144115188193296385 ..  144115188193296385 ..
# touch f0 f2 f2 f3
# ls
f0  f2  f3
# touch f0 f1 f2 f3
touch: cannot touch `f1&apos;: Stale file handle
# ls
f0  f2  f3
# lfs path2fid f0 f1 f2 f3
f0: [0x340000401:0x3:0x0]
path2fid: can&apos;t get fid for f1: No such file or directory
f2: [0x2c0000401:0x3:0x0]
f3: [0x300000401:0x3:0x0]
# exec 3&amp;lt;&amp;amp;-
# cd
# stat /mnt/lustre/.lustre/fid/[0x340000401:0x3:0x0]
  File: `/mnt/lustre/.lustre/fid/[0x340000401:0x3:0x0]&apos;
  Size: 0         	Blocks: 0          IO Block: 4194304 regular empty file
Device: 2c54f966h/743766374d	Inode: 234187197819912195  Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2014-04-08 10:09:45.000000000 -0500
Modify: 2014-04-08 10:09:45.000000000 -0500
Change: 2014-04-08 10:09:45.000000000 -0500
# stat /mnt/lustre/.lustre/fid/[0x2c0000401:0x3:0x0]
  File: `/mnt/lustre/.lustre/fid/[0x2c0000401:0x3:0x0]&apos;
  Size: 0         	Blocks: 0          IO Block: 4194304 regular empty file
Device: 2c54f966h/743766374d	Inode: 198158400800948227  Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2014-04-08 10:09:45.000000000 -0500
Modify: 2014-04-08 10:09:45.000000000 -0500
Change: 2014-04-08 10:09:45.000000000 -0500
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="24113">LU-4869</key>
            <summary>rmdir allowed on nonempty striped directories</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="1" iconUrl="https://jira.whamcloud.com/images/icons/priorities/blocker.svg">Blocker</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="di.wang">Di Wang</assignee>
                                    <reporter username="jhammond">John Hammond</reporter>
                        <labels>
                            <label>dne2</label>
                    </labels>
                <created>Tue, 8 Apr 2014 15:20:24 +0000</created>
                <updated>Thu, 22 May 2014 13:27:55 +0000</updated>
                            <resolved>Thu, 22 May 2014 13:27:55 +0000</resolved>
                                    <version>Lustre 2.6.0</version>
                                    <fixVersion>Lustre 2.6.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="81214" author="di.wang" created="Tue, 8 Apr 2014 19:18:42 +0000"  >&lt;p&gt;This probably will be fixed by patch series &lt;a href=&quot;http://review.whamcloud.com/#/c/9699/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/9699/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="81215" author="paf" created="Tue, 8 Apr 2014 19:20:13 +0000"  >&lt;p&gt;Just a quick note - Without any deeper investigation, this reminds me strongly of:&lt;br/&gt;
&lt;a href=&quot;https://jira.hpdd.intel.com/browse/LU-4471&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://jira.hpdd.intel.com/browse/LU-4471&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="81708" author="di.wang" created="Wed, 16 Apr 2014 06:01:37 +0000"  >&lt;p&gt;If MDS unlinked an open striped directory, it needs to revalidate the layout of striped directory, so the client will be forced to revalidate the layout from the master MDT, instead of going to slave MDT directly. So it means we need LAYOUT lock for striped directory, and I will cook a patch.&lt;/p&gt;</comment>
                            <comment id="82010" author="di.wang" created="Sat, 19 Apr 2014 03:54:16 +0000"  >&lt;p&gt;&lt;a href=&quot;http://review.whamcloud.com/#/c/10025/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/10025/&lt;/a&gt;  I chose an easy way to fix it now. Though I had a directory layout lock patch, probably land it to 2.7.&lt;/p&gt;</comment>
                            <comment id="83105" author="di.wang" created="Fri, 2 May 2014 21:36:09 +0000"  >&lt;p&gt;All of fixes of readdir of stripe_dir has been merged to the fix of &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-4603&quot; title=&quot;NFS reexport leads to problems of &amp;quot;ls&amp;quot;&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-4603&quot;&gt;&lt;del&gt;LU-4603&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;http://review.whamcloud.com/#/c/9191/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#/c/9191/&lt;/a&gt; &lt;/p&gt;</comment>
                            <comment id="83106" author="jhammond" created="Fri, 2 May 2014 21:45:56 +0000"  >&lt;p&gt;Let&apos;s mark this resolved when the fix has been merged to master. That way we don&apos;t forget about it somehow. And please don&apos;t resolve it as a duplicate of &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-4603&quot; title=&quot;NFS reexport leads to problems of &amp;quot;ls&amp;quot;&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-4603&quot;&gt;&lt;del&gt;LU-4603&lt;/del&gt;&lt;/a&gt; since that issue has a completely different description.&lt;/p&gt;</comment>
                            <comment id="84694" author="jlevi" created="Thu, 22 May 2014 13:27:55 +0000"  >&lt;p&gt;Patch landed to Master. Please reopen if more work for this fix is needed.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="23071">LU-4603</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|hzwjjr:</customfieldvalue>

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