]> git.ipfire.org Git - thirdparty/mdadm.git/commit - super1.c
Fix write_init_super usage when hot-adding a spare
authorNeil Brown <neilb@suse.de>
Sat, 12 Jul 2008 10:27:36 +0000 (20:27 +1000)
committerNeil Brown <neilb@suse.de>
Sat, 12 Jul 2008 10:27:36 +0000 (20:27 +1000)
commita0c8a17f66f944151434dff06dd28c83e0893e88
tree7fceeb47ba54465b3c6beebe69c26efb4723e076
parent6264b43733127177d3fab4492a2da75938e7e881
Fix write_init_super usage when hot-adding a spare

Using write_init_super to add a spare to an active array is quite
different to how it is used when creating an array.

It mostly works, but if we are adding two devices to an array,
then when we add the second, there are still traces of the first
which confuse write_init_super.

So get write_init_super to ignore those traces.  Longer term, we
probably want to do this differently as for DDF, hot-adding to
an active array will have to be quite different - it will want to
write to all metadata, possibly via mdmon.
super0.c
super1.c