diff options
author | marcel <marcel@FreeBSD.org> | 2007-12-08 23:08:42 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2007-12-08 23:08:42 +0000 |
commit | 534092d0a2ea210028af4f81d50a203c88d35c57 (patch) | |
tree | ef1987cc72c43cec5019ea7b7e1018da8b0b76aa /sys/geom | |
parent | 8b27e899e46c3d8830363bbf1204209ada4ddd1f (diff) | |
download | FreeBSD-src-534092d0a2ea210028af4f81d50a203c88d35c57.zip FreeBSD-src-534092d0a2ea210028af4f81d50a203c88d35c57.tar.gz |
Internal partitions can not be deleted or modified.
Diffstat (limited to 'sys/geom')
-rw-r--r-- | sys/geom/part/g_part.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/geom/part/g_part.c b/sys/geom/part/g_part.c index b4a7226..9044eb3 100644 --- a/sys/geom/part/g_part.c +++ b/sys/geom/part/g_part.c @@ -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; |