<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:23:28 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-2231] ZFS OSD not setting dnode parent field</title>
                <link>https://jira.whamcloud.com/browse/LU-2231</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;File foo created from a lustre client:&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;Object  lvl   iblk   dblk  dsize  lsize   %full  type
   197    1    16K   128K     1K   128K    0.00  ZFS plain file
                                    192   bonus  System attributes
    dnode flags: USED_BYTES USERUSED_ACCOUNTED SPILL_BLKPTR
    dnode maxblkid: 0
    path    ???&amp;lt;object#197&amp;gt;
    uid     840000038
    gid     840000038
    atime   Fri Mar 30 01:51:12 2012
    mtime   Fri Mar 30 01:51:23 2012
    ctime   Fri Mar 30 01:51:23 2012
    crtime  Fri Mar 30 01:51:12 2012
    gen     1015
    mode    100644
    size    0
    parent  0
    links   1
    pflags  0
    rdev    0x0000000000000000
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;It appears that the SA_ZPL_PARENT() is used in several places to process directories (e.g. avoiding circular directory references), so it definitely needs to be set for directories.  It also seems to be set for regular files, but it is difficult to determine if it is required or not.&lt;/p&gt;

&lt;p&gt;Since there is only a single parent directory field, we should determine what the behaviour of the parent field is for hard links and renames:&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;mkdir a b
ls -li       # get inode numbers
zdb {check parent} .
touch a/foo
zdb {check parent} a/foo
ln a/foo b/bar
zdb {check parent} b/bar
rm {link from current parent}
zdb {check parent of other link}

touch a/baz
zdb {check parent} a/baz
mv a/baz b/baz
zdb {check parent} b/baz
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I suspect that the parent will be updated on rename (it would have to be for directories), but I&apos;m unsure what will happen if the current parent link will be dropped.  I suspect it will be set to 0.&lt;/p&gt;</description>
                <environment></environment>
        <key id="13804">LU-2231</key>
            <summary>ZFS OSD not setting dnode parent field</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.whamcloud.com/images/icons/priorities/major.svg">Major</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="3">Duplicate</resolution>
                                        <assignee username="tappro">Mikhail Pershin</assignee>
                                    <reporter username="adilger">Andreas Dilger</reporter>
                        <labels>
                    </labels>
                <created>Fri, 30 Mar 2012 10:05:54 +0000</created>
                <updated>Fri, 19 Apr 2013 20:41:36 +0000</updated>
                            <resolved>Thu, 14 Mar 2013 14:01:48 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                            <comments>
                            <comment id="32917" author="johann" created="Fri, 30 Mar 2012 10:11:12 +0000"  >&lt;p&gt;Andreas, isn&apos;t this bug the same as ORI-610? Or maybe you wanted to focus on the parent field in this one?&lt;/p&gt;</comment>
                            <comment id="32929" author="adilger" created="Fri, 30 Mar 2012 11:27:56 +0000"  >&lt;p&gt;Sorry, I thought &quot;clone&quot; would include the comments.  This one is only for the parent field.&lt;/p&gt;</comment>
                            <comment id="33535" author="johann" created="Thu, 5 Apr 2012 11:18:12 +0000"  >&lt;p&gt;Reassign to Mike as per Ian.&lt;/p&gt;</comment>
                            <comment id="54015" author="bzzz" created="Thu, 14 Mar 2013 10:18:25 +0000"  >&lt;p&gt;I think this has been fixed in master yet.&lt;/p&gt;</comment>
                            <comment id="54036" author="adilger" created="Thu, 14 Mar 2013 14:01:48 +0000"  >&lt;p&gt;Fixed by Alex as part of &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-2449&quot; title=&quot;ZFS osd to fix . and .. handling&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-2449&quot;&gt;&lt;del&gt;LU-2449&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="16879">LU-2449</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_10070" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Project</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10031"><![CDATA[Orion]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10390" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hzuwqn:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2966</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10050" key="com.pyxis.greenhopper.jira:greenhopper-releasedmultiversionhistory">
                        <customfieldname>Release Version History</customfieldname>
                        <customfieldvalues>
                            
                        </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>
                                                                                                                                                    <customfield id="customfield_10002" key="com.atlassian.jira.plugin.system.customfieldtypes:float">
                        <customfieldname>Story Points</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        </customfields>
    </item>
</channel>
</rss>