From 58b846696e124bb3aaed04b225b090ddd842a386 Mon Sep 17 00:00:00 2001 From: gonzo Date: Wed, 3 Feb 2010 01:12:19 +0000 Subject: - Give geom_redboot taste of flash/spi. Now there is another provider of redboot partitions. This patch was missed during merge from projects/mips. --- sys/geom/geom_redboot.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/geom/geom_redboot.c b/sys/geom/geom_redboot.c index 3ece7c1..0e1f4d3 100644 --- a/sys/geom/geom_redboot.c +++ b/sys/geom/geom_redboot.c @@ -252,7 +252,8 @@ g_redboot_taste(struct g_class *mp, struct g_provider *pp, int insist) if (!strcmp(pp->geom->class->name, REDBOOT_CLASS_NAME)) return (NULL); /* XXX only taste flash providers */ - if (strncmp(pp->name, "cfi", 3)) + if (strncmp(pp->name, "cfi", 3) && + strncmp(pp->name, "flash/spi", 9)) return (NULL); gp = g_slice_new(mp, REDBOOT_MAXSLICE, pp, &cp, &sc, sizeof(*sc), g_redboot_start); -- cgit v1.1