<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 02:33: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-10260] ARCHIVE ID range</title>
                <link>https://jira.whamcloud.com/browse/LU-10260</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;According to the lustre manual, ARCHIVE ID must be in the range of 1 to 32.&lt;br/&gt;
On the other hand, the code limits ARCHIVE ID to less than 32.&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;# lhsmtool_posix -A 32
1461110663.550681 lhsmtool_posix[5792]: archive number must be lessthan 32: Argument list too long (7)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Which is correct?&lt;/p&gt;</description>
                <environment></environment>
        <key id="36261">LU-10260</key>
            <summary>ARCHIVE ID range</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="thomas.stibor">Thomas Stibor</assignee>
                                    <reporter username="takamura">Tatsushi Takamura</reporter>
                        <labels>
                            <label>HSM</label>
                            <label>patch</label>
                    </labels>
                <created>Wed, 20 Apr 2016 00:49:35 +0000</created>
                <updated>Sat, 3 Mar 2018 14:06:19 +0000</updated>
                            <resolved>Sat, 3 Mar 2018 14:06:19 +0000</resolved>
                                                    <fixVersion>Lustre 2.11.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>5</watches>
                                                                            <comments>
                            <comment id="214130" author="thomas.stibor" created="Mon, 20 Nov 2017 14:40:08 +0000"  >&lt;p&gt;&lt;tt&gt;The maximum ARCHIVE ID is defined as&lt;/tt&gt;&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;#define LL_HSM_MAX_ARCHIVE (sizeof(__u32) * 8) = 32


&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;and checked for instance as follows&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;&lt;span class=&quot;code-comment&quot;&gt;/* Detect out-of range archive id */&lt;/span&gt;
 &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (hss-&amp;gt;hss_archive_id &amp;gt; LL_HSM_MAX_ARCHIVE) {
     CDEBUG(D_HSM, &lt;span class=&quot;code-quote&quot;&gt;&quot;archive id %u exceeds maximum %zu.\n&quot;&lt;/span&gt;,
     hss-&amp;gt;hss_archive_id, LL_HSM_MAX_ARCHIVE);
     GOTO(out_unlock, rc = -EINVAL);
 }

&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;or&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;&lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (archive_count &amp;gt; LL_HSM_MAX_ARCHIVE) {
                llapi_err_noerrno(LLAPI_MSG_ERROR, &lt;span class=&quot;code-quote&quot;&gt;&quot;%d requested when maximum &quot;&lt;/span&gt;
                                  &lt;span class=&quot;code-quote&quot;&gt;&quot;of %zu archives supported&quot;&lt;/span&gt;, archive_count,
                                  LL_HSM_MAX_ARCHIVE);
                &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; -EINVAL;
        }

&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;so the range is from 1 to 32. The archive ID = 0 is reserved to specify in low level calls that &lt;em&gt;no&lt;/em&gt; archive identifier change is done.&lt;/p&gt;</comment>
                            <comment id="214133" author="jgmitter" created="Mon, 20 Nov 2017 14:46:59 +0000"  >&lt;p&gt;So if I understand correctly, there is no manual bug correct?&lt;/p&gt;</comment>
                            <comment id="214136" author="thomas.stibor" created="Mon, 20 Nov 2017 15:16:28 +0000"  >&lt;p&gt;It looks like the problem is in the&#160;lhsmtool_posix. I think one can fix that as follows:&#160;&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/utils/lhsmtool_posix.c b/lustre/utils/lhsmtool_posix.c
index 804dbe7..fc078d5 100644
--- a/lustre/utils/lhsmtool_posix.c
+++ b/lustre/utils/lhsmtool_posix.c
@@ -88,7 +88,7 @@ struct options {
        &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;                      o_verbose;
        &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;                      o_copy_xattrs;
        &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;                      o_archive_cnt;
-       &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;                      o_archive_id[LL_HSM_MAX_ARCHIVE];
+       &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;                      o_archive_id[LL_HSM_MAX_ARCHIVE + 1];
        &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;                      o_report_int;
        unsigned &lt;span class=&quot;code-object&quot;&gt;long&lt;/span&gt; &lt;span class=&quot;code-object&quot;&gt;long&lt;/span&gt;       o_bandwidth;
        size_t                   o_chunk_size;
@@ -259,8 +259,8 @@ &lt;span class=&quot;code-keyword&quot;&gt;static&lt;/span&gt; &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; ct_parseopts(&lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; argc, &lt;span class=&quot;code-object&quot;&gt;char&lt;/span&gt; * &lt;span class=&quot;code-keyword&quot;&gt;const&lt;/span&gt; *argv)
                                long_opts, NULL)) != -1) {
                &lt;span class=&quot;code-keyword&quot;&gt;switch&lt;/span&gt; (c) {
                &lt;span class=&quot;code-keyword&quot;&gt;case&lt;/span&gt; &lt;span class=&quot;code-quote&quot;&gt;&apos;A&apos;&lt;/span&gt;:
-                       &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; ((opt.o_archive_cnt &amp;gt;= LL_HSM_MAX_ARCHIVE) ||
-                           (atoi(optarg) &amp;gt;= LL_HSM_MAX_ARCHIVE)) {
+                       &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; ((opt.o_archive_cnt &amp;gt; LL_HSM_MAX_ARCHIVE) ||
+                           (atoi(optarg) &amp;gt; LL_HSM_MAX_ARCHIVE)) {
                                rc = -E2BIG;
                                CT_ERROR(rc, &lt;span class=&quot;code-quote&quot;&gt;&quot;archive number must be less&quot;&lt;/span&gt;
                                         &lt;span class=&quot;code-quote&quot;&gt;&quot;than %zu&quot;&lt;/span&gt;, LL_HSM_MAX_ARCHIVE);



&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;I will submit a patch and let&apos;s see what the others are thinking about it. Just did a quick check and archive_id=32 seems to work:&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;lrh=[type=10680000 len=136 idx=1/15] fid=[0x200000401:0x16:0x0] dfid=[0x200000401:0x16:0x0] compound/cookie=0x5a0ee
145/0x5a0ee13d action=ARCHIVE archive#=32 flags=0x0 extent=0x0-0xffffffffffffffff gid=0x0 datalen=0 status=SUCCEED
data=[]
3600
uuid=31732ace-8312-ea22-3423-9d06294ce647 archive_id=32 requests=[current:0 ok:2 errors:0]

&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Cheers&lt;br/&gt;
 Thomas&lt;/p&gt;</comment>
                            <comment id="214140" author="jgmitter" created="Mon, 20 Nov 2017 15:30:40 +0000"  >&lt;p&gt;Thanks Thomas.  Based on that, let&apos;s move this ticket over to the LU project instead of LUDOC, which is for the manual only.&lt;/p&gt;</comment>
                            <comment id="214143" author="gerrit" created="Mon, 20 Nov 2017 15:49:21 +0000"  >&lt;p&gt;Thomas Stibor (t.stibor@gsi.de) uploaded a new patch: &lt;a href=&quot;https://review.whamcloud.com/30171&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/30171&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-10260&quot; title=&quot;ARCHIVE ID range&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-10260&quot;&gt;&lt;del&gt;LU-10260&lt;/del&gt;&lt;/a&gt; hsm: enable max archive_id posix copytool&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: 1&lt;br/&gt;
Commit: 24ddf1454ab01db540f96a4dc85fe95b57433a34&lt;/p&gt;</comment>
                            <comment id="222196" author="gerrit" created="Sat, 3 Mar 2018 04:29:50 +0000"  >&lt;p&gt;Oleg Drokin (oleg.drokin@intel.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/30171/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/30171/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-10260&quot; title=&quot;ARCHIVE ID range&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-10260&quot;&gt;&lt;del&gt;LU-10260&lt;/del&gt;&lt;/a&gt; hsm: enable max archive_id posix copytool&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: c98a51f2cebd3417956f5823a0531311e2895028&lt;/p&gt;</comment>
                            <comment id="222229" author="pjones" created="Sat, 3 Mar 2018 14:06:19 +0000"  >&lt;p&gt;Landed for 2.11&lt;/p&gt;</comment>
                    </comments>
                    <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="10040"><![CDATA[HSM]]></customfieldvalue>

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