summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2007-12-08 22:06:17 +0000
committermarcel <marcel@FreeBSD.org>2007-12-08 22:06:17 +0000
commitfd024cb2befc13f3b7c85c7695d0491d7209153b (patch)
tree618ea84865b3f335fcbfb386d62554129dcc9614 /sys
parent73a00aeaf77497ed03166365894dce81440c6e8a (diff)
downloadFreeBSD-src-fd024cb2befc13f3b7c85c7695d0491d7209153b.zip
FreeBSD-src-fd024cb2befc13f3b7c85c7695d0491d7209153b.tar.gz
Skip internal partitions in the check for (user) partitions for
the destroy command. Previously a freshly created BSD disklabel could not be destroyed because of the internal partition.
Diffstat (limited to 'sys')
-rw-r--r--sys/geom/part/g_part.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/geom/part/g_part.c b/sys/geom/part/g_part.c
index c3f59d7..b4a7226 100644
--- a/sys/geom/part/g_part.c
+++ b/sys/geom/part/g_part.c
@@ -800,7 +800,7 @@ g_part_ctl_destroy(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;
gctl_error(req, "%d", EBUSY);
return (EBUSY);
OpenPOWER on IntegriCloud