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

Allow slice creation on providers from MIRROR class.

This should allow mounting root file system from a mirror.
This commit is contained in:
Pawel Jakub Dawidek 2004-07-31 01:17:20 +00:00
parent d68c1e59a8
commit c9d3021a92
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=132911

View File

@ -247,6 +247,7 @@ g_mbr_taste(struct g_class *mp, struct g_provider *pp, int insist)
/* XXX: phk think about this! */
if (gp->rank != 2 &&
strcmp(pp->geom->class->name, "LABEL") != 0 &&
strcmp(pp->geom->class->name, "MIRROR") != 0 &&
strcmp(pp->geom->class->name, "NOP") != 0) {
break;
}