From: Dan Williams Date: Fri, 7 Nov 2008 22:08:09 +0000 (-0700) Subject: imsm: cleanup ->match_home and comment on return value X-Git-Tag: mdadm-3.0-devel3~78 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5115ca67fd28a0d2f4f156fbbbdf8f648c83fc20;p=thirdparty%2Fmdadm.git imsm: cleanup ->match_home and comment on return value Signed-off-by: Dan Williams --- diff --git a/super-intel.c b/super-intel.c index a2b9bd26..7e21c456 100644 --- a/super-intel.c +++ b/super-intel.c @@ -663,7 +663,14 @@ static void brief_detail_super_imsm(struct supertype *st) static int match_home_imsm(struct supertype *st, char *homehost) { - printf("%s\n", __FUNCTION__); + /* the imsm metadata format does not specify any host + * identification information. We return -1 since we can never + * confirm nor deny whether a given array is "meant" for this + * host. We rely on compare_super and the 'family_num' field to + * exclude member disks that do not belong, and we rely on + * mdadm.conf to specify the arrays that should be assembled. + * Auto-assembly may still pick up "foreign" arrays. + */ return -1; }