summaryrefslogtreecommitdiff
path: root/super-intel.c
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2009-01-20 01:36:51 -0700
committerDan Williams <dan.j.williams@intel.com>2009-01-20 01:36:51 -0700
commit5615172f1d9daba1d5927758322f7addda803159 (patch)
treef078ea522d858db56d0ec47cb450680c5a8a87d9 /super-intel.c
parenta20d2ba5f32c76903ab6e32d83fa8c5e9c78d13f (diff)
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 'super-intel.c')
-rw-r--r--super-intel.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/super-intel.c b/super-intel.c
index 9f8cea63..0a7c34a2 100644
--- a/super-intel.c
+++ b/super-intel.c
@@ -916,7 +916,7 @@ static int imsm_enumerate_ports(const char *hba_path, int port_count, int host_b
return err;
}
-static int detail_platform_imsm(int verbose)
+static int detail_platform_imsm(int verbose, int enumerate_only)
{
/* There are two components to imsm platform support, the ahci SATA
* controller and the option-rom. To find the SATA controller we
@@ -937,6 +937,12 @@ static int detail_platform_imsm(int verbose)
int host_base = 0;
int port_count = 0;
+ if (enumerate_only) {
+ if (check_env("IMSM_NO_PLATFORM") || find_imsm_orom())
+ return 0;
+ return 2;
+ }
+
list = find_driver_devices("pci", "ahci");
for (hba = list; hba; hba = hba->next)
if (devpath_to_vendor(hba->path) == 0x8086)