]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - mdmon.c
util: make env checking more generic
[thirdparty/mdadm.git] / mdmon.c
diff --git a/mdmon.c b/mdmon.c
index 0c2c3f2d01ff355117952189a36c0008eb74ba16..cb4173a020dc51549478fdf1b0e1899b2ad7c2cf 100644 (file)
--- a/mdmon.c
+++ b/mdmon.c
@@ -92,15 +92,6 @@ 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)
 {
@@ -250,7 +241,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