]> git.ipfire.org Git - thirdparty/mdadm.git/commit - super-ddf.c
ddf: set vcnum correctly when creating a new virtual device in conflist
authorNeilBrown <neilb@suse.de>
Mon, 14 Mar 2011 07:47:47 +0000 (18:47 +1100)
committerNeilBrown <neilb@suse.de>
Mon, 14 Mar 2011 07:47:47 +0000 (18:47 +1100)
commit1502a43a08d0648a6b03d89b7cf189f15bea8647
tree6352f231603643f815e2acf81b1b32258fa5760a
parente1316fab98d1ad5b3e07be7ee56b07b0e25353ec
ddf: set vcnum correctly when creating a new virtual device in conflist

We weren't setting ->vcnum at all when an array was added.  This
meant that a subsequent device failure could be assigned to the
wrong array.

Reported-by: Albert Pauw <albert.pauw@gmail.com>
Signed-off-by: NeilBrown <neilb@suse.de>
super-ddf.c