diff options
author | Alexander Motin <mav@FreeBSD.org> | 2011-04-27 00:10:26 +0000 |
---|---|---|
committer | Alexander Motin <mav@FreeBSD.org> | 2011-04-27 00:10:26 +0000 |
commit | 90f2be24301fc6b17fcba2ec8f236cc0f0da607e (patch) | |
tree | 5ef8db534c3e8ba0bf7276c5dc63282d3f429e66 /sys/geom/mirror | |
parent | cec9f109bb610c8304e08adc7d6ad229b6bcfcdd (diff) | |
download | src-90f2be24301fc6b17fcba2ec8f236cc0f0da607e.tar.gz src-90f2be24301fc6b17fcba2ec8f236cc0f0da607e.zip |
Implement relaxed comparision for hardcoded provider names to make it
ignore adX/adaY difference in both directions to simplify migration to
the CAM-based ATA or back.
Notes
Notes:
svn path=/head/; revision=221101
Diffstat (limited to 'sys/geom/mirror')
-rw-r--r-- | sys/geom/mirror/g_mirror.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/geom/mirror/g_mirror.c b/sys/geom/mirror/g_mirror.c index 326851f96c9d..a2780d7c9634 100644 --- a/sys/geom/mirror/g_mirror.c +++ b/sys/geom/mirror/g_mirror.c @@ -3007,7 +3007,8 @@ g_mirror_taste(struct g_class *mp, struct g_provider *pp, int flags __unused) return (NULL); gp = NULL; - if (md.md_provider[0] != '\0' && strcmp(md.md_provider, pp->name) != 0) + if (md.md_provider[0] != '\0' && + !g_compare_names(md.md_provider, pp->name)) return (NULL); if (md.md_provsize != 0 && md.md_provsize != pp->mediasize) return (NULL); |