diff options
author | mav <mav@FreeBSD.org> | 2011-04-27 00:10:26 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2011-04-27 00:10:26 +0000 |
commit | 79493720f3e82cb2313e179784850a9d62c4818f (patch) | |
tree | 5ef8db534c3e8ba0bf7276c5dc63282d3f429e66 /sys/geom/concat/g_concat.c | |
parent | 1b56a148b08bcf5e62b84762bfce01e1a3af17ef (diff) | |
download | FreeBSD-src-79493720f3e82cb2313e179784850a9d62c4818f.zip FreeBSD-src-79493720f3e82cb2313e179784850a9d62c4818f.tar.gz |
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.
Diffstat (limited to 'sys/geom/concat/g_concat.c')
-rw-r--r-- | sys/geom/concat/g_concat.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/geom/concat/g_concat.c b/sys/geom/concat/g_concat.c index 85d8a21..10ee571 100644 --- a/sys/geom/concat/g_concat.c +++ b/sys/geom/concat/g_concat.c @@ -678,7 +678,8 @@ g_concat_taste(struct g_class *mp, struct g_provider *pp, int flags __unused) if (md.md_version < 4) md.md_provsize = pp->mediasize; - 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 != pp->mediasize) return (NULL); |