<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 01:56:09 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-5978] Remove migration of old admin quota files</title>
                <link>https://jira.whamcloud.com/browse/LU-5978</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;Lustre 2.4 added migration of old admin quota files in Linux quota file v2 format into the new quota global indexes in IAM format. Lustre 2.8, tag 2.7.53 and above, no longer maintains this migration. If we do not want to continue with migration of old admin quota files, then the following code can be removed. If we want to continue with the migration, we need to modify the following code.&lt;/p&gt;

&lt;p&gt;In file lustre/osd-ldiskfs/osd_quota.c, the following routines will no longer defined:&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;#if LUSTRE_VERSION_CODE &amp;lt; OBD_OCD_VERSION(2, 7, 53, 0)
/* Following code is used to migrate old admin quota files (in Linux quota
 * file v2 format) into the new quota global indexes (in IAM format). */

/* copied from osd_it_acct_get(), only changed the &apos;type&apos; to -1 */
static int osd_it_admin_get(const struct lu_env *env, struct dt_it *di,
			    const struct dt_key *key)
{
&#8230;
}

static int osd_it_admin_load(const struct lu_env *env,
			     const struct dt_it *di, __u64 hash)
{
	int rc;
	ENTRY;

	rc = osd_it_admin_get(env, (struct dt_it *)di,
			      (const struct dt_key *)&amp;amp;hash);
	RETURN(rc);
}

static int osd_it_admin_rec(const struct lu_env *env,
			    const struct dt_it *di,
			    struct dt_rec *dtrec, __u32 attr)
{
&#8230;
}

/* copied from osd_it_acct_next(), only changed the &apos;type&apos; to -1 */
static int osd_it_admin_next(const struct lu_env *env, struct dt_it *di)
{
&#8230;
}

const struct dt_index_operations osd_admin_index_ops = {
&#8230;
};

static int convert_quota_file(const struct lu_env *env,
			      struct dt_object *old, struct dt_object *new,
			      bool isblk)
{
&#8230;
}

/* Nobdy else can access the global index now, it&apos;s safe to truncate and
 * reinitialize it */
static int truncate_quota_index(const struct lu_env *env, struct dt_object *dt,
				const struct dt_index_features *feat)
{
&#8230;
}

static int set_quota_index_version(const struct lu_env *env,
				   struct dt_object *dt,
				   dt_obj_version_t version)
{
&#8230;
}

int osd_quota_migration(const struct lu_env *env, struct dt_object *dt,
			const struct dt_index_features *feat)
{
&#8230;
}
#endif /* LUSTRE_VERSION_CODE &amp;lt; OBD_OCD_VERSION(2, 7, 53, 0) */
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;


&lt;p&gt;Also, in file lustre/osd-ldiskfs/osd_quota_fmt.c, quota_read_blk():&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;#if LUSTRE_VERSION_CODE &amp;lt; OBD_OCD_VERSION(2, 7, 53, 0)
	/* type is set as -1 when reading old admin quota file */
	if (type != USRQUOTA &amp;amp;&amp;amp; type != GRPQUOTA) {
		struct lu_buf	lu_buffer;
		loff_t		pos;

		lu_buffer.lb_buf = buf;
		lu_buffer.lb_len = LUSTRE_DQBLKSIZE;
		pos = blk &amp;lt;&amp;lt; LUSTRE_DQBLKSIZE_BITS;

		ret = dt_record_read(env, &amp;amp;obj-&amp;gt;oo_dt, &amp;amp;lu_buffer, &amp;amp;pos);

		if (ret == 0)
			ret = LUSTRE_DQBLKSIZE;
		else if (ret == -EBADR || ret == -EFAULT)
			ret = 0;
		RETURN(ret);
	}
#else
#warning &quot;remove old quota compatibility code&quot;
#endif
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="27785">LU-5978</key>
            <summary>Remove migration of old admin quota files</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="3">Duplicate</resolution>
                                        <assignee username="niu">Niu Yawei</assignee>
                                    <reporter username="jamesanunez">James Nunez</reporter>
                        <labels>
                            <label>quota</label>
                    </labels>
                <created>Wed, 3 Dec 2014 23:35:30 +0000</created>
                <updated>Tue, 11 Aug 2015 06:57:07 +0000</updated>
                            <resolved>Tue, 11 Aug 2015 06:57:07 +0000</resolved>
                                    <version>Lustre 2.8.0</version>
                                    <fixVersion>Lustre 2.8.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                            <comments>
                            <comment id="123820" author="adilger" created="Tue, 11 Aug 2015 05:40:04 +0000"  >&lt;p&gt;Niu, is this code also removed from master?&lt;/p&gt;</comment>
                            <comment id="123822" author="niu" created="Tue, 11 Aug 2015 06:57:07 +0000"  >&lt;p&gt;Yes, this is removed from master in &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-6617&quot; title=&quot;Remove quota migration code&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-6617&quot;&gt;&lt;del&gt;LU-6617&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                            <outwardlinks description="is related to ">
                                        <issuelink>
            <issuekey id="15709">LU-1842</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|hzx1un:</customfieldvalue>

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