]> git.ipfire.org Git - thirdparty/mdadm.git/commit - Create.c
Don't allow spares when creating 'external' arrays.
authorNeilBrown <neilb@suse.de>
Thu, 18 Sep 2008 06:03:08 +0000 (16:03 +1000)
committerNeilBrown <neilb@suse.de>
Thu, 18 Sep 2008 06:03:08 +0000 (16:03 +1000)
commitffcfc735a5114290cb6b3063c8a5fddddc384a36
tree0de2c4885412e4d6d2a7d030679ae5917325100d
parentc5afc314e2c36d54bf78b0d0049995c0f2df821c
Don't allow spares when creating 'external' arrays.

It is meaningless when creating the container, and for
subarrays, the container is responsible for assigning
spares.

Also, don't do the 'spare' fiddle for raid5 as we cannot
set up a spare at this point yet.  Later maybe just create
the array degraded and let the container sort it out.
Create.c