1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-20 11:11:24 +00:00

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
This commit is contained in:
Pawel Jakub Dawidek 2004-07-30 19:55:12 +00:00
parent c4536e21d4
commit f49b0080d0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=132895

View File

@ -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;