]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - util.c
Assemble: allow an array undergoing reshape to be started without backup file
[thirdparty/mdadm.git] / util.c
diff --git a/util.c b/util.c
index fde58ebbeffa6271c93e01abae14c5880221e0f6..4b41e2b47b7ce50e3a4bdd23b182f0cfd2b637a3 100644 (file)
--- 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;
+       }
+}
+