diff options
author | gonzo <gonzo@FreeBSD.org> | 2010-02-03 01:12:19 +0000 |
---|---|---|
committer | gonzo <gonzo@FreeBSD.org> | 2010-02-03 01:12:19 +0000 |
commit | 58b846696e124bb3aaed04b225b090ddd842a386 (patch) | |
tree | b4cdcc6dfe3a1b6cf4c8a0e9ce0d5de3f59490e9 /sys/geom/geom_redboot.c | |
parent | ddf7a2e0a799886edab6f9d4cc73b008b87e849c (diff) | |
download | FreeBSD-src-58b846696e124bb3aaed04b225b090ddd842a386.zip FreeBSD-src-58b846696e124bb3aaed04b225b090ddd842a386.tar.gz |
- Give geom_redboot taste of flash/spi. Now there is another provider
of redboot partitions. This patch was missed during merge from
projects/mips.
Diffstat (limited to 'sys/geom/geom_redboot.c')
-rw-r--r-- | sys/geom/geom_redboot.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); |