svn commit: r190534 - head/sys/geom/part
Marcel Moolenaar
marcel at FreeBSD.org
Sun Mar 29 17:33:44 PDT 2009
Author: marcel
Date: Mon Mar 30 00:33:43 2009
New Revision: 190534
URL: http://svn.freebsd.org/changeset/base/190534
Log:
Sharpen the saw:
o Don't create a GPT scheme underneath another scheme when
the probe doesn't allow it.
Modified:
head/sys/geom/part/g_part_gpt.c
Modified: head/sys/geom/part/g_part_gpt.c
==============================================================================
--- head/sys/geom/part/g_part_gpt.c Sun Mar 29 21:25:40 2009 (r190533)
+++ head/sys/geom/part/g_part_gpt.c Mon Mar 30 00:33:43 2009 (r190534)
@@ -393,6 +393,10 @@ g_part_gpt_create(struct g_part_table *b
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) +
More information about the svn-src-head
mailing list