<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mdadm.git/mdopen.c, branch master</title>
<subtitle>Official Fedora mdadm git repository cloned from upstream mdadm maintainer</subtitle>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/dledford/public_git/mdadm.git/'/>
<entry>
<title>Free some malloced memory that wasn't being freed.</title>
<updated>2009-10-22T00:00:56+00:00</updated>
<author>
<name>NeilBrown</name>
<email>neilb@suse.de</email>
</author>
<published>2009-10-22T00:00:56+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/dledford/public_git/mdadm.git/commit/?id=0eb26465c0a14d707ca00f4f7bcdb67bde36f706'/>
<id>0eb26465c0a14d707ca00f4f7bcdb67bde36f706</id>
<content type='text'>
As mdadm is normally a short-lived program it isn't always necessary
to free memory that was allocated, as the 'exit()' call will
automatically free everything.  But it is more obviously correct if
the 'free' is there.
So this patch add a few calls to 'free'

Signed-off-by: NeilBrown &lt;neilb@suse.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
As mdadm is normally a short-lived program it isn't always necessary
to free memory that was allocated, as the 'exit()' call will
automatically free everything.  But it is more obviously correct if
the 'free' is there.
So this patch add a few calls to 'free'

Signed-off-by: NeilBrown &lt;neilb@suse.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>mdopen: only use 'dev' as chosen name if it is a full path.</title>
<updated>2009-10-19T06:11:15+00:00</updated>
<author>
<name>NeilBrown</name>
<email>neilb@suse.de</email>
</author>
<published>2009-10-19T06:11:15+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/dledford/public_git/mdadm.git/commit/?id=5ac6db12f9f970f26b7017517789bac200631b11'/>
<id>5ac6db12f9f970f26b7017517789bac200631b11</id>
<content type='text'>
Otherwise using names like "r0" causes problem.  They are
handled sufficiently by other paths in the code.

Signed-off-by: NeilBrown &lt;neilb@suse.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Otherwise using names like "r0" causes problem.  They are
handled sufficiently by other paths in the code.

Signed-off-by: NeilBrown &lt;neilb@suse.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Update copyright dates and remove references to @cse.unsw.edu.au</title>
<updated>2009-06-02T04:35:45+00:00</updated>
<author>
<name>NeilBrown</name>
<email>neilb@suse.de</email>
</author>
<published>2009-06-02T04:35:45+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/dledford/public_git/mdadm.git/commit/?id=e736b62389a230cc427e7cf352539d1afab8f469'/>
<id>e736b62389a230cc427e7cf352539d1afab8f469</id>
<content type='text'>
Also removed 'paper' addresses.

Signed-off-by: NeilBrown &lt;neilb@suse.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Also removed 'paper' addresses.

Signed-off-by: NeilBrown &lt;neilb@suse.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>create_mddev: don't replace /dev/mdX with /dev/md/X</title>
<updated>2009-05-11T05:58:44+00:00</updated>
<author>
<name>NeilBrown</name>
<email>neilb@suse.de</email>
</author>
<published>2009-05-11T05:58:44+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/dledford/public_git/mdadm.git/commit/?id=9a40c32728dceb66bac603e96656223944b6c7d4'/>
<id>9a40c32728dceb66bac603e96656223944b6c7d4</id>
<content type='text'>
If someone creates/assemble an array called "/dev/md0", don't force
it to be "/dev/md/0".  Doing so isn't really necessary and it
likely to confuse people.

Signed-off-by: NeilBrown &lt;neilb@suse.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If someone creates/assemble an array called "/dev/md0", don't force
it to be "/dev/md/0".  Doing so isn't really necessary and it
likely to confuse people.

Signed-off-by: NeilBrown &lt;neilb@suse.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>create_dev - allow array names like mdX and /dev/mdX to appear 'numeric'</title>
<updated>2009-05-11T05:16:47+00:00</updated>
<author>
<name>NeilBrown</name>
<email>neilb@suse.de</email>
</author>
<published>2009-05-11T05:16:47+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/dledford/public_git/mdadm.git/commit/?id=d7ba0c55f07d24b51e6da1a5850d7164e9cf01d9'/>
<id>d7ba0c55f07d24b51e6da1a5850d7164e9cf01d9</id>
<content type='text'>
When choosing the minor number to use with an array, we currently base
the number of the 'name' stored in the metadata if that name is
numeric.
Extend that so that if it looks like a number md device name (/dev/md0
or just md0 or even /dev/md/0), then we use the number at the end to
suggest a minor number.

The means that if someone creates and array with "--name md0" or even
"--name /dev/md0" it will continue to do what they expect.

Signed-off-by: NeilBrown &lt;neilb@suse.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When choosing the minor number to use with an array, we currently base
the number of the 'name' stored in the metadata if that name is
numeric.
Extend that so that if it looks like a number md device name (/dev/md0
or just md0 or even /dev/md/0), then we use the number at the end to
suggest a minor number.

The means that if someone creates and array with "--name md0" or even
"--name /dev/md0" it will continue to do what they expect.

Signed-off-by: NeilBrown &lt;neilb@suse.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>mdopen:  be more careful when adding digit to names.</title>
<updated>2009-03-10T05:28:22+00:00</updated>
<author>
<name>NeilBrown</name>
<email>neilb@suse.de</email>
</author>
<published>2009-03-10T05:28:22+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/dledford/public_git/mdadm.git/commit/?id=add394f39e16445a7975bd00fea69ed2bda05b70'/>
<id>add394f39e16445a7975bd00fea69ed2bda05b70</id>
<content type='text'>
If we need to add digits to a name to make it unique, but don't have
to add '_', we need to avoid adding a digit immediately after a digit.
So if the last character of the name is a digit, add the '_' anyway.

Signed-off-by: NeilBrown &lt;neilb@suse.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If we need to add digits to a name to make it unique, but don't have
to add '_', we need to avoid adding a digit immediately after a digit.
So if the last character of the name is a digit, add the '_' anyway.

Signed-off-by: NeilBrown &lt;neilb@suse.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>some warn_unused_result fixups</title>
<updated>2008-11-27T04:29:54+00:00</updated>
<author>
<name>Dan Williams</name>
<email>dan.j.williams@intel.com</email>
</author>
<published>2008-11-26T18:25:10+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/dledford/public_git/mdadm.git/commit/?id=614825ea825ac70ba847cd87e3beafcc557c6273'/>
<id>614825ea825ac70ba847cd87e3beafcc557c6273</id>
<content type='text'>
Signed-off-by: Dan Williams &lt;dan.j.williams@intel.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Dan Williams &lt;dan.j.williams@intel.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>mdopen: typo in buffer-length for a sprintf.</title>
<updated>2008-11-07T03:46:51+00:00</updated>
<author>
<name>NeilBrown</name>
<email>neilb@suse.de</email>
</author>
<published>2008-11-07T03:46:51+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/dledford/public_git/mdadm.git/commit/?id=e10a79c344d3e93612b359b526aae47ad02fb446'/>
<id>e10a79c344d3e93612b359b526aae47ad02fb446</id>
<content type='text'>
That '10000' should have been '1000'.  Make it a 'sizeof' to avoid
such carelessness.

Signed-off-by: NeilBrown &lt;neilb@suse.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
That '10000' should have been '1000'.  Make it a 'sizeof' to avoid
such carelessness.

Signed-off-by: NeilBrown &lt;neilb@suse.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>mdopen: only let numeric name set minor number if it doesn't cause a conflict.</title>
<updated>2008-11-04T09:54:50+00:00</updated>
<author>
<name>NeilBrown</name>
<email>neilb@suse.de</email>
</author>
<published>2008-11-04T09:54:50+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/dledford/public_git/mdadm.git/commit/?id=bde2c6e2870148c85f971d93e88c128d2bd0be10'/>
<id>bde2c6e2870148c85f971d93e88c128d2bd0be10</id>
<content type='text'>
So if the array with minor number matching the name of a new array
already exists, just assemble with a different minor number.

Signed-off-by: NeilBrown &lt;neilb@suse.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
So if the array with minor number matching the name of a new array
already exists, just assemble with a different minor number.

Signed-off-by: NeilBrown &lt;neilb@suse.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>mdopen: use small sequence number for uniquifying array names.</title>
<updated>2008-11-04T09:51:12+00:00</updated>
<author>
<name>NeilBrown</name>
<email>neilb@suse.de</email>
</author>
<published>2008-11-04T09:51:12+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/dledford/public_git/mdadm.git/commit/?id=f2e55eccfb92969c3e11bc5d4883315f2e866a14'/>
<id>f2e55eccfb92969c3e11bc5d4883315f2e866a14</id>
<content type='text'>
Rather than appending the md minor number, we now append a small
sequence number to make sure name in /dev/md/ that aren't LOCAL are
unique.  As the map file is locked while we do this, we are sure
of no losing any races.

Signed-off-by: NeilBrown &lt;neilb@suse.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Rather than appending the md minor number, we now append a small
sequence number to make sure name in /dev/md/ that aren't LOCAL are
unique.  As the map file is locked while we do this, we are sure
of no losing any races.

Signed-off-by: NeilBrown &lt;neilb@suse.de&gt;
</pre>
</div>
</content>
</entry>
</feed>
