Date: Mon, 30 Mar 2009 00:33:43 +0000 (UTC) From: Marcel Moolenaar <marcel@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r190534 - head/sys/geom/part Message-ID: <200903300033.n2U0Xh2I048824@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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) +
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200903300033.n2U0Xh2I048824>