svn commit: r203411 - head/sys/geom
Oleksandr Tymoshenko
gonzo at FreeBSD.org
Wed Feb 3 01:12:20 UTC 2010
Author: gonzo
Date: Wed Feb 3 01:12:19 2010
New Revision: 203411
URL: http://svn.freebsd.org/changeset/base/203411
Log:
- Give geom_redboot taste of flash/spi. Now there is another provider
of redboot partitions. This patch was missed during merge from
projects/mips.
Modified:
head/sys/geom/geom_redboot.c
Modified: head/sys/geom/geom_redboot.c
==============================================================================
--- head/sys/geom/geom_redboot.c Tue Feb 2 23:10:27 2010 (r203410)
+++ head/sys/geom/geom_redboot.c Wed Feb 3 01:12:19 2010 (r203411)
@@ -252,7 +252,8 @@ g_redboot_taste(struct g_class *mp, stru
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);
More information about the svn-src-head
mailing list