]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - mdmon.c
Release 3.0-devel2
[thirdparty/mdadm.git] / mdmon.c
diff --git a/mdmon.c b/mdmon.c
index bfad18a7e6c2a88440304fd736c945e3ec63fc66..fa5a0df9cd9452c1f15d445cfa52a1e6ff0d1308 100644 (file)
--- a/mdmon.c
+++ b/mdmon.c
@@ -92,6 +92,15 @@ int clone_monitor(struct supertype *container)
        return mon_tid;
 }
 
+static struct superswitch *find_metadata_methods(char *vers)
+{
+       if (strcmp(vers, "ddf") == 0)
+               return &super_ddf;
+       if (strcmp(vers, "imsm") == 0)
+               return &super_imsm;
+       return NULL;
+}
+
 
 int make_pidfile(char *devname, int o_excl)
 {
@@ -241,7 +250,7 @@ static void wake_me(int sig)
 static int do_fork(void)
 {
        #ifdef DEBUG
-       if (env_no_mdmon())
+       if (check_env("MDADM_NO_MDMON"))
                return 0;
        #endif