From f49b0080d0e620e8b22ea0076f655210a6f66160 Mon Sep 17 00:00:00 2001 From: Pawel Jakub Dawidek Date: Fri, 30 Jul 2004 19:55:12 +0000 Subject: [PATCH] Allow to create slices on providers from class LABEL and class NOP. This is really ugly way to do this, but there is no other way for now. It allows to mount root file system from providers which belong to those classes. Approved by: phk --- sys/geom/geom_mbr.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sys/geom/geom_mbr.c b/sys/geom/geom_mbr.c index 9ba0815a407..59a699c8acc 100644 --- a/sys/geom/geom_mbr.c +++ b/sys/geom/geom_mbr.c @@ -244,8 +244,12 @@ g_mbr_taste(struct g_class *mp, struct g_provider *pp, int insist) gp->dumpconf = g_mbr_dumpconf; gp->ioctl = g_mbr_ioctl; do { - if (gp->rank != 2 && insist == 0) + /* XXX: phk think about this! */ + if (gp->rank != 2 && + strcmp(pp->geom->class->name, "LABEL") != 0 && + strcmp(pp->geom->class->name, "NOP") != 0) { break; + } error = g_getattr("GEOM::fwsectors", cp, &fwsectors); if (error) fwsectors = 17;