<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.old.lustre.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Nirant.puntambekar</id>
	<title>Obsolete Lustre Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.old.lustre.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Nirant.puntambekar"/>
	<link rel="alternate" type="text/html" href="http://wiki.old.lustre.org/index.php?title=Special:Contributions/Nirant.puntambekar"/>
	<updated>2026-04-08T10:10:05Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.7</generator>
	<entry>
		<id>http://wiki.old.lustre.org/index.php?title=Submitting_Patches&amp;diff=11871</id>
		<title>Submitting Patches</title>
		<link rel="alternate" type="text/html" href="http://wiki.old.lustre.org/index.php?title=Submitting_Patches&amp;diff=11871"/>
		<updated>2010-10-18T15:08:46Z</updated>

		<summary type="html">&lt;p&gt;Nirant.puntambekar: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;small&amp;gt;&#039;&#039;(Updated: Dec 2009)&#039;&#039;&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;NOTICE:&#039;&#039;&#039;&#039;&#039;  A transition from CVS to Git took place on Monday, December 14.  For more information about the transition, see the [[Git Transition Notice]]. For details about how to migrate to Git, see [[Migrating to Git]].&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
When you are ready to have your patch reviewed, follow the process described below for submitting it using Bugzilla.  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;Note:&#039;&#039;&#039;&#039;&#039; It is sometimes desirable to solicit reviews of a patch on the [mailto:lustre-devel@lists.lustre.org lustre-devel] mailing list to expose the patch to a wider audience. However, this will &#039;&#039;NOT&#039;&#039; put the patch on track to being accepted into the Lustre™ repository.&lt;br /&gt;
&lt;br /&gt;
=== Submitting Patches for Review ===&lt;br /&gt;
&lt;br /&gt;
To have your changes accepted into a mainline Lustre branch, your code must follow the Lustre [[Coding Guidelines]], and be reviewed and approved by senior Lustre engineers.  Following these steps will speed up review of your changes and increase the likelihood of success:&lt;br /&gt;
&lt;br /&gt;
1. Read, complete, and return the form found at [[Media:Sun_Contributor_Agreement_1_5.pdf|Contributor Agreement]]. We cannot accept your contributions without this form. See [[Contribution_Policy|Contribution Policy]] for more information.&lt;br /&gt;
&lt;br /&gt;
2. Testing the patch is required before it can be submitted. The patch must include any new tests specific to the bug/feature. See [[Testing Lustre Code]] for specific details.  &lt;br /&gt;
&lt;br /&gt;
3. Generate a patch with &#039;&#039;diff -upN&#039;&#039;, &#039;&#039;git diff&#039;&#039;,  or &#039;&#039;git format-patch&#039;&#039;.  Please do not send other kinds of patches unless your reviewer requests them.&lt;br /&gt;
&lt;br /&gt;
The easiest command for generating a patch is:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[lustre]$ git diff {basebranch} &amp;gt; {patchname}.diff&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &#039;&#039;{basebranch}&#039;&#039; is the branch you are patching against (&#039;&#039;b1_6&#039;&#039;, &#039;&#039;b1_8&#039;&#039;, or &#039;&#039;master&#039;&#039;).  Note this patch will include committed and uncommitted changes on your branch.  If you well-defined patches with proper commit comments as described below, it is also possible to use &#039;&#039;git format-patch&#039;&#039;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[lustre]$ git format-patch {since}&lt;br /&gt;
e.g.&lt;br /&gt;
[lustre]$ git format-patch -2      # format the last 2 commits&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you are unfamiliar with this process, use &#039;&#039;git diff&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
If sending changes with &#039;&#039;git format-patch&#039;&#039; we ask that you follow our standard commit message format when making your commits, so that the patch can more easily be identified in the future.  If you are doing a rebase, you will get a chance to modify/combine your commit messages.  Commit messages for final patches should look like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
b=&amp;lt;bugno&amp;gt; &amp;lt;One-line summary of change&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Full description of change&amp;gt;&lt;br /&gt;
&lt;br /&gt;
i=&amp;lt;inspector1&amp;gt;&lt;br /&gt;
i=&amp;lt;inspector2&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you are not using git format-patch, then simply adding the above lines at the start of the submission email is enough.  If you are making a commit prior to submitting the patch for inspection, simply omit the &#039;&#039;i=&amp;lt;inspector&amp;gt;&#039;&#039; lines, and then use &#039;&#039;git commit --amend&#039;&#039; to change the commit comment after inspection is complete.&lt;br /&gt;
&lt;br /&gt;
4. Find or file a bug corresponding to your contribution in [http://bugzilla.lustre.org/ Bugzilla].  For more information about Bugzilla, see the [[Developers Guide to Bugzilla for Lustre|Developers Guide to Bugzilla]], the [https://bugzilla.lustre.org/page.cgi?id=bug-writing.html Bugzilla - Bug Writing Guidelines], or the [https://bugzilla.lustre.org/docs/html/using.html Bugzilla User Guide].&lt;br /&gt;
&lt;br /&gt;
* Provide the patch as an Attachment (click on &amp;quot;Add an Attachment&amp;quot;)&lt;br /&gt;
* Select the &amp;quot;patch&amp;quot; box.&lt;br /&gt;
** If submitting a new bug with a patch attached, follow normal bug submission procedures. The support team will assign the bug and inspections as appropriate.&lt;br /&gt;
** If working with an Lustre internal engineer, under &amp;quot;Flags&amp;quot; set the &#039;&#039;inspection&#039;&#039; flag to &amp;quot;?&amp;quot;  and copy the email address of the engineer into the adjacent &#039;&#039;Requestee:&#039;&#039; field.&lt;br /&gt;
** If you have completed testing of the patch, set the &amp;quot;acc-sm_passed_&#039;&#039;release&#039;&#039; +&amp;quot; flag for the branch(es) that passed testing.  If you have not actually run the acceptance-small.sh test script to completion (unless advised otherwise) you should describe the testing performed to date, and can optionally set the &amp;quot;more-testing_&#039;&#039;release&#039;&#039; +&amp;quot; flag.&lt;br /&gt;
** If you have not been collaborating with someone on the Lustre team and don&#039;t know who should review your work, assign the inspection to &#039;&#039;lustre-rmg-team@sun.com&#039;&#039;&lt;br /&gt;
* Click on &amp;quot;commit&amp;quot; to submit the attachment and inspection request.&lt;br /&gt;
&lt;br /&gt;
5. One or more reviewers will submit comments regarding your patch. Iterate the patch until you receive inspection approval, have passed all requested testing, or the bug is closed.&lt;br /&gt;
&lt;br /&gt;
6. Request patch landing permission by setting the &amp;quot;landing_&#039;&#039;release&#039;&#039; ?&amp;quot; flag for your patch.&lt;br /&gt;
&lt;br /&gt;
7. Once you have landing approval (as given by the branch maintainer in the form of a &amp;quot;landing_&#039;&#039;release&#039;&#039; +&amp;quot; flag on the patch, mail the patch to [mailto:lustre-gate-2x@sun.com lustre-gate-2x] for Lustre 2.x, or [mailto:lustre-gate-18@sun.com lustre-gate-18] for Lustre 1.8.  Include the bug number and reviewer in the commit message along with a concise description of the change, as stated above.&lt;/div&gt;</summary>
		<author><name>Nirant.puntambekar</name></author>
	</entry>
</feed>