1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00

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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=216755

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
/*