diff options
Diffstat (limited to 'sys/geom/part/g_part_pc98.c')
-rw-r--r-- | sys/geom/part/g_part_pc98.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/geom/part/g_part_pc98.c b/sys/geom/part/g_part_pc98.c index 4a15215..07d6a62 100644 --- a/sys/geom/part/g_part_pc98.c +++ b/sys/geom/part/g_part_pc98.c @@ -352,6 +352,12 @@ g_part_pc98_resize(struct g_part_table *basetable, struct g_provider *pp; uint32_t size; + if (baseentry == NULL) { + pp = LIST_FIRST(&basetable->gpt_gp->consumer)->provider; + basetable->gpt_last = MIN(pp->mediasize / SECSIZE, + UINT32_MAX) - 1; + return (0); + } size = gpp->gpp_size; if (pc98_align(basetable, NULL, &size) != 0) return (EINVAL); |