]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - super-intel.c
IMSM/DDF: don't recognised these metadata on partitions.
[thirdparty/mdadm.git] / super-intel.c
index 677396c64a9ab2eb953e915a0230299c81941f7e..bdd7a968abbcd3ed95e082a54220317935791c44 100644 (file)
@@ -2798,6 +2798,10 @@ static int load_super_imsm(struct supertype *st, int fd, char *devname)
                return 0;
 #endif
 
+       if (test_partition(fd))
+               /* IMSM not allowed on partitions */
+               return 1;
+
        free_super_imsm(st);
 
        super = alloc_super();