summaryrefslogtreecommitdiffstats
path: root/mdadm.h
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2012-07-09 09:14:16 +0200
committerNeilBrown <neilb@suse.de>2012-07-09 09:14:16 +0200
commit5187a385870950d779b6434b2d2982914367f638 (patch)
treed5198a55251b38ad706c88273acb878770b44261 /mdadm.h
parentmain: extract more functions. (diff)
downloadmdadm-5187a385870950d779b6434b2d2982914367f638.tar.xz
mdadm-5187a385870950d779b6434b2d2982914367f638.zip
Help: use an array to choose which help matches which mode.
Looks cleaner than a big switch statement. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to '')
-rw-r--r--mdadm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/mdadm.h b/mdadm.h
index bda557db..98ea472d 100644
--- a/mdadm.h
+++ b/mdadm.h
@@ -264,6 +264,7 @@ enum mode {
GROW,
INCREMENTAL,
AUTODETECT,
+ mode_count
};
extern char short_options[];
@@ -271,6 +272,7 @@ extern char short_bitmap_options[];
extern char short_bitmap_auto_options[];
extern struct option long_options[];
extern char Version[], Usage[], Help[], OptionHelp[],
+ *mode_help[],
Help_create[], Help_build[], Help_assemble[], Help_grow[],
Help_incr[],
Help_manage[], Help_misc[], Help_monitor[], Help_config[];