Allow destroying EBR in COMPAT (default) mode.

MFC after:	2 week
This commit is contained in:
Andrey V. Elsukov 2010-12-28 08:42:12 +00:00
parent d3507dff37
commit f25481193e

View File

@ -357,6 +357,8 @@ g_part_ebr_precheck(struct g_part_table *table, enum g_part_ctl req,
struct g_part_parms *gpp)
{
#if defined(GEOM_PART_EBR_COMPAT)
if (req == G_PART_CTL_DESTROY)
return (0);
return (ECANCELED);
#else
/*