<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:26:14 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-2561] Newly created file is same size as directory</title>
                <link>https://jira.whamcloud.com/browse/LU-2561</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;We have a subdirectory where any newly created files, e.g. &quot;touch newfile&quot;, is created with a file size that matches the size of the directory, as listed in &quot;ls -la .&quot;.&lt;/p&gt;

&lt;p&gt;I&apos;m not sure yet what is specially about this directory.  I can&apos;t reproduce the problem in directories that I just &quot;mkdir&quot; myself.&lt;/p&gt;

&lt;p&gt;However, if &quot;cp -a&quot; the problem subdirectory somewhere else in the filesystem, I AM able to then recreate the problem there.  In the original problem directory, the directory size is 10720, and any newly created file is 10720 in size.  In one copy that I made, the directory size is 9728 bytes, and any newly created files are 9728 bytes.&lt;/p&gt;

&lt;p&gt;Very strange.  I&apos;m not yet sure what is special about the directory contents that makes it able to trigger this bug.&lt;/p&gt;

&lt;p&gt;I am able to read the files, and they just contain zeroes.&lt;/p&gt;</description>
                <environment>Lustre 2.3.54-2chaos, 2.3.57-2chaos. (github.com/chaos/lustre)  ZFS OSTs.&lt;br/&gt;
</environment>
        <key id="17066">LU-2561</key>
            <summary>Newly created file is same size as directory</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="laisiyao">Lai Siyao</assignee>
                                    <reporter username="morrone">Christopher Morrone</reporter>
                        <labels>
                            <label>MB</label>
                            <label>sequoia</label>
                    </labels>
                <created>Wed, 2 Jan 2013 20:39:02 +0000</created>
                <updated>Tue, 4 Jul 2017 19:24:11 +0000</updated>
                            <resolved>Mon, 28 Jan 2013 19:12:43 +0000</resolved>
                                                    <fixVersion>Lustre 2.4.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>5</watches>
                                                                            <comments>
                            <comment id="49859" author="morrone" created="Wed, 2 Jan 2013 20:45:28 +0000"  >&lt;p&gt;Ned Bass came through with a reproducer!&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;Found a reproducer.  Seems to be related to having a system.posix_acl_default xattr.

# grove530 /p/lstest/bass6 &amp;gt; mkdir test
# grove530 /p/lstest/bass6 &amp;gt; cd test
# grove530 /p/lstest/bass6/test &amp;gt; getfacl --access . | setfacl -d -M- .
# grove530 /p/lstest/bass6/test &amp;gt; touch x
# grove530 /p/lstest/bass6/test &amp;gt; ls -al
total 12
drwx------+ 2 root  root  5632 Jan  2 17:32 .
drwx------+ 3 bass6 bass6 5632 Jan  2 17:32 ..
-rw-------  1 root  root  5632 Jan  2 17:32 x
# grove530 /p/lstest/bass6/test &amp;gt; getfattr -d -m. .
# file: .
system.posix_acl_default=0sAgAAAAEABwD/////BAAAAP////8gAAAA/////w==
[cut]
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                            <comment id="49864" author="pjones" created="Thu, 3 Jan 2013 01:51:40 +0000"  >&lt;p&gt;Lai&lt;/p&gt;

&lt;p&gt;Could you please look into this one?&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;

&lt;p&gt;Peter&lt;/p&gt;</comment>
                            <comment id="49900" author="nedbass" created="Thu, 3 Jan 2013 14:52:04 +0000"  >&lt;p&gt;I verified that this occurs with both ldiskfs and ZFS backends.&lt;/p&gt;</comment>
                            <comment id="50001" author="laisiyao" created="Sat, 5 Jan 2013 00:45:37 +0000"  >&lt;p&gt;The cause is that mdd_declare_create() mistakenly declare attr set on child when default acl exists for parent, instead this should be done for parent and when child is directory only.&lt;/p&gt;

&lt;p&gt;I&apos;ll commit a fix later.&lt;/p&gt;</comment>
                            <comment id="50008" author="laisiyao" created="Sat, 5 Jan 2013 02:38:40 +0000"  >&lt;p&gt;Patch is on &lt;a href=&quot;http://review.whamcloud.com/#change,4956&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/#change,4956&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="50937" author="morrone" created="Mon, 21 Jan 2013 16:02:10 +0000"  >&lt;p&gt;Patch works for us.  Just needs landing at this point.  Removing &quot;topsequoia&quot; label.&lt;/p&gt;</comment>
                            <comment id="51348" author="morrone" created="Mon, 28 Jan 2013 13:26:42 +0000"  >&lt;p&gt;Patch &lt;a href=&quot;http://review.whamcloud.com/4956&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;4956&lt;/a&gt; landed on master.  Ticket can be closed.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="46691">LU-9663</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                            <subtask id="17099">LU-2583</subtask>
                    </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|hzvehb:</customfieldvalue>

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