]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - Create.c
Create: warn when a metadata format's platform components are missing
[thirdparty/mdadm.git] / Create.c
index a7275d3d564b88367c861adba283868994067625..f63afa833cf02592e4593e6b6ce9b97dd2b2f107 100644 (file)
--- a/Create.c
+++ b/Create.c
@@ -404,6 +404,14 @@ int Create(struct supertype *st, char *mddev,
                warn = 1;
        }
 
+       if (st->ss->detail_platform && st->ss->detail_platform(0, 1) != 0) {
+               if (runstop != 1 || verbose >= 0)
+                       fprintf(stderr, Name ": %s unable to enumerate platform support\n"
+                               "    array may not be compatible with hardware/firmware\n",
+                               st->ss->name);
+               warn = 1;
+       }
+
        if (warn) {
                if (runstop!= 1) {
                        if (!ask("Continue creating array? ")) {