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));
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to