summaryrefslogtreecommitdiffstats
path: root/mdadm.h
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2006-05-19 07:50:08 +0200
committerNeil Brown <neilb@suse.de>2006-05-19 07:50:08 +0200
commit997aed5deeabc74eefcf37a0f042ac8707dfe227 (patch)
tree96205aa20830a65b2e88cd5fd863e4bdcb07df4d /mdadm.h
parentImprove code for recognising config lines. (diff)
downloadmdadm-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.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/mdadm.h b/mdadm.h
index df435165..991dc8e0 100644
--- a/mdadm.h
+++ b/mdadm.h
@@ -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);