Internal partitions can not be deleted or modified.

This commit is contained in:
marcel 2007-12-08 23:08:42 +00:00
parent 8b27e899e4
commit 534092d0a2

View File

@ -741,7 +741,7 @@ g_part_ctl_delete(struct gctl_req *req, struct g_part_parms *gpp)
table = gp->softc;
LIST_FOREACH(entry, &table->gpt_entry, gpe_entry) {
if (entry->gpe_deleted)
if (entry->gpe_deleted || entry->gpe_internal)
continue;
if (entry->gpe_index == gpp->gpp_index)
break;
@ -857,7 +857,7 @@ g_part_ctl_modify(struct gctl_req *req, struct g_part_parms *gpp)
table = gp->softc;
LIST_FOREACH(entry, &table->gpt_entry, gpe_entry) {
if (entry->gpe_deleted)
if (entry->gpe_deleted || entry->gpe_internal)
continue;
if (entry->gpe_index == gpp->gpp_index)
break;