From: Czarnowska, Anna Sent: Monday, July 05, 2010 11:30 AM To: Neil Brown Cc: linux-raid@xxxxxxxxxxxxxxx; Czarnowska, Anna; Hawrylewicz Czarnowski, Przemyslaw; Labun, Marcin; Neubauer, Wojciech; Williams, Dan J; Ciechanowski, Ed; dledford@xxxxxxxxxx Subject: [PATCH 16/33] additional environment dependent code for platform subset tests From: Przemyslaw Czarnowski <przemyslaw.hawrylewicz.czarnowski@xxxxxxxxx> in order to allow testing of implicit platform limitation somne code to separate sda and the rest of AHCI devices has been added. --- super-intel.c | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/super-intel.c b/super-intel.c index f704c43..973ccde 100644 --- a/super-intel.c +++ b/super-intel.c @@ -5318,6 +5318,23 @@ static struct subset *platform_domain_imsm(struct supertype *st) s->spare_group = NULL; s->next = NULL; + /* TODO test code for implicit platform boudaries, delete it */ + if (check_env("IMSM_SUBSET_TEST")) { + free(s->paths->path); + /* /dev/sda (scsi addr 0:0:0:0) in separate group */ + s->paths->path = strdup("pci-0000:00:1f.2-scsi-0*"); + s->next = malloc(sizeof(*s)); + s->next->paths = malloc(sizeof(*s->paths)); + if (!s->next->paths) { + free(s); + return NULL; + } + s->next->paths->path = strdup("pci-0000:00:1f.2-scsi-*"); + s->next->paths->next = NULL; + s->next->spare_group = NULL; + s->next->next = NULL; + } + return s; } -- 1.6.4.2 -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html