Sharpen the saw:
o Don't create a GPT scheme underneath another scheme when the probe doesn't allow it.
This commit is contained in:
parent
ca739eae4a
commit
bfa8e2dd6f
@ -393,6 +393,10 @@ g_part_gpt_create(struct g_part_table *basetable, struct g_part_parms *gpp)
|
||||
quad_t last;
|
||||
size_t tblsz;
|
||||
|
||||
/* We don't nest, which means that our depth should be 0. */
|
||||
if (basetable->gpt_depth != 0)
|
||||
return (ENXIO);
|
||||
|
||||
table = (struct g_part_gpt_table *)basetable;
|
||||
pp = gpp->gpp_provider;
|
||||
tblsz = (basetable->gpt_entries * sizeof(struct gpt_ent) +
|
||||
|
Loading…
x
Reference in New Issue
Block a user