<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:26: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-16335] &quot;lfs rm_entry&quot; failed to remove broken directories</title>
                <link>https://jira.whamcloud.com/browse/LU-16335</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;In &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16159&quot; title=&quot;remove update logs after recovery abort&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16159&quot;&gt;LU-16159&lt;/a&gt;, update logs are canceled upon recovery abort, which may leave some directories broken, and can&apos;t be removed by &quot;lfs rm_entry&quot;. This is because &quot;lfs rm_entry&quot; failed some sanity check, but it will leave end-user a broken filesystem without any way to fix.&lt;/p&gt;</description>
                <environment></environment>
        <key id="73364">LU-16335</key>
            <summary>&quot;lfs rm_entry&quot; failed to remove broken directories</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="laisiyao">Lai Siyao</assignee>
                                    <reporter username="laisiyao">Lai Siyao</reporter>
                        <labels>
                    </labels>
                <created>Wed, 23 Nov 2022 07:04:28 +0000</created>
                <updated>Mon, 8 Jan 2024 03:33:17 +0000</updated>
                            <resolved>Thu, 19 Jan 2023 20:48:25 +0000</resolved>
                                                    <fixVersion>Lustre 2.16.0</fixVersion>
                    <fixVersion>Lustre 2.15.3</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>8</watches>
                                                                            <comments>
                            <comment id="355207" author="laisiyao" created="Tue, 6 Dec 2022 01:17:22 +0000"  >&lt;p&gt;config.log show this:&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;configure:39672: result: no
configure:39682: checking if ioctl IOC_REMOVE_ENTRY&apos; is supported
configure:39696: gcc -c -g -O2 -Werror -I/home/laisiyao/lustre/lnet/include/uapi -I/home/laisiyao/lustre/lustre/include/uapi -I/home/laisiyao/lustre/libcfs/include -I/home/laisiyao/lustre/lnet/utils/ -I/home/laisiyao/lustre/lustre/include &#160;conftest.c &amp;gt;&amp;amp;5
In file included from /home/laisiyao/lustre/lustre/include/uapi/linux/lustre/lustre_idl.h:74,
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;from /home/laisiyao/lustre/lustre/include/uapi/linux/lustre/lustre_ioctl.h:34,
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;from conftest.c:253:
/home/laisiyao/lustre/lustre/include/uapi/linux/lustre/lustre_user.h: In function &apos;changelog_rec_sname&apos;:
/home/laisiyao/lustre/lustre/include/uapi/linux/lustre/lustre_user.h:2012:9: error: implicit declaration of function &apos;strchrnul&apos;; did you mean &apos;strchr&apos;? [-Werror=implicit-function-declaration]
&#160; return strchrnul(changelog_rec_name(rec), &apos;\0&apos;) + 1;
&#160; &#160; &#160; &#160; &#160;^~~~~~~~~
&#160; &#160; &#160; &#160; &#160;strchr
/home/laisiyao/lustre/lustre/include/uapi/linux/lustre/lustre_user.h:2012:50: error: returning &apos;int&apos; from a function with return type &apos;char *&apos; makes pointer from integer without a cast [-Werror=int-conversion]
&#160; return strchrnul(changelog_rec_name(rec), &apos;\0&apos;) + 1;
&#160; &#160; &#160; &#160; &#160;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
cc1: all warnings being treated as errors
configure:39696: $? = 1
configure: failed program was:
 &lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This check is from &lt;a href=&quot;https://review.whamcloud.com/39207&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/39207&lt;/a&gt;, and it causes &quot;lfs rm_entry&quot; always returns -ENOTSUP, which should be the cause of broken directory unlink fail.&lt;/p&gt;

&lt;p&gt;strchrnul() needs define _GNU_SOURCE, adding it in the check can solve the issue.&lt;/p&gt;</comment>
                            <comment id="355449" author="gerrit" created="Wed, 7 Dec 2022 02:10:47 +0000"  >&lt;p&gt;&quot;Lai Siyao &amp;lt;lai.siyao@whamcloud.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/49328&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/49328&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16335&quot; title=&quot;&amp;quot;lfs rm_entry&amp;quot; failed to remove broken directories&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16335&quot;&gt;&lt;del&gt;LU-16335&lt;/del&gt;&lt;/a&gt; build: strchrnul() needs define _GNU_SOURCE&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: f5f31fa51477c7091a5af7fbb95382cd87d97938&lt;/p&gt;</comment>
                            <comment id="355450" author="gerrit" created="Wed, 7 Dec 2022 02:56:37 +0000"  >&lt;p&gt;&quot;Lai Siyao &amp;lt;lai.siyao@whamcloud.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/49329&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/49329&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16335&quot; title=&quot;&amp;quot;lfs rm_entry&amp;quot; failed to remove broken directories&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16335&quot;&gt;&lt;del&gt;LU-16335&lt;/del&gt;&lt;/a&gt; mdt: skip child check for rm_entry&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 2cc5c2bfed10f2d63ee767cf90d77fb16e08e366&lt;/p&gt;</comment>
                            <comment id="355486" author="gerrit" created="Wed, 7 Dec 2022 13:05:54 +0000"  >&lt;p&gt;&lt;del&gt;&quot;Lai Siyao &amp;lt;lai.siyao@whamcloud.com&amp;gt;&quot; uploaded a new patch:&lt;/del&gt; &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/49334&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/49334&lt;/a&gt;&lt;br/&gt;
&lt;del&gt;Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16335&quot; title=&quot;&amp;quot;lfs rm_entry&amp;quot; failed to remove broken directories&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16335&quot;&gt;&lt;del&gt;LU-16335&lt;/del&gt;&lt;/a&gt; header: implement native strchrnul()&lt;/del&gt;&lt;br/&gt;
&lt;del&gt;Project: fs/lustre-release&lt;/del&gt;&lt;br/&gt;
&lt;del&gt;Branch: master&lt;/del&gt;&lt;br/&gt;
&lt;del&gt;Current Patch Set: 1&lt;/del&gt;&lt;br/&gt;
&lt;del&gt;Commit: bc03636059c5c2dc9a0f1030af83309aedc94ac0&lt;/del&gt;&lt;/p&gt;</comment>
                            <comment id="355487" author="gerrit" created="Wed, 7 Dec 2022 13:05:55 +0000"  >&lt;p&gt;&quot;Lai Siyao &amp;lt;lai.siyao@whamcloud.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/49335&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/49335&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16335&quot; title=&quot;&amp;quot;lfs rm_entry&amp;quot; failed to remove broken directories&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16335&quot;&gt;&lt;del&gt;LU-16335&lt;/del&gt;&lt;/a&gt; test: add fail_abort_cleanup()&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 243ffa00d0a4353c78ee8b73bdce0e1c60bdc5da&lt;/p&gt;</comment>
                            <comment id="355512" author="simmonsja" created="Wed, 7 Dec 2022 15:07:27 +0000"  >&lt;p&gt;So we disable various test for the native client since lfs rm_dentry was removed upstream. Its considered a security risk. Does this mean lfsck can repair the file system?&lt;/p&gt;</comment>
                            <comment id="355516" author="laisiyao" created="Wed, 7 Dec 2022 15:24:32 +0000"  >&lt;p&gt;In theory lfsck should fix these inconsistencies, but it&apos;s not fully tested, and &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16159&quot; title=&quot;remove update logs after recovery abort&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16159&quot;&gt;LU-16159&lt;/a&gt; test result shows some are not fixed, and it will be addressed in &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16336&quot; title=&quot;LFSCK should fix inconsistencies caused by recovery abort&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16336&quot;&gt;LU-16336&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="357011" author="gerrit" created="Tue, 20 Dec 2022 16:32:08 +0000"  >&lt;p&gt;&quot;Oleg Drokin &amp;lt;green@whamcloud.com&amp;gt;&quot; merged in patch &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/49328/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/49328/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16335&quot; title=&quot;&amp;quot;lfs rm_entry&amp;quot; failed to remove broken directories&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16335&quot;&gt;&lt;del&gt;LU-16335&lt;/del&gt;&lt;/a&gt; build: remove _GNU_SOURCE dependency in lustre_user.h&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: efc5c8d4de60d394344506f7cfb188eaf04a4bac&lt;/p&gt;</comment>
                            <comment id="358215" author="gerrit" created="Sat, 7 Jan 2023 07:57:00 +0000"  >&lt;p&gt;&quot;Oleg Drokin &amp;lt;green@whamcloud.com&amp;gt;&quot; merged in patch &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/49335/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/49335/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16335&quot; title=&quot;&amp;quot;lfs rm_entry&amp;quot; failed to remove broken directories&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16335&quot;&gt;&lt;del&gt;LU-16335&lt;/del&gt;&lt;/a&gt; test: add fail_abort_cleanup()&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: d5fe41a02a6ed57bcbfc4a4c695bb509c9c7c313&lt;/p&gt;</comment>
                            <comment id="359679" author="gerrit" created="Thu, 19 Jan 2023 15:31:52 +0000"  >&lt;p&gt;&quot;Oleg Drokin &amp;lt;green@whamcloud.com&amp;gt;&quot; merged in patch &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/49329/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/49329/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16335&quot; title=&quot;&amp;quot;lfs rm_entry&amp;quot; failed to remove broken directories&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16335&quot;&gt;&lt;del&gt;LU-16335&lt;/del&gt;&lt;/a&gt; mdt: skip target check for rm_entry&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: ae98c5fdaaf37daeb328b7110cbcf42754752c9d&lt;/p&gt;</comment>
                            <comment id="359751" author="pjones" created="Thu, 19 Jan 2023 20:48:25 +0000"  >&lt;p&gt;Landed for 2.16&lt;/p&gt;</comment>
                            <comment id="360452" author="gerrit" created="Thu, 26 Jan 2023 03:14:44 +0000"  >&lt;p&gt;&quot;Jian Yu &amp;lt;yujian@whamcloud.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/49776&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/49776&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16335&quot; title=&quot;&amp;quot;lfs rm_entry&amp;quot; failed to remove broken directories&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16335&quot;&gt;&lt;del&gt;LU-16335&lt;/del&gt;&lt;/a&gt; build: remove _GNU_SOURCE dependency in lustre_user.h&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_15&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 11d59e1f9407f8545172b00a23a34385366b4fe6&lt;/p&gt;</comment>
                            <comment id="365217" author="gerrit" created="Wed, 8 Mar 2023 06:44:22 +0000"  >&lt;p&gt;&quot;Oleg Drokin &amp;lt;green@whamcloud.com&amp;gt;&quot; merged in patch &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/49776/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/49776/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16335&quot; title=&quot;&amp;quot;lfs rm_entry&amp;quot; failed to remove broken directories&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16335&quot;&gt;&lt;del&gt;LU-16335&lt;/del&gt;&lt;/a&gt; build: remove _GNU_SOURCE dependency in lustre_user.h&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_15&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 8a8747d319aa3f91674b156c79d44cbc092ee175&lt;/p&gt;</comment>
                            <comment id="374630" author="gerrit" created="Tue, 6 Jun 2023 15:40:35 +0000"  >&lt;p&gt;&quot;Etienne AUJAMES &amp;lt;eaujames@ddn.com&amp;gt;&quot; uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/c/fs/lustre-release/+/51237&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/c/fs/lustre-release/+/51237&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-16335&quot; title=&quot;&amp;quot;lfs rm_entry&amp;quot; failed to remove broken directories&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-16335&quot;&gt;&lt;del&gt;LU-16335&lt;/del&gt;&lt;/a&gt; test: add fail_abort_cleanup()&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: b2_15&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 2e35cdf5abe712084351d92f2b4feb99b98da08c&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10120">
                    <name>Blocker</name>
                                                                <inwardlinks description="is blocked by">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="73365">LU-16336</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="72350">LU-16159</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="73627">LU-16398</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|i036d3:</customfieldvalue>

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