mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-17 10:26:15 +00:00
Do not attach MBR on top of an MBR. This removes some confusing
slice names on disks with extended partitions. Spotted on: Mother-in-laws computer.
This commit is contained in:
parent
ee602fbb50
commit
03c02e5cb1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=143590
@ -267,6 +267,8 @@ g_mbr_taste(struct g_class *mp, struct g_provider *pp, int insist)
|
||||
|
||||
g_trace(G_T_TOPOLOGY, "mbr_taste(%s,%s)", mp->name, pp->name);
|
||||
g_topology_assert();
|
||||
if (!strcmp(pp->geom->class->name, MBR_CLASS_NAME))
|
||||
return (NULL);
|
||||
gp = g_slice_new(mp, NDOSPART, pp, &cp, &ms, sizeof *ms, g_mbr_start);
|
||||
if (gp == NULL)
|
||||
return (NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user