diff options
author | Neil Brown <neilb@suse.de> | 2006-05-19 07:50:08 +0200 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2006-05-19 07:50:08 +0200 |
commit | 997aed5deeabc74eefcf37a0f042ac8707dfe227 (patch) | |
tree | 96205aa20830a65b2e88cd5fd863e4bdcb07df4d /mdadm.h | |
parent | Improve code for recognising config lines. (diff) | |
download | mdadm-997aed5deeabc74eefcf37a0f042ac8707dfe227.tar.xz mdadm-997aed5deeabc74eefcf37a0f042ac8707dfe227.zip |
Allow homehost to be set on command line or in config file
Signed-off-by: Neil Brown <neilb@suse.de>
Diffstat (limited to '')
-rw-r--r-- | mdadm.h | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -125,6 +125,20 @@ extern char Version[], Usage[], Help[], OptionHelp[], Help_create[], Help_build[], Help_assemble[], Help_grow[], Help_manage[], Help_misc[], Help_monitor[], Help_config[]; +/* for option that don't have short equivilents, we assign arbitrary + * small numbers. '1' means an undecorated option, so we start at '2'. + */ +enum special_options { + AssumeClean = 2, + BitmapChunk, + WriteBehind, + ReAdd, + NoDegraded, + Sparc22, + BackupFile, + HomeHost, +}; + /* structures read from config file */ /* List of mddevice names and identifiers * Identifiers can be: @@ -381,6 +395,7 @@ extern struct createinfo *conf_get_create_info(char *conffile); extern char *conf_get_mailaddr(char *conffile); extern char *conf_get_mailfrom(char *conffile); extern char *conf_get_program(char *conffile); +extern char *conf_get_homehost(char *conffile); extern char *conf_line(FILE *file); extern char *conf_word(FILE *file, int allow_key); extern void free_line(char *line); |