diff options
author | Dan Williams <dan.j.williams@intel.com> | 2009-01-20 01:36:51 -0700 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2009-01-20 01:36:51 -0700 |
commit | 5615172f1d9daba1d5927758322f7addda803159 (patch) | |
tree | f078ea522d858db56d0ec47cb450680c5a8a87d9 /Detail.c | |
parent | a20d2ba5f32c76903ab6e32d83fa8c5e9c78d13f (diff) | |
download | mdadm-5615172f1d9daba1d5927758322f7addda803159.tar.gz mdadm-5615172f1d9daba1d5927758322f7addda803159.tar.xz mdadm-5615172f1d9daba1d5927758322f7addda803159.zip |
Create: warn when a metadata format's platform components are missing
If the metadata handler can not find its platform support components
then there is no way for it to verify that the raid configuration will
be supported by the option-rom. Provide a generic method for metadata
handlers to warn the user that the array they are about to create may
not work as intended with a given platform.
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'Detail.c')
-rw-r--r-- | Detail.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -540,7 +540,7 @@ int Detail_Platform(struct superswitch *ss, int scan, int verbose) int err = 1; if (ss && ss->detail_platform) - err = ss->detail_platform(verbose); + err = ss->detail_platform(verbose, 0); else if (ss) { if (verbose) fprintf(stderr, Name ": %s metadata is platform independent\n", @@ -566,7 +566,7 @@ int Detail_Platform(struct superswitch *ss, int scan, int verbose) fprintf(stderr, Name ": %s metadata is platform independent\n", meta->name ? : "[no name]"); } else - err |= meta->detail_platform(verbose); + err |= meta->detail_platform(verbose, 0); } return err; |