svn commit: r216755 - head/sys/geom/part

Andrey V. Elsukov ae at FreeBSD.org
Tue Dec 28 08:42:13 UTC 2010


Author: ae
Date: Tue Dec 28 08:42:12 2010
New Revision: 216755
URL: http://svn.freebsd.org/changeset/base/216755

Log:
  Allow destroying EBR in COMPAT (default) mode.
  
  MFC after:	2 week

Modified:
  head/sys/geom/part/g_part_ebr.c

Modified: head/sys/geom/part/g_part_ebr.c
==============================================================================
--- head/sys/geom/part/g_part_ebr.c	Tue Dec 28 08:36:44 2010	(r216754)
+++ head/sys/geom/part/g_part_ebr.c	Tue Dec 28 08:42:12 2010	(r216755)
@@ -357,6 +357,8 @@ g_part_ebr_precheck(struct g_part_table 
     struct g_part_parms *gpp)
 {
 #if defined(GEOM_PART_EBR_COMPAT)
+	if (req == G_PART_CTL_DESTROY)
+		return (0);
 	return (ECANCELED);
 #else
 	/*


More information about the svn-src-all mailing list