summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorAdam Kwolek <adam.kwolek@intel.com>2010-11-29 12:11:09 +1100
committerNeilBrown <neilb@suse.de>2010-11-29 12:11:09 +1100
commit6d11ec6fc2a9d47d7af0773b03fa4104983ffc80 (patch)
treed50ed530b68755646d6c16cc2949e01b3a8311f1 /util.c
parent62a48395f60965d04da1a9cbb937bda79dd071c8 (diff)
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>
Diffstat (limited to 'util.c')
-rw-r--r--util.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/util.c b/util.c
index fde58ebb..4b41e2b4 100644
--- a/util.c
+++ b/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;
+ }
+}
+