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:
parent
62a48395f6
commit
6d11ec6fc2
1
mdadm.h
1
mdadm.h
|
@ -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
10
util.c
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue