Treat feature as experimental

Due to fact that IMSM Windows compatibility was not tested yet,
feature has to be treated as experimental until compatibility
verification will be performed.

Signed-off-by: Adam Kwolek <adam.kwolek@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
Adam Kwolek 2010-11-29 12:11:09 +11:00 committed by NeilBrown
parent 62a48395f6
commit 6d11ec6fc2
2 changed files with 11 additions and 0 deletions

View File

@ -1040,6 +1040,7 @@ extern char *conf_word(FILE *file, int allow_key);
extern int conf_name_is_free(char *name);
extern int devname_matches(char *name, char *match);
extern struct mddev_ident *conf_match(struct mdinfo *info, struct supertype *st);
extern int experimental(void);
extern void free_line(char *line);
extern int match_oneof(char *devices, char *devname);

10
util.c
View File

@ -1896,3 +1896,13 @@ void append_metadata_update(struct supertype *st, void *buf, int len)
unsigned int __invalid_size_argument_for_IOC = 0;
#endif
int experimental(void)
{
if (check_env("MDADM_EXPERIMENTAL"))
return 1;
else {
fprintf(stderr, Name ": To use this feature MDADM_EXPERIMENTAL enviroment variable has to defined.\n");
return 0;
}
}