From: Czarnowska, Anna Sent: Monday, July 05, 2010 11:32 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 17/33] test code for loop device support added From: Przemyslaw Czarnowski <przemyslaw.hawrylewicz.czarnowski@xxxxxxxxx> Signed-off-by: Przemyslaw Czarnowski <przemyslaw.hawrylewicz.czarnowski@xxxxxxxxx> --- super-intel.c | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/super-intel.c b/super-intel.c index 973ccde..9551ad1 100644 --- a/super-intel.c +++ b/super-intel.c @@ -5318,6 +5318,15 @@ static struct subset *platform_domain_imsm(struct supertype *st) s->spare_group = NULL; s->next = NULL; + if (check_env("IMSM_DEVNAME_AS_SERIAL")) { + s->paths->next = malloc(sizeof(*s->paths->next)); + if (!s->paths->next) { + return s; + } + s->paths->next->path = strdup("loop*"); + s->paths->next->next = NULL; + } + /* TODO test code for implicit platform boudaries, delete it */ if (check_env("IMSM_SUBSET_TEST")) { free(s->paths->path); -- 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