diff options
author | brooks <brooks@FreeBSD.org> | 2013-05-30 01:19:02 +0000 |
---|---|---|
committer | brooks <brooks@FreeBSD.org> | 2013-05-30 01:19:02 +0000 |
commit | eeccce259710f21dd4331291eca8fc9fdfc64b33 (patch) | |
tree | c0dc4418ff074c0c5b850ce03d4d99f57bfb58b5 /sys/geom | |
parent | f463a4083c29543a7119bf2b1872530b83f819f1 (diff) | |
download | FreeBSD-src-eeccce259710f21dd4331291eca8fc9fdfc64b33.zip FreeBSD-src-eeccce259710f21dd4331291eca8fc9fdfc64b33.tar.gz |
MFP4 @222836
Add support for partitioning CFI disks from FDT using geom_flashmap.
Sponsored by: DARPA, AFRL
Diffstat (limited to 'sys/geom')
-rw-r--r-- | sys/geom/geom_flashmap.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/geom/geom_flashmap.c b/sys/geom/geom_flashmap.c index 11e25b4..58d0b65 100644 --- a/sys/geom/geom_flashmap.c +++ b/sys/geom/geom_flashmap.c @@ -186,8 +186,11 @@ g_flashmap_taste(struct g_class *mp, struct g_provider *pp, int flags) do { size = sizeof(device_t); - if (g_io_getattr("NAND::device", cp, &size, &dev)) - break; + if (g_io_getattr("NAND::device", cp, &size, &dev)) { + size = sizeof(device_t); + if (g_io_getattr("CFI::device", cp, &size, &dev)) + break; + } nslices = g_flashmap_load(dev, &head); if (nslices == 0) |