DM RAID: 'rebuild' parameter code should be setting MD_CHANGE_DEVS
Changes from previous:
- Add missing '{'
- Change comments to emphasize bug fix
brassow
dm-raid: 'rebuild' parameter code should be setting MD_CHANGE_DEVS
The 'rebuild' parameter is used to rebuild individual devices in an array.
(Resynchronize a RAID1 device or recalculate a parity device in higher RAID,
for example.) The MD_CHANGE_DEVS flag must be set when this parameter is
given in order to write out the superblocks and make the change take immediate
effect.
So, we need MD_CHANGE_DEVS to be set and the 'FirstUse' flag was being set as
a special case for rebuilds in super_init_validation. The code that handles
new devices in super_load already sets MD_CHANGE_DEVS and 'FirstUse'. Adding
a condition for rebuilds in super_load takes care of both flags without a need
for the special case in 'super_init_validation'.
Signed-off-by: Jonathan Brassow <jbrassow@redhat.com>