Date: Tue, 10 Mar 2009 15:23:43 +0000 (UTC) From: Guido van Rooij <guido@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r189625 - head/sys/geom/eli Message-ID: <200903101523.n2AFNhs1065867@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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));
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200903101523.n2AFNhs1065867>