<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:44:48 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-11545] debugfs: &quot;ncheck -c&quot; does not work correctly</title>
                <link>https://jira.whamcloud.com/browse/LU-11545</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;I noticed when investigating &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11446&quot; title=&quot;ldiskfs inodes nlink mismatch with DNE&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-11446&quot;&gt;LU-11446&lt;/a&gt; that debugfs is unhappy about the file type stored in the directory (verified if the &quot;&lt;tt&gt;-c&lt;/tt&gt;&quot; option is used):&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;debugfs -c /dev/loop0
debugfs 1.44.3.wc1
debugfs: ncheck -c 164
Inode   Pathname
164     /REMOTE_PARENT_DIR/0x200000204:0x1:0x0   &amp;lt;--- BAD FILETYPE
debugfs: ls -l /REMOTE_PARENT_DIR
:
:
    164  100644 (17)      0      0       0 
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;However, it appears the same problem is true for other directories, so it is not an issue with &lt;tt&gt;REMOTE_PARENT_DIR&lt;/tt&gt;.  I suspect it is instead a problem that &lt;tt&gt;ncheck -c&lt;/tt&gt; is not masking off the &lt;tt&gt;dirdata&lt;/tt&gt; flags from the filetype.&lt;/p&gt;

&lt;p&gt;Also, it looks like the usage message for &quot;&lt;tt&gt;ls&lt;/tt&gt;&quot; is not including the &quot;&lt;tt&gt;-D&lt;/tt&gt;&quot; option to print the dirdata fields.&lt;/p&gt;</description>
                <environment></environment>
        <key id="53653">LU-11545</key>
            <summary>debugfs: &quot;ncheck -c&quot; does not work correctly</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="dongyang">Dongyang Li</assignee>
                                    <reporter username="adilger">Andreas Dilger</reporter>
                        <labels>
                            <label>e2fsprogs</label>
                    </labels>
                <created>Thu, 18 Oct 2018 21:15:25 +0000</created>
                <updated>Thu, 24 Feb 2022 03:18:01 +0000</updated>
                            <resolved>Fri, 9 Apr 2021 20:07:28 +0000</resolved>
                                    <version>Lustre 2.12.0</version>
                                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                            <comments>
                            <comment id="235122" author="adilger" created="Thu, 18 Oct 2018 22:05:48 +0000"  >&lt;p&gt;There is a separate problem that &quot;ncheck&quot; does not return all of the links to a file, but that will be fixed in e2fsprogs-1.44.4 via commit:&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;commit 4a30e2ae7ced039189ee438065b2f656d83e7e44
Author:     Jaco Kroon &amp;lt;jaco@uls.co.za&amp;gt;
AuthorDate: Thu Aug 2 20:06:46 2018 +0200

    debugfs: fix ncheck so it handles hard links correctly
    
    Due to hard links inodes can have multiple names (except for folders),
    ncheck should find all of the names (equal to the number of links to the
    inodes, directories excepted), not names to the count of the provided
    inodes.
    
    Signed-off-by: Jaco Kroon &amp;lt;jaco@uls.co.za&amp;gt;
    Signed-off-by: Theodore Ts&apos;o &amp;lt;tytso@mit.edu&amp;gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="235133" author="dongyang" created="Fri, 19 Oct 2018 03:32:15 +0000"  >&lt;p&gt;I just tested with the old 1.42.13-wc6 seems the problem is worse:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
debugfs 1.42.13.wc6 (05-Feb-2017)
debugfs:&#160; ncheck -c 1048587
Inode Pathname1048587 /ROOT/testdir/1&#160; &amp;lt;--- BAD FILETYPE
Segmentation fault
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;ideally the fix and ls -D option along with man page changes should be part of the dirdata patch,&lt;/p&gt;

&lt;p&gt;should we rebase to 1.44.4 to include 4a30e2ae7ced039189ee438065b2f656d83e7e44 also we can drop&lt;/p&gt;

&lt;p&gt;fddc423dc6353552772969d70cec08e8378d8e57&#160;Fix compile error and warnings for old gcc versions which got into 1.44.4? The dirdata patch can be fixed during the rebase.&lt;/p&gt;</comment>
                            <comment id="235143" author="adilger" created="Fri, 19 Oct 2018 07:54:45 +0000"  >&lt;p&gt;Rebasing to 1.44.4 would also be good, and including the fix into the dirdata patch would also be good.&lt;/p&gt;</comment>
                            <comment id="235145" author="dongyang" created="Fri, 19 Oct 2018 08:38:16 +0000"  >&lt;p&gt;Just created master-lustre-test branch again, it&apos;s the 1.44.4 with the fixed up dirdata patch and everything else.&lt;/p&gt;

&lt;p&gt;make fullcheck looks good.&lt;/p&gt;</comment>
                            <comment id="236306" author="gerrit" created="Mon, 5 Nov 2018 06:00:16 +0000"  >&lt;p&gt;Li Dongyang (dongyangli@ddn.com) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/33574&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/33574&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11545&quot; title=&quot;debugfs: &amp;quot;ncheck -c&amp;quot; does not work correctly&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-11545&quot;&gt;&lt;del&gt;LU-11545&lt;/del&gt;&lt;/a&gt; debugfs: mask off dir_data flags for ncheck&lt;br/&gt;
Project: tools/e2fsprogs&lt;br/&gt;
Branch: master-lustre&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: b3c19d01c64ab6046d28a671d33d7e2ddb40387c&lt;/p&gt;</comment>
                            <comment id="236308" author="dongyang" created="Mon, 5 Nov 2018 06:02:58 +0000"  >&lt;p&gt;I&apos;ve noticed a bunch of patches on gerrit for master-lustre, so let&apos;s also track the patches for master-lustre branch. I will note which patches are needed when we move the 1.44.4 or when 1.44.5 is released.&lt;/p&gt;</comment>
                            <comment id="236717" author="gerrit" created="Fri, 9 Nov 2018 07:05:45 +0000"  >&lt;p&gt;Andreas Dilger (adilger@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/33574/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/33574/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11545&quot; title=&quot;debugfs: &amp;quot;ncheck -c&amp;quot; does not work correctly&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-11545&quot;&gt;&lt;del&gt;LU-11545&lt;/del&gt;&lt;/a&gt; debugfs: mask off dir_data flags for ncheck&lt;br/&gt;
Project: tools/e2fsprogs&lt;br/&gt;
Branch: master-lustre&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 97a5284dec2336fef87482ba3509c7ba6353c678&lt;/p&gt;</comment>
                            <comment id="298435" author="adilger" created="Fri, 9 Apr 2021 20:07:28 +0000"  >&lt;p&gt;This was fixed in 1.44.3-wc1&lt;/p&gt;</comment>
                            <comment id="327210" author="gerrit" created="Thu, 24 Feb 2022 03:18:01 +0000"  >&lt;p&gt;&quot;Andreas Dilger &amp;lt;adilger@whamcloud.com&amp;gt;&quot; merged in patch &lt;a href=&quot;https://review.whamcloud.com/44388/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/44388/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-11545&quot; title=&quot;debugfs: &amp;quot;ncheck -c&amp;quot; does not work correctly&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-11545&quot;&gt;&lt;del&gt;LU-11545&lt;/del&gt;&lt;/a&gt; debugfs: allow &amp;lt;inode&amp;gt; for ncheck&lt;br/&gt;
Project: tools/e2fsprogs&lt;br/&gt;
Branch: master-lustre&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: b15a0ad2fb8703c87dedcf0b2af26e3e750bcb76&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="53452">LU-11446</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="53440">LU-11440</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|i004j3:</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>