diff options
author | marcel <marcel@FreeBSD.org> | 2007-12-08 22:06:17 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2007-12-08 22:06:17 +0000 |
commit | fd024cb2befc13f3b7c85c7695d0491d7209153b (patch) | |
tree | 618ea84865b3f335fcbfb386d62554129dcc9614 /sys/geom/part | |
parent | 73a00aeaf77497ed03166365894dce81440c6e8a (diff) | |
download | FreeBSD-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/geom/part')
-rw-r--r-- | sys/geom/part/g_part.c | 2 |
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); |