<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:20:13 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-8748] set block size for zfs echo object</title>
                <link>https://jira.whamcloud.com/browse/LU-8748</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;&lt;a href=&quot;https://jira.whamcloud.com/browse/LU-7906&quot; title=&quot;osd-zfs should not set blocksize on MDT&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-7906&quot;&gt;&lt;del&gt;LU-7906&lt;/del&gt;&lt;/a&gt; osd: no blocksize on non-OST objects&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;diff --git a/lustre/osd-zfs/osd_object.c b/lustre/osd-zfs/osd_object.c
index fa9ec89..4079eeb 100644
--- a/lustre/osd-zfs/osd_object.c
+++ b/lustre/osd-zfs/osd_object.c
@@ -1390,8 +1390,9 @@ &lt;span class=&quot;code-keyword&quot;&gt;static&lt;/span&gt; dmu_buf_t *osd_mkreg(&lt;span class=&quot;code-keyword&quot;&gt;const&lt;/span&gt; struct lu_env *env, struct osd_object *obj,
                            struct lu_attr *la, uint64_t parent,
                            struct osd_thandle *oh)
 {
-       dmu_buf_t         *db;
-       &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;                rc;
+       &lt;span class=&quot;code-keyword&quot;&gt;const&lt;/span&gt; struct lu_fid *fid = lu_object_fid(&amp;amp;obj-&amp;gt;oo_dt.do_lu);
+       dmu_buf_t           *db;
+       &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;                  rc;
        struct osd_device *osd = osd_obj2dev(obj);

        LASSERT(S_ISREG(la-&amp;gt;la_mode));
@@ -1406,7 +1407,7 @@ &lt;span class=&quot;code-keyword&quot;&gt;static&lt;/span&gt; dmu_buf_t *osd_mkreg(&lt;span class=&quot;code-keyword&quot;&gt;const&lt;/span&gt; struct lu_env *env, struct osd_object *obj,
         * blocksize is selected based on the file size rather than the
         * making broad assumptions based on the osd type.
         */
-       &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (!lu_device_is_md(osd2lu_dev(osd))) {
+       &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; ((fid_is_idif(fid) || fid_is_norm(fid)) &amp;amp;&amp;amp; osd-&amp;gt;od_is_ost) {
                rc = -dmu_object_set_blocksize(osd-&amp;gt;od_os, db-&amp;gt;db_object,
                                               osd-&amp;gt;od_max_blksz, 0, oh-&amp;gt;ot_tx);
                &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (unlikely(rc)) {
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Actually, the block size should be set on echo object as well.&lt;/p&gt;</description>
                <environment></environment>
        <key id="40973">LU-8748</key>
            <summary>set block size for zfs echo object</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="niu">Niu Yawei</assignee>
                                    <reporter username="niu">Niu Yawei</reporter>
                        <labels>
                    </labels>
                <created>Mon, 24 Oct 2016 04:36:27 +0000</created>
                <updated>Mon, 6 Mar 2017 16:13:36 +0000</updated>
                            <resolved>Sat, 29 Oct 2016 00:24:33 +0000</resolved>
                                                    <fixVersion>Lustre 2.9.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                            <comments>
                            <comment id="170697" author="gerrit" created="Mon, 24 Oct 2016 04:43:58 +0000"  >&lt;p&gt;Niu Yawei (yawei.niu@intel.com) uploaded a new patch: &lt;a href=&quot;http://review.whamcloud.com/23323&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/23323&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-8748&quot; title=&quot;set block size for zfs echo object&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-8748&quot;&gt;&lt;del&gt;LU-8748&lt;/del&gt;&lt;/a&gt; osd-zfs: set block size of echo object&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: eaf9d24050595a91706e51b929c9fbb3d55a2520&lt;/p&gt;</comment>
                            <comment id="171678" author="gerrit" created="Fri, 28 Oct 2016 23:50:30 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;http://review.whamcloud.com/23323/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://review.whamcloud.com/23323/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-8748&quot; title=&quot;set block size for zfs echo object&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-8748&quot;&gt;&lt;del&gt;LU-8748&lt;/del&gt;&lt;/a&gt; osd-zfs: set block size of echo object&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 64191ab6bb01d909453fc318e038f80d8ef548d9&lt;/p&gt;</comment>
                            <comment id="171696" author="pjones" created="Sat, 29 Oct 2016 00:24:33 +0000"  >&lt;p&gt;Landed for 2.9&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                                        </outwardlinks>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="41106">LU-8766</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                                        </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="41136">LU-8772</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="41106">LU-8766</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|hzyt4n:</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>