]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Create new md devices consistently
authorJustin Maggard <jmaggard10@gmail.com>
Tue, 23 Oct 2012 22:04:00 +0000 (15:04 -0700)
committerNeilBrown <neilb@suse.de>
Wed, 24 Oct 2012 01:07:32 +0000 (12:07 +1100)
commit4cda8682c6607d8268072243d310919bcc5f21b2
treeefdf252f5604863bae03a89caab337034a9631f1
parent72e7fb13f0154eb59941cfbe69e75c830bde4441
Create new md devices consistently

 Creating a new MD device with the name 'd-0' results in some
 unexpected behavior, since mdadm sees that '-0' is a
 non-negative integer and therefore makes a "partitionable"
 device (/dev/md_d0).  This is not the expected behavior,
 since the documentation mentions 'dN' several places, and a
 reboot brings it up as /dev/md/d-0.  Make this consistent
 by ensuring that the character immediately following 'd' is
 a digit during creation.

Signed-off-by: NeilBrown <neilb@suse.de>
mdopen.c