dm raid: cleanup / provide infrastructure
authorHeinz Mauelshagen <heinzm@redhat.com>
Thu, 19 May 2016 16:49:26 +0000 (18:49 +0200)
committerMike Snitzer <snitzer@redhat.com>
Mon, 13 Jun 2016 18:40:24 +0000 (14:40 -0400)
commit702108d194e3649f69afcd2661282a0157c71e54
tree56375c6cf68542bced7ae7086fc0326c76f74ba1
parent92c83d79b07ec1c53e0c74b8a7988799e00856db
dm raid: cleanup / provide infrastructure

Provide necessary infrastructure to handle ctr flags and their names
and cleanup setting ti->error:

 - comment constructor flags

 - introduce constructor flag manipulation

 - introduce ti_error_*() functions to simplify
   setting the error message (use in other targets?)

 - introduce array to hold ctr flag <-> flag name mapping

 - introduce argument name by flag functions for that array

 - use those functions throughout the ctr call path

Signed-off-by: Heinz Mauelshagen <heinzm@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-raid.c