diff options
Diffstat (limited to 'sys/geom/geom_gpt.c')
-rw-r--r-- | sys/geom/geom_gpt.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/geom/geom_gpt.c b/sys/geom/geom_gpt.c index 99f67a4..3799a8b 100644 --- a/sys/geom/geom_gpt.c +++ b/sys/geom/geom_gpt.c @@ -220,9 +220,11 @@ g_gpt_taste(struct g_class *mp, struct g_provider *pp, int insist) bcopy(ent, gs->part[i], hdr->hdr_entsz); ps = (!memcmp(&ent->ent_type, &freebsd, sizeof(freebsd))) ? 's' : 'p'; + g_topology_lock(); (void)g_slice_addslice(gp, i, ent->ent_lba_start * secsz, (ent->ent_lba_end - ent->ent_lba_start + 1ULL) * secsz, "%s%c%d", gp->name, ps, i + 1); + g_topology_unlock(); npart++; } |