dm raid: cleanup parameter handling
authorJonathan Brassow <jbrassow@redhat.com>
Tue, 2 Aug 2011 11:32:03 +0000 (12:32 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Tue, 2 Aug 2011 11:32:03 +0000 (12:32 +0100)
commit13c87583ea4e867211fc3e7edab750c353c47c95
tree93d1a2b20f1033e031eedf86a19ab822b1fbb576
parenta2d2b0345a0f30c169b7d08b8cebdd4853fcb0f8
dm raid: cleanup parameter handling

Re-order the parameters so they are handled consistently in the same order
where defined, parsed and output.

Only include rebuild parameters in the STATUSTYPE_TABLE output if they were
supplied in the original table line.

Correct the parameter count when outputting rebuild: there are two words,
not one.

Use case-independent checks for keywords (as in other device-mapper targets).

Signed-off-by: Jonathan Brassow <jbrassow@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-raid.c