• Heinz Mauelshagen's avatar
    dm raid: cleanup / provide infrastructure · 702108d1
    Heinz Mauelshagen authored
    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: default avatarHeinz Mauelshagen <heinzm@redhat.com>
    Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
    702108d1
dm-raid.c 51.6 KB