From owner-svn-src-head@FreeBSD.ORG Tue Mar 10 15:23:44 2009 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4F7501065691; Tue, 10 Mar 2009 15:23:44 +0000 (UTC) (envelope-from guido@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 3E7308FC24; Tue, 10 Mar 2009 15:23:44 +0000 (UTC) (envelope-from guido@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n2AFNhXe065868; Tue, 10 Mar 2009 15:23:43 GMT (envelope-from guido@svn.freebsd.org) Received: (from guido@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n2AFNhs1065867; Tue, 10 Mar 2009 15:23:43 GMT (envelope-from guido@svn.freebsd.org) Message-Id: <200903101523.n2AFNhs1065867@svn.freebsd.org> From: Guido van Rooij Date: Tue, 10 Mar 2009 15:23:43 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r189625 - head/sys/geom/eli X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Mar 2009 15:23:45 -0000 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));