svn commit: r189625 - head/sys/geom/eli

Guido van Rooij guido at FreeBSD.org
Tue Mar 10 08:23:45 PDT 2009


Author: guido
Date: Tue Mar 10 15:23:43 2009
New Revision: 189625
URL: http://svn.freebsd.org/changeset/base/189625

Log:
  When attaching a geli on boot make sure that it is detached
  upon last close. (needed for a gmirror to properly shutdown
  upon reboot when a geli is on top the gmirror)

Modified:
  head/sys/geom/eli/g_eli.c

Modified: head/sys/geom/eli/g_eli.c
==============================================================================
--- head/sys/geom/eli/g_eli.c	Tue Mar 10 15:19:49 2009	(r189624)
+++ head/sys/geom/eli/g_eli.c	Tue Mar 10 15:23:43 2009	(r189625)
@@ -996,6 +996,7 @@ g_eli_taste(struct g_class *mp, struct g
 	/*
 	 * We have correct key, let's attach provider.
 	 */
+	md.md_flags |= G_ELI_FLAG_WO_DETACH;
 	gp = g_eli_create(NULL, mp, pp, &md, mkey, nkey);
 	bzero(mkey, sizeof(mkey));
 	bzero(&md, sizeof(md));


More information about the svn-src-all mailing list