From owner-freebsd-geom@FreeBSD.ORG Mon Jan 26 16:37:41 2004 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6CB7C16A4CE for ; Mon, 26 Jan 2004 16:37:41 -0800 (PST) Received: from mailbox.univie.ac.at (mailbox.univie.ac.at [131.130.1.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1D48743D41 for ; Mon, 26 Jan 2004 16:37:40 -0800 (PST) (envelope-from l.ertl@univie.ac.at) Received: from wireless (adslle.cc.univie.ac.at [131.130.102.11]) i0R0bXPC431632; Tue, 27 Jan 2004 01:37:35 +0100 Date: Tue, 27 Jan 2004 01:37:27 +0100 (CET) From: Lukas Ertl To: Soeren Straarup In-Reply-To: <20040124120011.Y7254@leelou.in.tern> Message-ID: <20040127013616.W656@korben.in.tern> References: <20040124113134.H77841-100000@x12.dk> <20040124120011.Y7254@leelou.in.tern> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-DCC-ZID-Univie-Metrics: imap 4243; Body=0 Fuz1=0 Fuz2=0 cc: freebsd-geom@freebsd.org Subject: Re: my setup X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Jan 2004 00:37:41 -0000 On Sat, 24 Jan 2004, Lukas Ertl wrote: > On Sat, 24 Jan 2004, Soeren Straarup wrote: > > > there are disks da0 to da5 and it goes like this: > > > > da0 stand alone disk > > mirror(stripe(da1,da2),stripe(da3,da4)) > > da5 stand alone disk > > > > and here is another view of it: > > < http://xride.dk/geomvinum.ps > > > I will try to reproduce that setup, but I won't be able to do it before > monday. OK, now that I was finally able to test my stuff with more than one disk I fixed some bugs and rerolled the tarball. The system you described should now work fine. regards, le -- Lukas Ertl eMail: l.ertl@univie.ac.at UNIX Systemadministrator Tel.: (+43 1) 4277-14073 Vienna University Computer Center Fax.: (+43 1) 4277-9140 University of Vienna http://mailbox.univie.ac.at/~le/ From owner-freebsd-geom@FreeBSD.ORG Tue Jan 27 06:47:10 2004 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7126116A4CE for ; Tue, 27 Jan 2004 06:47:10 -0800 (PST) Received: from mailbox.univie.ac.at (mail.univie.ac.at [131.130.1.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id BDFA643D5D for ; Tue, 27 Jan 2004 06:46:52 -0800 (PST) (envelope-from l.ertl@univie.ac.at) Received: from pcle2.cc.univie.ac.at (pcle2.cc.univie.ac.at [131.130.2.177]) by mailbox.univie.ac.at (8.12.10/8.12.10) with ESMTP id i0REkUI4288494 for ; Tue, 27 Jan 2004 15:46:36 +0100 Date: Tue, 27 Jan 2004 15:46:30 +0100 (CET) From: Lukas Ertl To: freebsd-geom@freebsd.org Message-ID: <20040127154303.E92925@pcle2.cc.univie.ac.at> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-DCC-ZID-Univie-Metrics: mailbox 4244; Body=0 Fuz1=0 Fuz2=0 Subject: Error checking for g_mod_event() and friends X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Jan 2004 14:47:10 -0000 Hi, is there a specific reason that the .init function of a class is declared to return "void"? I'd like to change that to an int, so we could do error checking, and subsequently modify g_load_class() to check for errors and so on. Additionally, I've seen several calls to g_malloc() where the return values aren't checked - should I prepare some patches for these? regards, le -- Lukas Ertl eMail: l.ertl@univie.ac.at UNIX Systemadministrator Tel.: (+43 1) 4277-14073 Vienna University Computer Center Fax.: (+43 1) 4277-9140 University of Vienna http://mailbox.univie.ac.at/~le/ From owner-freebsd-geom@FreeBSD.ORG Tue Jan 27 06:57:05 2004 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B193216A4CE for ; Tue, 27 Jan 2004 06:57:05 -0800 (PST) Received: from milla.ask33.net (milla.ask33.net [217.197.166.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9690643D6D for ; Tue, 27 Jan 2004 06:56:50 -0800 (PST) (envelope-from nick@milla.ask33.net) Received: by milla.ask33.net (Postfix, from userid 1001) id ED57A3ABB53; Tue, 27 Jan 2004 15:57:53 +0100 (CET) Date: Tue, 27 Jan 2004 15:57:53 +0100 From: Pawel Jakub Dawidek To: Lukas Ertl Message-ID: <20040127145753.GM565@garage.freebsd.pl> References: <20040127154303.E92925@pcle2.cc.univie.ac.at> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="AQNmCumFClRcGgHG" Content-Disposition: inline In-Reply-To: <20040127154303.E92925@pcle2.cc.univie.ac.at> X-PGP-Key-URL: http://garage.freebsd.pl/jules.asc X-OS: FreeBSD 4.8-RELEASE-p13 i386 X-URL: http://garage.freebsd.pl User-Agent: Mutt/1.5.1i cc: freebsd-geom@freebsd.org Subject: Re: Error checking for g_mod_event() and friends X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Jan 2004 14:57:05 -0000 --AQNmCumFClRcGgHG Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jan 27, 2004 at 03:46:30PM +0100, Lukas Ertl wrote: +> is there a specific reason that the .init function of a class is declared +> to return "void"? I'd like to change that to an int, so we could do err= or +> checking, and subsequently modify g_load_class() to check for errors and +> so on. Look at: http://garage.freebsd.pl/patches/geom_subr.c.patch The biggest problem is that g_event thread is created after classes are loaded, so we end up with deadlock on boot. +> Additionally, I've seen several calls to g_malloc() where the return +> values aren't checked - should I prepare some patches for these? I don't see any g_malloc() call with M_NOWAIT. --=20 Pawel Jakub Dawidek pawel@dawidek.net UNIX Systems Programmer/Administrator http://garage.freebsd.pl Am I Evil? Yes, I Am! http://cerber.sourceforge.net --AQNmCumFClRcGgHG Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iQCVAwUBQBZ8cT/PhmMH/Mf1AQG+rwQAg2DLwd4CakKZTPFTP8+cgE3hS4RPFlxV nN6F6KM+IYVwuTgDCVJ1RP2fJg+KksphVCJOHN2g8UlWkLJIr7HfTi3Y+/cu8i04 9NVbuIPwcQ5P0QRNy83vSAbZPDeG9I2wxdjqv/4s5wekzEQL5ZmxmxhLstiCgez9 6nRFYv//PWk= =vIFh -----END PGP SIGNATURE----- --AQNmCumFClRcGgHG-- From owner-freebsd-geom@FreeBSD.ORG Tue Jan 27 06:57:08 2004 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2A30F16A4CE for ; Tue, 27 Jan 2004 06:57:08 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id A7EF243D6B for ; Tue, 27 Jan 2004 06:56:57 -0800 (PST) (envelope-from phk@phk.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.10/8.12.10) with ESMTP id i0REutuO004822; Tue, 27 Jan 2004 15:56:55 +0100 (CET) (envelope-from phk@phk.freebsd.dk) To: Lukas Ertl From: "Poul-Henning Kamp" In-Reply-To: Your message of "Tue, 27 Jan 2004 15:46:30 +0100." <20040127154303.E92925@pcle2.cc.univie.ac.at> Date: Tue, 27 Jan 2004 15:56:55 +0100 Message-ID: <4821.1075215415@critter.freebsd.dk> cc: freebsd-geom@freebsd.org Subject: Re: Error checking for g_mod_event() and friends X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Jan 2004 14:57:08 -0000 In message <20040127154303.E92925@pcle2.cc.univie.ac.at>, Lukas Ertl writes: >Hi, > >is there a specific reason that the .init function of a class is declared >to return "void"? I'd like to change that to an int, so we could do error >checking, and subsequently modify g_load_class() to check for errors and >so on. In what circumstances would class->init() fail ? >Additionally, I've seen several calls to g_malloc() where the return >values aren't checked - should I prepare some patches for these? yes please. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. From owner-freebsd-geom@FreeBSD.ORG Tue Jan 27 07:02:12 2004 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 70E1416A4CE for ; Tue, 27 Jan 2004 07:02:12 -0800 (PST) Received: from mailbox.univie.ac.at (mailbox.univie.ac.at [131.130.1.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 78A7443D39 for ; Tue, 27 Jan 2004 07:02:05 -0800 (PST) (envelope-from l.ertl@univie.ac.at) Received: from pcle2.cc.univie.ac.at (pcle2.cc.univie.ac.at [131.130.2.177]) i0RF1rsD281578; Tue, 27 Jan 2004 16:01:57 +0100 Date: Tue, 27 Jan 2004 16:01:53 +0100 (CET) From: Lukas Ertl To: Poul-Henning Kamp In-Reply-To: <4821.1075215415@critter.freebsd.dk> Message-ID: <20040127160001.N92925@pcle2.cc.univie.ac.at> References: <4821.1075215415@critter.freebsd.dk> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-DCC-ZID-Univie-Metrics: mailbox 4244; Body=0 Fuz1=0 Fuz2=0 cc: freebsd-geom@freebsd.org Subject: Re: Error checking for g_mod_event() and friends X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Jan 2004 15:02:12 -0000 On Tue, 27 Jan 2004, Poul-Henning Kamp wrote: > In message <20040127154303.E92925@pcle2.cc.univie.ac.at>, Lukas Ertl writes: > >Hi, > > > >is there a specific reason that the .init function of a class is declared > >to return "void"? I'd like to change that to an int, so we could do error > >checking, and subsequently modify g_load_class() to check for errors and > >so on. > > In what circumstances would class->init() fail ? In the geom_vinum case I allocate the "main" vinum geom in the init method, and this might fail. (Of course, this might not be the correct way to do it, but I couldn't think of another way.) > >Additionally, I've seen several calls to g_malloc() where the return > >values aren't checked - should I prepare some patches for these? > > yes please. Ok. regards, le -- Lukas Ertl eMail: l.ertl@univie.ac.at UNIX Systemadministrator Tel.: (+43 1) 4277-14073 Vienna University Computer Center Fax.: (+43 1) 4277-9140 University of Vienna http://mailbox.univie.ac.at/~le/ From owner-freebsd-geom@FreeBSD.ORG Tue Jan 27 07:03:46 2004 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 07D8316A4CE for ; Tue, 27 Jan 2004 07:03:46 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id A6A7043D1F for ; Tue, 27 Jan 2004 07:03:44 -0800 (PST) (envelope-from phk@phk.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.10/8.12.10) with ESMTP id i0RF3huO004927; Tue, 27 Jan 2004 16:03:43 +0100 (CET) (envelope-from phk@phk.freebsd.dk) To: Lukas Ertl From: "Poul-Henning Kamp" In-Reply-To: Your message of "Tue, 27 Jan 2004 16:01:53 +0100." <20040127160001.N92925@pcle2.cc.univie.ac.at> Date: Tue, 27 Jan 2004 16:03:43 +0100 Message-ID: <4926.1075215823@critter.freebsd.dk> cc: freebsd-geom@freebsd.org Subject: Re: Error checking for g_mod_event() and friends X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Jan 2004 15:03:46 -0000 In message <20040127160001.N92925@pcle2.cc.univie.ac.at>, Lukas Ertl writes: >On Tue, 27 Jan 2004, Poul-Henning Kamp wrote: > >> In message <20040127154303.E92925@pcle2.cc.univie.ac.at>, Lukas Ertl writes: >> >Hi, >> > >> >is there a specific reason that the .init function of a class is declared >> >to return "void"? I'd like to change that to an int, so we could do error >> >checking, and subsequently modify g_load_class() to check for errors and >> >so on. >> >> In what circumstances would class->init() fail ? > >In the geom_vinum case I allocate the "main" vinum geom in the init >method, and this might fail. > >(Of course, this might not be the correct way to do it, but I couldn't >think of another way.) You're right, it isn't :-) You should never allocate anything until you first time taste a disk which looks like yours. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. From owner-freebsd-geom@FreeBSD.ORG Tue Jan 27 07:39:12 2004 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 86BEC16A4CE for ; Tue, 27 Jan 2004 07:39:12 -0800 (PST) Received: from mailbox.univie.ac.at (mailbox.univie.ac.at [131.130.1.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0835F43D72 for ; Tue, 27 Jan 2004 07:39:11 -0800 (PST) (envelope-from l.ertl@univie.ac.at) Received: from pcle2.cc.univie.ac.at (pcle2.cc.univie.ac.at [131.130.2.177]) i0RFd1ej634100; Tue, 27 Jan 2004 16:39:02 +0100 Date: Tue, 27 Jan 2004 16:39:01 +0100 (CET) From: Lukas Ertl To: Poul-Henning Kamp In-Reply-To: <4926.1075215823@critter.freebsd.dk> Message-ID: <20040127163829.I92925@pcle2.cc.univie.ac.at> References: <4926.1075215823@critter.freebsd.dk> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-DCC-ZID-Univie-Metrics: imap 4244; Body=0 Fuz1=0 Fuz2=0 cc: freebsd-geom@freebsd.org Subject: Re: Error checking for g_mod_event() and friends X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Jan 2004 15:39:12 -0000 On Tue, 27 Jan 2004, Poul-Henning Kamp wrote: > In message <20040127160001.N92925@pcle2.cc.univie.ac.at>, Lukas Ertl writes: > > > >In the geom_vinum case I allocate the "main" vinum geom in the init > >method, and this might fail. > > > >(Of course, this might not be the correct way to do it, but I couldn't > >think of another way.) > > You're right, it isn't :-) > > You should never allocate anything until you first time taste a disk > which looks like yours. Ok, then how do I spawn a complete class from the tasting routine of another class? regards, le -- Lukas Ertl eMail: l.ertl@univie.ac.at UNIX Systemadministrator Tel.: (+43 1) 4277-14073 Vienna University Computer Center Fax.: (+43 1) 4277-9140 University of Vienna http://mailbox.univie.ac.at/~le/ From owner-freebsd-geom@FreeBSD.ORG Tue Jan 27 07:46:29 2004 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9C27E16A4CE for ; Tue, 27 Jan 2004 07:46:29 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 107A743D77 for ; Tue, 27 Jan 2004 07:45:57 -0800 (PST) (envelope-from phk@phk.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.10/8.12.10) with ESMTP id i0RFjuuO005277; Tue, 27 Jan 2004 16:45:56 +0100 (CET) (envelope-from phk@phk.freebsd.dk) To: Lukas Ertl From: "Poul-Henning Kamp" In-Reply-To: Your message of "Tue, 27 Jan 2004 16:39:01 +0100." <20040127163829.I92925@pcle2.cc.univie.ac.at> Date: Tue, 27 Jan 2004 16:45:56 +0100 Message-ID: <5276.1075218356@critter.freebsd.dk> cc: freebsd-geom@freebsd.org Subject: Re: Error checking for g_mod_event() and friends X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Jan 2004 15:46:29 -0000 In message <20040127163829.I92925@pcle2.cc.univie.ac.at>, Lukas Ertl writes: >On Tue, 27 Jan 2004, Poul-Henning Kamp wrote: > >> In message <20040127160001.N92925@pcle2.cc.univie.ac.at>, Lukas Ertl writes: >> > >> >In the geom_vinum case I allocate the "main" vinum geom in the init >> >method, and this might fail. >> > >> >(Of course, this might not be the correct way to do it, but I couldn't >> >think of another way.) >> >> You're right, it isn't :-) >> >> You should never allocate anything until you first time taste a disk >> which looks like yours. > >Ok, then how do I spawn a complete class from the tasting routine of >another class? You don't. You initialize the classes when they are loaded. Once you taste something you like, you start creating "übergeom"s and what else you need. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. From owner-freebsd-geom@FreeBSD.ORG Tue Jan 27 07:57:54 2004 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CD9E416A4CE for ; Tue, 27 Jan 2004 07:57:54 -0800 (PST) Received: from mailbox.univie.ac.at (mailbox.univie.ac.at [131.130.1.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4436743D69 for ; Tue, 27 Jan 2004 07:57:51 -0800 (PST) (envelope-from l.ertl@univie.ac.at) Received: from pcle2.cc.univie.ac.at (pcle2.cc.univie.ac.at [131.130.2.177]) i0RFvdUQ093088; Tue, 27 Jan 2004 16:57:44 +0100 Date: Tue, 27 Jan 2004 16:57:39 +0100 (CET) From: Lukas Ertl To: Poul-Henning Kamp In-Reply-To: <5276.1075218356@critter.freebsd.dk> Message-ID: <20040127165312.R92925@pcle2.cc.univie.ac.at> References: <5276.1075218356@critter.freebsd.dk> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE X-DCC-ZID-Univie-Metrics: mailbox 4244; Body=0 Fuz1=0 Fuz2=0 cc: freebsd-geom@freebsd.org Subject: Re: Error checking for g_mod_event() and friends X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Jan 2004 15:57:54 -0000 On Tue, 27 Jan 2004, Poul-Henning Kamp wrote: > In message <20040127163829.I92925@pcle2.cc.univie.ac.at>, Lukas Ertl writ= es: > > > >Ok, then how do I spawn a complete class from the tasting routine of > >another class? > > You don't. > > You initialize the classes when they are loaded. Once you taste > something you like, you start creating "=FCbergeom"s and what else > you need. Ok, makes sense. So I need to re-think this. What I don't understand right now is: how do I create these "=FCbergeoms"? The problem I'm faced is this: I need to keep a copy of the vinum configuration somewhere where it isn't touched by an occasional orphaning and self-destruction massacre when a disk fails. My idea was to have a separate class VINUM that just holds the config, but isn't actually connected to the I/O path, so the other vinum geoms (for volume, plex, a.s.o.) could peek at the config and decide what to do. Pointers into the right direction are highly appreciated. regards, le --=20 Lukas Ertl eMail: l.ertl@univie.ac.at UNIX Systemadministrator Tel.: (+43 1) 4277-14073 Vienna University Computer Center Fax.: (+43 1) 4277-9140 University of Vienna http://mailbox.univie.ac.at/~le/ From owner-freebsd-geom@FreeBSD.ORG Wed Jan 28 05:52:31 2004 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 268D816A4CE for ; Wed, 28 Jan 2004 05:52:31 -0800 (PST) Received: from dell.c1b8.com (c1b8.com [213.217.144.10]) by mx1.FreeBSD.org (Postfix) with SMTP id 93FE143D5D for ; Wed, 28 Jan 2004 05:52:22 -0800 (PST) (envelope-from mailing@morettoni.net) Received: (qmail 67707 invoked from network); 28 Jan 2004 13:52:16 -0000 Received: from unknown (HELO home.morettoni.local) (151.44.90.28) by 0 with SMTP; 28 Jan 2004 13:52:16 -0000 Received: (qmail 27768 invoked by uid 1001); 28 Jan 2004 13:52:20 -0000 Date: Wed, 28 Jan 2004 14:52:20 +0100 From: Luca Morettoni To: freebsd-geom@freebsd.org Message-ID: <20040128135220.GA27707@morettoni.net> Mail-Followup-To: freebsd-geom@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i X-GPG-Key: http://morettoni.net/key X-GPG-Fingerprint: D69411BB/C329AED4592319826F12 3036B51E664FD69411BB Subject: good skeleton for geom X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Jan 2004 13:52:31 -0000 Hi guys, I try to develope some class for geom, but I'm a beginner on this section and I need information. To start testing I have been read sys/geom/* files... there's more docs online to get more hints? I have download phk's papers too! Thanks and excuse me for the bad english! -- Luca Morettoni - http://morettoni.net GPG keys avaiable at: http://morettoni.net/key Key fingerprint: D69411BB/C329AED4592319826F12 3036B51E664FD69411BB Current system: FreeBSD 5.2-CURRENT, up 17 hrs, 4 mins From owner-freebsd-geom@FreeBSD.ORG Wed Jan 28 14:32:41 2004 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7BE2116A4CE for ; Wed, 28 Jan 2004 14:32:41 -0800 (PST) Received: from mailbox.univie.ac.at (mailbox.univie.ac.at [131.130.1.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 117B943D31 for ; Wed, 28 Jan 2004 14:32:40 -0800 (PST) (envelope-from l.ertl@univie.ac.at) Received: from wireless (adslle.cc.univie.ac.at [131.130.102.11]) i0SMWVvr106530; Wed, 28 Jan 2004 23:32:33 +0100 Date: Wed, 28 Jan 2004 23:32:26 +0100 (CET) From: Lukas Ertl To: Poul-Henning Kamp In-Reply-To: <20040127165312.R92925@pcle2.cc.univie.ac.at> Message-ID: <20040128233159.Y614@korben.in.tern> References: <5276.1075218356@critter.freebsd.dk> <20040127165312.R92925@pcle2.cc.univie.ac.at> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE X-DCC-ZID-Univie-Metrics: mailbox 4244; Body=0 Fuz1=0 Fuz2=0 cc: freebsd-geom@freebsd.org Subject: Re: Error checking for g_mod_event() and friends X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Jan 2004 22:32:41 -0000 On Tue, 27 Jan 2004, Lukas Ertl wrote: > What I don't understand right now is: how do I create these "=FCbergeoms"= ? Ok, nevermind, I think I got it now. Thanks for the clarification. :-) regards, le --=20 Lukas Ertl eMail: l.ertl@univie.ac.at UNIX Systemadministrator Tel.: (+43 1) 4277-14073 Vienna University Computer Center Fax.: (+43 1) 4277-9140 University of Vienna http://mailbox.univie.ac.at/~le/ From owner-freebsd-geom@FreeBSD.ORG Thu Jan 29 12:28:43 2004 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DD69C16A4CE for ; Thu, 29 Jan 2004 12:28:43 -0800 (PST) Received: from trinity.supernews.net (trinity.ranger.supernews.net [216.168.1.22]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4E05D43D2F for ; Thu, 29 Jan 2004 12:28:43 -0800 (PST) (envelope-from andrew@supernews.net) Received: from andrew by trinity.supernews.net with local (Exim 4.24; FreeBSD) id 1AmImJ-0001In-6t; Thu, 29 Jan 2004 20:28:43 +0000 To: freebsd-geom@freebsd.org Date: Thu, 29 Jan 2004 20:28:34 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii From: "Andrew - Supernews" Message-Id: Subject: geom_fox? (multipathing) X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jan 2004 20:28:44 -0000 So I'm doing a little experimenting with FreeBSD and multipathing (using a SAN-attached storage array). Has anyone else looked into this to any extent, or should I just roll my sleeves up and fix anything that breaks? (I currently have a test environment for this stuff - dual-port Qlogic FC card talking to two separate SAN switches with a hefty disk array attached on both, and the ability to break any of the above at will in order to test failure conditions. I don't know how much time I have before I need to use the array for something else.) -- Andrew, Supernews http://www.supernews.com From owner-freebsd-geom@FreeBSD.ORG Thu Jan 29 13:35:52 2004 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9CC0916A4CF for ; Thu, 29 Jan 2004 13:35:52 -0800 (PST) Received: from milla.ask33.net (milla.ask33.net [217.197.166.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id E16CB43D2F for ; Thu, 29 Jan 2004 13:35:29 -0800 (PST) (envelope-from nick@milla.ask33.net) Received: by milla.ask33.net (Postfix, from userid 1001) id 059C53ABB5D; Thu, 29 Jan 2004 22:36:43 +0100 (CET) Date: Thu, 29 Jan 2004 22:36:42 +0100 From: Pawel Jakub Dawidek To: Andrew - Supernews Message-ID: <20040129213642.GD72053@garage.freebsd.pl> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="2qXFWqzzG3v1+95a" Content-Disposition: inline In-Reply-To: X-PGP-Key-URL: http://garage.freebsd.pl/jules.asc X-OS: FreeBSD 4.8-RELEASE-p13 i386 X-URL: http://garage.freebsd.pl User-Agent: Mutt/1.5.1i cc: freebsd-geom@freebsd.org Subject: Re: geom_fox? (multipathing) X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jan 2004 21:35:52 -0000 --2qXFWqzzG3v1+95a Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jan 29, 2004 at 08:28:34PM +0000, Andrew - Supernews wrote: +> So I'm doing a little experimenting with FreeBSD and multipathing +> (using a SAN-attached storage array). Has anyone else looked into this +> to any extent, or should I just roll my sleeves up and fix anything +> that breaks? Currently multipathing with ISP driver is not possible, because ISP driver when path is disconnected doesn't cancels request and doesn't returns an error to upper layers and there is no chance to detect such situation. +> (I currently have a test environment for this stuff - dual-port Qlogic +> FC card talking to two separate SAN switches with a hefty disk array +> attached on both, and the ability to break any of the above at will in +> order to test failure conditions. I don't know how much time I have +> before I need to use the array for something else.) GEOM_FOX AFAIK is only a proof-of-conecpt. I've full, finished multipathing implementation called GEOM_ROME. It support 3 algorithms of path selection: 1. Simple failover - when error is returned from a path, it is marked on given time as suspected and request goes to another path. After few (configurable) times of being suspected it is removed. 2. Round-robin - simple round-robin with failover, it allows to split requests between paths to improve performance. 3. "Smart" - path is selected depending on number of pending requests. There is also a experimental workaround for ISP issue: there is a thread that monitors sent requests and if request doesn't come back in given number of seconds is canceled, path is marked as suspected and request is sent through another path. It works well, but if path will be restored and there were pending requests in ISP driver they may finish and some newer data may be overwritten. Paths are added in two ways: 1. "Automatic" - depending on on-disk metadata, such path is automatically added when disk shows up in system. 2. "Manual" - there is no need for on-disk metadata - user configures which disks are paths. There is a configuration utility which looks like this: usage: romeconfig create [-v] [-b balance] [-s slice] [-S suspects] [-q qua= rantine] name path1 [path2 [...]] romeconfig destroy [-fv] name romeconfig attach [-v] name path1 [path2 [...]] romeconfig remove [-v] name path1 [path2 [...]] romeconfig operate [-v] [-b balance] [-s slice] [-S suspects] [-q qu= arantine] name romeconfig enable [-v] name path1 [path2 [...]] romeconfig suspect [-v] name path1 [path2 [...]] romeconfig disable [-v] name path1 [path2 [...]] romeconfig label [-v] [-b balance] [-s slice] [-S suspects] [-q quar= antine] name device1 [device2 [...]] romeconfig list balance can be: none, round-robin (rr), smart BUT... It was created on an order and I can't sell before ISP issue will be fixed.= .. I hope it will be fixed soon and I'll be able to commit it. --=20 Pawel Jakub Dawidek pawel@dawidek.net UNIX Systems Programmer/Administrator http://garage.freebsd.pl Am I Evil? Yes, I Am! http://cerber.sourceforge.net --2qXFWqzzG3v1+95a Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iQCVAwUBQBl86j/PhmMH/Mf1AQFGsAP5Abns2OrO25kPQEIx0lMCvYNi9+8tVBV6 9O9h9zD471AsKJsYuS7Nzgu9nWqNr8td0ekg6uaN+2eYUOgGfNHFE39BTZe2uAwM 2pB0sn7ufEuNuFGLATG5eZd3i/tjzPFuCm4/CEB2SdzvLdEc18TxSVk9EwN8mwdw SYC3KPhXs5o= =ZiNF -----END PGP SIGNATURE----- --2qXFWqzzG3v1+95a-- From owner-freebsd-geom@FreeBSD.ORG Thu Jan 29 14:42:58 2004 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B397016A4CE for ; Thu, 29 Jan 2004 14:42:58 -0800 (PST) Received: from trinity.supernews.net (trinity.ranger.supernews.net [216.168.1.22]) by mx1.FreeBSD.org (Postfix) with ESMTP id A67D243D1D for ; Thu, 29 Jan 2004 14:42:54 -0800 (PST) (envelope-from andrew@supernews.net) Received: from andrew by trinity.supernews.net with local (Exim 4.24; FreeBSD) id 1AmKs8-0004xE-Mi; Thu, 29 Jan 2004 22:42:52 +0000 To: Pawel Jakub Dawidek In-Reply-To: <20040129213642.GD72053@garage.freebsd.pl> (Pawel Jakub Dawidek's message of "Thu, 29 Jan 2004 22:36:42 +0100") References: <20040129213642.GD72053@garage.freebsd.pl> Date: Thu, 29 Jan 2004 22:42:35 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii From: "Andrew - Supernews" Message-Id: cc: freebsd-geom@freebsd.org Subject: Re: geom_fox? (multipathing) X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jan 2004 22:42:58 -0000 >>>>> "Pawel" == Pawel Jakub Dawidek writes: Pawel> Currently multipathing with ISP driver is not possible, Pawel> because ISP driver when path is disconnected doesn't cancels Pawel> request and doesn't returns an error to upper layers and there Pawel> is no chance to detect such situation. Yes, that was one of the issues I've been looking into. In the fabric case there are two different failure modes - the ISP->fabric link can fail (this one currently seems to hang forever until the link is restored) and the fabric->array link (or the array processor) can fail, which the ISP driver does detect (but which still doesn't seem to be handled right). The second of those is actually more important to me than the first. If there's anything I can do to help either with the ISP driver, or testing, let me know... Pawel> GEOM_FOX AFAIK is only a proof-of-conecpt. Yes, I was contemplating making it more than that, but it seems that this would duplicate part of your work. (You've gone further with it than I would have needed to go at this stage) -- Andrew, Supernews http://www.supernews.com From owner-freebsd-geom@FreeBSD.ORG Thu Jan 29 15:03:13 2004 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CDE5A16A4CE for ; Thu, 29 Jan 2004 15:03:13 -0800 (PST) Received: from mail.lovett.com (core.lovett.com [216.168.8.20]) by mx1.FreeBSD.org (Postfix) with ESMTP id DA42143D3F for ; Thu, 29 Jan 2004 15:03:12 -0800 (PST) (envelope-from ade@FreeBSD.org) Received: from ts46-02-qdr1249.mdfrd.or.charter.com ([66.169.242.225] helo=[192.168.1.2]) by mail.lovett.com with asmtp (Exim 4.30; FreeBSD) id 1AmLBj-000IbW-I6 for freebsd-geom@freebsd.org; Thu, 29 Jan 2004 23:03:07 +0000 From: Ade Lovett To: freebsd-geom@freebsd.org In-Reply-To: References: <20040129213642.GD72053@garage.freebsd.pl> Content-Type: text/plain Message-Id: <1075417414.93790.4.camel@gorf.lovett.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Thu, 29 Jan 2004 15:03:34 -0800 Content-Transfer-Encoding: 7bit Subject: Re: geom_fox? (multipathing) X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jan 2004 23:03:13 -0000 On Thu, 2004-01-29 at 14:42, Andrew - Supernews wrote: > If there's anything I can do to help either with the ISP driver, or > testing, let me know... Just to follow up on this particular aspect, as some of you may already be aware, I also work for Supernews as ${REALJOB} as the "tech czar" for want of a better title. We're currently engaged in a major project to completely move to FreeBSD (mixture of 4.x and 5.x, eventually going to 5.x) for all our systems - a reasonable percentage of this work has been carried out, and we're now on to the hard part. We have the hardware available for a pretty major testbed for a full multipathing geom instance, and, within reason, are able to offer access to these systems for those interested in making this happen. Regards, -aDe From owner-freebsd-geom@FreeBSD.ORG Fri Jan 30 12:28:55 2004 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DE74A16A4CE for ; Fri, 30 Jan 2004 12:28:55 -0800 (PST) Received: from cg.c.is (mail.hallo.is [193.4.194.51]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2429043D41 for ; Fri, 30 Jan 2004 12:28:54 -0800 (PST) (envelope-from thib@heimsnet.is) Received: from claufield.bitcode.org (bofh.bitcode.org [213.220.74.36]) by cg.c.is (8.12.9/8.12.9) with SMTP id i0UKSrwP13312188 for ; Fri, 30 Jan 2004 20:28:53 GMT Date: Fri, 30 Jan 2004 20:28:56 +0000 From: =?ISO-8859-1?Q?=DE=F3r=F0ur_=CDvar_Bj=F6rnsson?= To: freebsd-geom@freebsd.org Message-Id: <20040130202856.65e2acbb.thib@heimsnet.is> Organization: N/A X-Mailer: Sylpheed version 0.9.8a (GTK+ 1.2.10; i386-portbld-freebsd5.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: A question or maybe a request or something or other X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Jan 2004 20:28:56 -0000 First of all I would like to point out that I have always had a hard time finding subjects for my email's. :> I have been preparing myself to dive into GEOM/GBDE ( Maybe even a little code munching when the time comes) I was reading phk@ gbde paper ( wich he presented at bsdcon03 ) and I had an idea, I think that alot of other people have had the same idea but I have not seen it discussed anywhere. Now to the meat of it, I was wondering if there would be an option for setting a passphrase whom would initiate a self descrut sequence ( destroying all data on a particular disk when entered or even just a portion of the data on that disk ). This would be a fisable option in a real world situation if an attacker is putting pressure on somebody to give up the passphrase ( Well the victim might end up with a 9mm through his skull in a worst case scenario ) but still. Anyway this is just a thougt and I would like a comment about this or even I pointer if this already exists or is on the development schedule and if so I will have to get more friendly with google. -- Thordur Ivar thib@{heimsnet.is,bitcode.org} FreeBSD and Unix since 2001! http://www.bitcode.org - No sin is greater then ours - From owner-freebsd-geom@FreeBSD.ORG Fri Jan 30 12:30:27 2004 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 93BB316A4CE for ; Fri, 30 Jan 2004 12:30:27 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0D19B43D46 for ; Fri, 30 Jan 2004 12:30:26 -0800 (PST) (envelope-from phk@phk.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.10/8.12.10) with ESMTP id i0UKUNoJ010026; Fri, 30 Jan 2004 21:30:23 +0100 (CET) (envelope-from phk@phk.freebsd.dk) To: =?ISO-8859-1?Q?=DE=F3r=F0ur_=CDvar_Bj=F6rnsson?= From: "Poul-Henning Kamp" In-Reply-To: Your message of "Fri, 30 Jan 2004 20:28:56 GMT." <20040130202856.65e2acbb.thib@heimsnet.is> Date: Fri, 30 Jan 2004 21:30:23 +0100 Message-ID: <10025.1075494623@critter.freebsd.dk> cc: freebsd-geom@freebsd.org Subject: Re: A question or maybe a request or something or other X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Jan 2004 20:30:27 -0000 In message <20040130202856.65e2acbb.thib@heimsnet.is>, =?ISO-8859-1?Q?=DE=F3r=F0ur_=CDv ar_Bj=F6rnsson?= writes: >I was reading phk@ gbde paper ( wich he presented at bsdcon03 ) >and I had an idea, I think that alot of other people have had the >same idea but I have not seen it discussed anywhere. Now to the >meat of it, I was wondering if there would be an option for setting >a passphrase whom would initiate a self descrut sequence ( destroying >all data on a particular disk when entered or even just a portion >of the data on that disk ). This would be a fisable option in a >real world situation if an attacker is putting pressure on somebody >to give up the passphrase ( Well the victim might end up with a 9 >mm through his skull in a worst case scenario ) but still. This is planned, but not yet implemented for lack of time. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. From owner-freebsd-geom@FreeBSD.ORG Fri Jan 30 12:42:27 2004 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 26F9116A4CE for ; Fri, 30 Jan 2004 12:42:27 -0800 (PST) Received: from cg.c.is (mail.hallo.is [193.4.194.51]) by mx1.FreeBSD.org (Postfix) with ESMTP id D522743D6A for ; Fri, 30 Jan 2004 12:42:22 -0800 (PST) (envelope-from thib@heimsnet.is) Received: from claufield.bitcode.org (bofh.bitcode.org [213.220.74.36]) by cg.c.is (8.12.9/8.12.9) with SMTP id i0UKgLwP3481804 for ; Fri, 30 Jan 2004 20:42:22 GMT Date: Fri, 30 Jan 2004 20:42:24 +0000 From: Thordur Ivar Bjornsson To: freebsd-geom@freebsd.org Message-Id: <20040130204224.62d78d03.thib@heimsnet.is> In-Reply-To: <10025.1075494623@critter.freebsd.dk> References: <20040130202856.65e2acbb.thib@heimsnet.is> <10025.1075494623@critter.freebsd.dk> Organization: N/A X-Mailer: Sylpheed version 0.9.8a (GTK+ 1.2.10; i386-portbld-freebsd5.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: A question or maybe a request or something or other X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Jan 2004 20:42:27 -0000 > >On Fri, 30 Jan 2004 21:30:23 +0100 >"Poul-Henning Kamp" wrote: > This is planned, but not yet implemented for lack of time. > To avoid more of these questions is there a place where one might find the plans of future development and implementations? -- Thordur Ivar thib@{heimsnet.is,bitcode.org} FreeBSD and Unix since 2001! http://www.bitcode.org - No sin is greater the ours - From owner-freebsd-geom@FreeBSD.ORG Fri Jan 30 12:46:50 2004 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5028716A4CF for ; Fri, 30 Jan 2004 12:46:50 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 58E6643D45 for ; Fri, 30 Jan 2004 12:46:21 -0800 (PST) (envelope-from phk@phk.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.10/8.12.10) with ESMTP id i0UKk1oJ010763; Fri, 30 Jan 2004 21:46:01 +0100 (CET) (envelope-from phk@phk.freebsd.dk) To: Thordur Ivar Bjornsson From: "Poul-Henning Kamp" In-Reply-To: Your message of "Fri, 30 Jan 2004 20:42:24 GMT." <20040130204224.62d78d03.thib@heimsnet.is> Date: Fri, 30 Jan 2004 21:46:01 +0100 Message-ID: <10762.1075495561@critter.freebsd.dk> cc: freebsd-geom@freebsd.org Subject: Re: A question or maybe a request or something or other X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Jan 2004 20:46:50 -0000 In message <20040130204224.62d78d03.thib@heimsnet.is>, Thordur Ivar Bjornsson writes: >> >>On Fri, 30 Jan 2004 21:30:23 +0100 >>"Poul-Henning Kamp" wrote: > > >> This is planned, but not yet implemented for lack of time. >> > >To avoid more of these questions is there a place where one might >find the plans of future development and implementations? I do outline most of them in the paper actually, but not in a very structured manner. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. From owner-freebsd-geom@FreeBSD.ORG Fri Jan 30 13:00:53 2004 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1F5BC16A4CF for ; Fri, 30 Jan 2004 13:00:53 -0800 (PST) Received: from cg.c.is (mail.hallo.is [193.4.194.51]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0616F43D1F for ; Fri, 30 Jan 2004 13:00:51 -0800 (PST) (envelope-from thib@heimsnet.is) Received: from claufield.bitcode.org (bofh.bitcode.org [213.220.74.36]) by cg.c.is (8.12.9/8.12.9) with SMTP id i0UL0owP917590 for ; Fri, 30 Jan 2004 21:00:50 GMT Date: Fri, 30 Jan 2004 21:00:53 +0000 From: Thordur Ivar Bjornsson To: freebsd-geom@freebsd.org Message-Id: <20040130210053.3e0c70ab.thib@heimsnet.is> In-Reply-To: <10762.1075495561@critter.freebsd.dk> References: <20040130204224.62d78d03.thib@heimsnet.is> <10762.1075495561@critter.freebsd.dk> Organization: N/A X-Mailer: Sylpheed version 0.9.8a (GTK+ 1.2.10; i386-portbld-freebsd5.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: A question or maybe a request or something or other X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Jan 2004 21:00:53 -0000 On Fri, 30 Jan 2004 21:46:01 +0100 "Poul-Henning Kamp" wrote: > I do outline most of them in the paper actually, but not in a very > structured manner. I did notice that, but I would assume that new things had been added and old things deleted if you chatch my drift. -- Thordur Ivar thib@{heimsnet.is,bitcode.org} FreeBSD and Unix since 2001! http://www.bitcode.org - No sin is greater the ours - From owner-freebsd-geom@FreeBSD.ORG Fri Jan 30 13:08:19 2004 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 84EFB16A4CE for ; Fri, 30 Jan 2004 13:08:19 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 24C8043D1D for ; Fri, 30 Jan 2004 13:08:18 -0800 (PST) (envelope-from phk@phk.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.10/8.12.10) with ESMTP id i0UL8HoJ011083; Fri, 30 Jan 2004 22:08:17 +0100 (CET) (envelope-from phk@phk.freebsd.dk) To: Thordur Ivar Bjornsson From: "Poul-Henning Kamp" In-Reply-To: Your message of "Fri, 30 Jan 2004 21:00:53 GMT." <20040130210053.3e0c70ab.thib@heimsnet.is> Date: Fri, 30 Jan 2004 22:08:17 +0100 Message-ID: <11082.1075496897@critter.freebsd.dk> cc: freebsd-geom@freebsd.org Subject: Re: A question or maybe a request or something or other X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Jan 2004 21:08:19 -0000 In message <20040130210053.3e0c70ab.thib@heimsnet.is>, Thordur Ivar Bjornsson writes: >On Fri, 30 Jan 2004 21:46:01 +0100 >"Poul-Henning Kamp" wrote: > >> I do outline most of them in the paper actually, but not in a very >> structured manner. > >I did notice that, but I would assume that new things had been >added and old things deleted if you chatch my drift. No, unfortunately I havn't had much time to spend on GBDE recently. I did manage to spend some hours prototyping HW crypto support (using the www.soekris.com VPN1401 crypto-engine card) and it seems to work out all right. Most of the work to be done is actually on the userland gbde(8) program to add more of the planned options and stuff, and I already have a patch in my inbox I need to get down to and review. It's my plan to carve out a fixed minimum timeslot for GEOM/GBDE every week, but it hasn't quite worked out that way yet. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. From owner-freebsd-geom@FreeBSD.ORG Fri Jan 30 13:56:22 2004 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D1AA016A4CE; Fri, 30 Jan 2004 13:56:22 -0800 (PST) Received: from cg.c.is (mail.hallo.is [193.4.194.51]) by mx1.FreeBSD.org (Postfix) with ESMTP id 75B5B43D45; Fri, 30 Jan 2004 13:56:21 -0800 (PST) (envelope-from thib@heimsnet.is) Received: from claufield.bitcode.org (bofh.bitcode.org [213.220.74.36]) by cg.c.is (8.12.9/8.12.9) with SMTP id i0ULuKwP5095660; Fri, 30 Jan 2004 21:56:20 GMT Date: Fri, 30 Jan 2004 21:56:24 +0000 From: Thordur Ivar Bjornsson To: phk@freebsd.org Message-Id: <20040130215624.34bfe231.thib@heimsnet.is> In-Reply-To: <11082.1075496897@critter.freebsd.dk> References: <20040130210053.3e0c70ab.thib@heimsnet.is> <11082.1075496897@critter.freebsd.dk> Organization: N/A X-Mailer: Sylpheed version 0.9.8a (GTK+ 1.2.10; i386-portbld-freebsd5.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: freebsd-geom@freebsd.org Subject: Re: A question or maybe a request or something or other X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Jan 2004 21:56:22 -0000 On Fri, 30 Jan 2004 22:08:17 +0100 "Poul-Henning Kamp" wrote: > No, unfortunately I havn't had much time to spend on GBDE recently. To bad, but one must keep his priorities straight. > I did manage to spend some hours prototyping HW crypto support > (using the www.soekris.com VPN1401 crypto-engine card) and it seems > to work out all right. Cool, I need to check that out ( I fancy one of these cards ;) > It's my plan to carve out a fixed minimum timeslot for GEOM/GBDE > every week, but it hasn't quite worked out that way yet. As i said before, one must keep his priorities straight. And at last, I just want to thank for the quick responses and ofcourse for the time and effort people have but into GEOM/GBDE and if I find me self in .dk I might just buy you a beer ( although this software is not under the BeerWare licsense ;) -- Thordur Ivar thib@{heimsnet.is,bitcode.org} FreeBSD and Unix since 2001! http://www.bitcode.org - No sin is greater the ours - From owner-freebsd-geom@FreeBSD.ORG Fri Jan 30 13:59:18 2004 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7A63416A4CE for ; Fri, 30 Jan 2004 13:59:18 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 02A1C43D2D for ; Fri, 30 Jan 2004 13:59:17 -0800 (PST) (envelope-from phk@phk.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.10/8.12.10) with ESMTP id i0ULxEoJ011617; Fri, 30 Jan 2004 22:59:14 +0100 (CET) (envelope-from phk@phk.freebsd.dk) To: Thordur Ivar Bjornsson From: "Poul-Henning Kamp" In-Reply-To: Your message of "Fri, 30 Jan 2004 21:56:24 GMT." <20040130215624.34bfe231.thib@heimsnet.is> Date: Fri, 30 Jan 2004 22:59:14 +0100 Message-ID: <11616.1075499954@critter.freebsd.dk> cc: freebsd-geom@freebsd.org Subject: Re: A question or maybe a request or something or other X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Jan 2004 21:59:18 -0000 In message <20040130215624.34bfe231.thib@heimsnet.is>, Thordur Ivar Bjornsson writes: >And at last, I just want to thank for the quick responses and >of course for the time and effort people have but into GEOM/GBDE and >if I find me self in .dk I might just buy you a beer ( although >this software is not under the BeerWare licsense ;) :-) -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. From owner-freebsd-geom@FreeBSD.ORG Sun Feb 1 10:13:13 2004 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 66C1416A4CE; Sun, 1 Feb 2004 10:13:13 -0800 (PST) Received: from mailbox.univie.ac.at (mail.univie.ac.at [131.130.1.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0DFA743D45; Sun, 1 Feb 2004 10:13:12 -0800 (PST) (envelope-from l.ertl@univie.ac.at) Received: from wireless (adslle.cc.univie.ac.at [131.130.102.11]) i11ID6YM301446; Sun, 1 Feb 2004 19:13:07 +0100 Date: Sun, 1 Feb 2004 19:12:57 +0100 (CET) From: Lukas Ertl To: freebsd-geom@freebsd.org Message-ID: <20040201190653.M613@korben.in.tern> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-DCC-ZID-Univie-Metrics: imap 4244; Body=0 Fuz1=0 Fuz2=0 cc: sos@freebsd.org Subject: Panic in g_disk_done() with atacontrol detach X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Feb 2004 18:13:13 -0000 Hi, I can provoke a panic when doing "atacontrol detach 1" if there's an active filesystem on the disk being detached. The panic happens in g_disk_done() at: devstat_end_transaction_bio(dp->d_devstat, bp2); The problem obviously is that ad_detach() calls disk_destroy() which nulls out the softc, and in g_disk_done() this softc is referenced again. The question is: is this an unsupported operation in the sense of "don't do that"? If yes, then "atacontrol detach" should probably refuse to do the actual detach when there are I/O requests running, this would prevent a lot of foot shooting. regards, le -- Lukas Ertl eMail: l.ertl@univie.ac.at UNIX Systemadministrator Tel.: (+43 1) 4277-14073 Vienna University Computer Center Fax.: (+43 1) 4277-9140 University of Vienna http://mailbox.univie.ac.at/~le/ From owner-freebsd-geom@FreeBSD.ORG Sun Feb 1 10:26:26 2004 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7807416A4CE; Sun, 1 Feb 2004 10:26:26 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6468743D31; Sun, 1 Feb 2004 10:26:24 -0800 (PST) (envelope-from phk@phk.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.10/8.12.10) with ESMTP id i11IQLoJ030785; Sun, 1 Feb 2004 19:26:22 +0100 (CET) (envelope-from phk@phk.freebsd.dk) To: Lukas Ertl From: "Poul-Henning Kamp" In-Reply-To: Your message of "Sun, 01 Feb 2004 19:12:57 +0100." <20040201190653.M613@korben.in.tern> Date: Sun, 01 Feb 2004 19:26:21 +0100 Message-ID: <30784.1075659981@critter.freebsd.dk> cc: sos@freebsd.org cc: freebsd-geom@freebsd.org Subject: Re: Panic in g_disk_done() with atacontrol detach X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Feb 2004 18:26:26 -0000 In message <20040201190653.M613@korben.in.tern>, Lukas Ertl writes: >Hi, > >I can provoke a panic when doing "atacontrol detach 1" if there's an >active filesystem on the disk being detached. The panic happens in >g_disk_done() at: > > devstat_end_transaction_bio(dp->d_devstat, bp2); > >The problem obviously is that ad_detach() calls disk_destroy() which nulls >out the softc, and in g_disk_done() this softc is referenced again. > >The question is: is this an unsupported operation in the sense of "don't >do that"? If yes, then "atacontrol detach" should probably refuse to do >the actual detach when there are I/O requests running, this would prevent >a lot of foot shooting. No, this should work. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. From owner-freebsd-geom@FreeBSD.ORG Sun Feb 1 13:30:15 2004 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 67A2116A4CE; Sun, 1 Feb 2004 13:30:15 -0800 (PST) Received: from mailbox.univie.ac.at (mail.univie.ac.at [131.130.1.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4028843D48; Sun, 1 Feb 2004 13:30:04 -0800 (PST) (envelope-from l.ertl@univie.ac.at) Received: from wireless (adslle.cc.univie.ac.at [131.130.102.11]) i11LTv37412572; Sun, 1 Feb 2004 22:29:59 +0100 Date: Sun, 1 Feb 2004 22:29:54 +0100 (CET) From: Lukas Ertl To: Poul-Henning Kamp In-Reply-To: <30784.1075659981@critter.freebsd.dk> Message-ID: <20040201222823.M616@korben.in.tern> References: <30784.1075659981@critter.freebsd.dk> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-DCC-ZID-Univie-Metrics: imap 4241; Body=3 Fuz1=3 Fuz2=3 cc: sos@freebsd.org cc: freebsd-geom@freebsd.org Subject: Re: Panic in g_disk_done() with atacontrol detach X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Feb 2004 21:30:15 -0000 On Sun, 1 Feb 2004, Poul-Henning Kamp wrote: > In message <20040201190653.M613@korben.in.tern>, Lukas Ertl writes: > >The problem obviously is that ad_detach() calls disk_destroy() which nulls > >out the softc, and in g_disk_done() this softc is referenced again. > > > >The question is: is this an unsupported operation in the sense of "don't > >do that"? If yes, then "atacontrol detach" should probably refuse to do > >the actual detach when there are I/O requests running, this would prevent > >a lot of foot shooting. > > No, this should work. Ok, but just commenting out the "gp->softc = NULL" statements apparently aren't the way to go, cause then I end up in a panic somewhere in the softupdate code... Any hints how to properly do this? regards, le -- Lukas Ertl eMail: l.ertl@univie.ac.at UNIX Systemadministrator Tel.: (+43 1) 4277-14073 Vienna University Computer Center Fax.: (+43 1) 4277-9140 University of Vienna http://mailbox.univie.ac.at/~le/ From owner-freebsd-geom@FreeBSD.ORG Sun Feb 1 13:32:50 2004 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4CC8216A4CE; Sun, 1 Feb 2004 13:32:50 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id B4D0243D1F; Sun, 1 Feb 2004 13:32:48 -0800 (PST) (envelope-from phk@phk.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.10/8.12.10) with ESMTP id i11LWju4000719; Sun, 1 Feb 2004 22:32:46 +0100 (CET) (envelope-from phk@phk.freebsd.dk) To: Lukas Ertl From: "Poul-Henning Kamp" In-Reply-To: Your message of "Sun, 01 Feb 2004 22:29:54 +0100." <20040201222823.M616@korben.in.tern> Date: Sun, 01 Feb 2004 22:32:45 +0100 Message-ID: <718.1075671165@critter.freebsd.dk> cc: sos@freebsd.org cc: freebsd-geom@freebsd.org Subject: Re: Panic in g_disk_done() with atacontrol detach X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Feb 2004 21:32:50 -0000 In message <20040201222823.M616@korben.in.tern>, Lukas Ertl writes: >On Sun, 1 Feb 2004, Poul-Henning Kamp wrote: > >> In message <20040201190653.M613@korben.in.tern>, Lukas Ertl writes: >> >The problem obviously is that ad_detach() calls disk_destroy() which nulls >> >out the softc, and in g_disk_done() this softc is referenced again. >> > >> >The question is: is this an unsupported operation in the sense of "don't >> >do that"? If yes, then "atacontrol detach" should probably refuse to do >> >the actual detach when there are I/O requests running, this would prevent >> >a lot of foot shooting. >> >> No, this should work. > >Ok, but just commenting out the "gp->softc = NULL" statements apparently >aren't the way to go, cause then I end up in a panic somewhere in the >softupdate code... > >Any hints how to properly do this? I need to look a this in detail before I can answer, but the trick may be to move the removal of the devstat stuff earlier (ie: before the null'ing of the softc). -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. From owner-freebsd-geom@FreeBSD.ORG Mon Feb 2 05:32:53 2004 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C31D616A4CE for ; Mon, 2 Feb 2004 05:32:53 -0800 (PST) Received: from pasmtp.tele.dk (pasmtp.tele.dk [193.162.159.95]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7C33543D1D for ; Mon, 2 Feb 2004 05:32:52 -0800 (PST) (envelope-from xride@x12.dk) Received: from x12.dk (xforce.dk [80.164.11.218]) by pasmtp.tele.dk (Postfix) with ESMTP id 146401EC58B for ; Mon, 2 Feb 2004 14:32:49 +0100 (CET) Received: by x12.dk (Postfix, from userid 666) id A6A244D; Mon, 2 Feb 2004 14:32:48 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by x12.dk (Postfix) with ESMTP id 95BC838 for ; Mon, 2 Feb 2004 14:32:48 +0100 (CET) Date: Mon, 2 Feb 2004 14:32:48 +0100 (CET) From: Soeren Straarup To: freebsd-geom@freebsd.org Message-ID: <20040202142814.Q20673-100000@x12.dk> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Subject: Howto gonfig geom? X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Feb 2004 13:32:53 -0000 Is it possible to do this: sysctl -b kern.geom.confdot > foo.dot cat foo.dot > /dev/geom.ctl With a possitive result? In other words is it possible to write to geom.ctl in ascii? I have read that that is PHK's idea of configuring geom, but how is the real world? The reason for this question is that i have started to write a geom gui program to display the current status of geom and the version 42 should also be able to configuring geom via this gui. Best regards S=F8ren Soeren Straarup | aka OZ2DAK aka Xride FreeBSD wannabe | FreeBSD since 2.2.6-R If you see the light at the end of the tunnel, then make sure it is not a train.. From owner-freebsd-geom@FreeBSD.ORG Mon Feb 2 05:42:15 2004 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C7E4F16A4CE for ; Mon, 2 Feb 2004 05:42:15 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3F04643D4C for ; Mon, 2 Feb 2004 05:42:14 -0800 (PST) (envelope-from phk@phk.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.10/8.12.10) with ESMTP id i12DgCZU011729; Mon, 2 Feb 2004 14:42:12 +0100 (CET) (envelope-from phk@phk.freebsd.dk) To: Soeren Straarup From: "Poul-Henning Kamp" In-Reply-To: Your message of "Mon, 02 Feb 2004 14:32:48 +0100." <20040202142814.Q20673-100000@x12.dk> Date: Mon, 02 Feb 2004 14:42:12 +0100 Message-ID: <11728.1075729332@critter.freebsd.dk> cc: freebsd-geom@freebsd.org Subject: Re: Howto gonfig geom? X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Feb 2004 13:42:15 -0000 In message <20040202142814.Q20673-100000@x12.dk>, Soeren Straarup writes: > >Is it possible to do this: > >sysctl -b kern.geom.confdot > foo.dot >cat foo.dot > /dev/geom.ctl > >With a possitive result? No. See the fdisk(8) or bsdlabel(8) programs for examples. >In other words is it possible to write to geom.ctl in ascii? >I have read that that is PHK's idea of configuring geom, but how is the >real world? the sysctls return a "state picture", ie, they describe the way things are right now. Configuration happens by telling what change to make ("add this", "delete this", "change this"), not by giving a complete picture ("make it look like this"). >The reason for this question is that i have started to write a geom gui >program to display the current status of geom and the version 42 should >also be able to configuring geom via this gui. This would happen by users clicking on things, maybe specifying extra parameters and then shipping it down with a g_ctl() call. We'll burn this bridge later :-) -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. From owner-freebsd-geom@FreeBSD.ORG Tue Feb 3 07:56:36 2004 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F048A16A4CF for ; Tue, 3 Feb 2004 07:56:35 -0800 (PST) Received: from mailbox.univie.ac.at (mailbox.univie.ac.at [131.130.1.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3B25843D1D for ; Tue, 3 Feb 2004 07:56:32 -0800 (PST) (envelope-from le@FreeBSD.org) Received: from wireless (adslle.cc.univie.ac.at [131.130.102.11]) by mailbox.univie.ac.at (8.12.10/8.12.10) with ESMTP id i13FuP8T124950 for ; Tue, 3 Feb 2004 16:56:27 +0100 Date: Tue, 3 Feb 2004 16:56:23 +0100 (CET) From: Lukas Ertl To: freebsd-geom@FreeBSD.org Message-ID: <20040203164816.X616@korben.in.tern> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-DCC-ZID-Univie-Metrics: mailbox 4243; Body=0 Fuz1=0 Fuz2=0 Subject: vinum and GEOM deadlock situation X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Feb 2004 15:56:36 -0000 Hi, I'm running into a deadlock situation with the following scenario: Have a vinum RAID5 with several disks mounted, pull out one of the disks, shortly thereafter all I/O hangs. I managed to identify the deadlock, but couldn't come up with a fix yet. Let's see. Here's the backtrace of the vinum process: (kgdb) defproc 512 512 c685da50 e3eac000 0 1 512 000200 1 vinum g_waitfor_event c6852200 frame 0 at 0xe3e865a4: ebp e3e865ec, eip 0xc04e20ba : add $0x4,%esp frame 1 at 0xe3e865ec: ebp e3e86610, eip 0xc04e19ad : add $0x4,%esp frame 2 at 0xe3e86610: ebp e3e86638, eip 0xc04b0873 :add $0x14,%esp frame 3 at 0xe3e86638: ebp e3e86660, eip 0xc04af9c7 : movl $0x0,(%esi) frame 4 at 0xe3e86660: ebp e3e86674, eip 0xc043e971 : push $0xc0678500 frame 5 at 0xe3e86674: ebp e3e868e8, eip 0xc042ffa2 :add $0x4,%esp frame 6 at 0xe3e868e8: ebp e3e868f4, eip 0xc042fd07 :add $0x4,%esp frame 7 at 0xe3e868f4: ebp e3e86918, eip 0xc043e531 : mov $0x0,%edx frame 8 at 0xe3e86918: ebp e3e86934, eip 0xc04af344 :mov %eax,0xfffffff0(%ebp) frame 9 at 0xe3e86934: ebp e3e86964, eip 0xc04b3256 :mov %eax,0xffffffe8(%ebp) frame 10 at 0xe3e86964: ebp e3e869a0, eip 0xc04b171d :lea 0xfffffff4(%ebp),%esp frame 11 at 0xe3e869a0: ebp e3e869d0, eip 0xc04b3256 :mov %eax,0xffffffe8(%ebp) frame 12 at 0xe3e869d0: ebp e3e86a0c, eip 0xc04b171d :lea 0xfffffff4(%ebp),%esp frame 13 at 0xe3e86a0c: ebp e3e86a3c, eip 0xc04b3256 :mov %eax,0xffffffe8(%ebp) frame 14 at 0xe3e86a3c: ebp e3e86a70, eip 0xc04aecc4 :mov %eax,%edi frame 15 at 0xe3e86a70: ebp e3e86a94, eip 0xc6780dfb :mov %eax,%edi frame 16 at 0xe3e86a94: ebp e3e86aa4, eip 0xc6780d62 : add $0x4,%esp frame 17 at 0xe3e86aa4: ebp e3e86ac8, eip 0xc6781798 :add $0x8,%esp frame 18 at 0xe3e86ac8: ebp e3e86ad8, eip 0xc677f7e2 :jmp 0xc677f89f frame 19 at 0xe3e86ad8: ebp e3e86ae0, eip 0xc677f9c4 :mov $0x0,%edx frame 20 at 0xe3e86ae0: ebp e3e86af8, eip 0xc67828bd : jmp 0xc67828c9 frame 21 at 0xe3e86af8: ebp e3e86b44, eip 0xc67820fe : jmp 0xc67822d4 frame 22 at 0xe3e86b44: ebp e3e86b70, eip 0xc04ad2ea : mov %eax,%esi frame 23 at 0xe3e86b70: ebp e3e86b7c, eip 0xc04acbef :leave frame 24 at 0xe3e86b7c: ebp e3e86c34, eip 0xc052f20f : add $0x4,%esp frame 25 at 0xe3e86c34: ebp e3e86cec, eip 0xc04fc6e8 : add $0x14,%esp frame 26 at 0xe3e86cec: ebp e3e86d40, eip 0xc060e297 : mov %eax,%ebx As you can see, it finally hangs in g_waitfor_event()+123: 328 do 329 tsleep(ep, PRIBIO, "g_waitfor_event", hz); 330 while (!(ep->flag & EV_DONE)); So, what is the g_event thread doing: (kgdb) defproc 2 2 c685da50 e1a5e000 0 0 0 000204 1 g_event GEOM topology c069dc58 frame 0 at 0xe1a38c50: ebp e1a38c98, eip 0xc04e20ba : add $0x4,%esp frame 1 at 0xe1a38c98: ebp e1a38cb0, eip 0xc04bfba9 : movl $0xe4,(%esp,1) frame 2 at 0xe1a38cb0: ebp e1a38cc8, eip 0xc04e11ec <_sx_xlock+100>: decl 0x48(%ebx) frame 3 at 0xe1a38cc8: ebp e1a38cfc, eip 0xc04b0352 : add $0x28,%esp frame 4 at 0xe1a38cfc: ebp e1a38d04, eip 0xc04b0549 : test %eax,%eax frame 5 at 0xe1a38d04: ebp e1a38d1c, eip 0xc04b12c9 :mov 0xc06ab164,%esi frame 6 at 0xe1a38d1c: ebp e1a38d34, eip 0xc04cb5f0 : push $0x325 It hangs at one_event()+66: 170 g_topology_lock(); OK, and here's the problem: the topology lock was grabbed in g_dev_close(), which you can see in the backtrace of the vinum process. Any ideas? regards, le -- Lukas Ertl http://mailbox.univie.ac.at/~le/ le@FreeBSD.org http://people.freebsd.org/~le/ From owner-freebsd-geom@FreeBSD.ORG Tue Feb 3 08:21:06 2004 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DB45616A4CE; Tue, 3 Feb 2004 08:21:06 -0800 (PST) Received: from milla.ask33.net (milla.ask33.net [217.197.166.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id 62D7643D1F; Tue, 3 Feb 2004 08:21:05 -0800 (PST) (envelope-from nick@milla.ask33.net) Received: by milla.ask33.net (Postfix, from userid 1001) id D15033ABB72; Tue, 3 Feb 2004 17:22:53 +0100 (CET) Date: Tue, 3 Feb 2004 17:22:53 +0100 From: Pawel Jakub Dawidek To: Lukas Ertl Message-ID: <20040203162253.GV4200@garage.freebsd.pl> References: <20040203164816.X616@korben.in.tern> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="qa1NXTiqN6KSzHv0" Content-Disposition: inline In-Reply-To: <20040203164816.X616@korben.in.tern> X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 4.8-RELEASE-p13 i386 X-URL: http://garage.freebsd.pl User-Agent: Mutt/1.5.1i cc: freebsd-geom@FreeBSD.org Subject: Re: vinum and GEOM deadlock situation X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Feb 2004 16:21:07 -0000 --qa1NXTiqN6KSzHv0 Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Feb 03, 2004 at 04:56:23PM +0100, Lukas Ertl wrote: +> I'm running into a deadlock situation with the following scenario: +>=20 +> Have a vinum RAID5 with several disks mounted, pull out one of the disks, +> shortly thereafter all I/O hangs. +>=20 +> I managed to identify the deadlock, but couldn't come up with a fix yet. +>=20 +> Let's see. Here's the backtrace of the vinum process: [...] Yes, the deadlock is obvious. Your thread is holding the topology lock while calling g_waitfor_event(). g_waitfor_event() is trying to grap topology lock from g_event thread, but your thread is holing it and waiting for g_waitfor_event() to finish. As you can see, there is a : /* g_topology_assert_not(); */ in g_waitfor_event(), because you can't call it while holding the topology lock. We should really find a way to implement g_topology_assert_not(). The problem here is, that dp->d_close() is called with the topology lock and d_close() is calling disk_destroy() and there topology lock should not be holded. --=20 Pawel Jakub Dawidek http://www.FreeBSD.org pjd@FreeBSD.org http://garage.freebsd.pl FreeBSD committer Am I Evil? Yes, I Am! --qa1NXTiqN6KSzHv0 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iD8DBQFAH8rdForvXbEpPzQRAsisAKCZDQSU+pkqx1tnI+qy11+/UDBYbwCg477A cKm5zub9FTlHy5VHPP8whus= =tCZO -----END PGP SIGNATURE----- --qa1NXTiqN6KSzHv0-- From owner-freebsd-geom@FreeBSD.ORG Tue Feb 3 10:10:35 2004 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F048516A4D3; Tue, 3 Feb 2004 10:10:34 -0800 (PST) Received: from mailbox.univie.ac.at (mail.univie.ac.at [131.130.1.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9B53543D46; Tue, 3 Feb 2004 10:10:32 -0800 (PST) (envelope-from le@FreeBSD.org) Received: from wireless (adslle.cc.univie.ac.at [131.130.102.11]) i13IAPNd566976; Tue, 3 Feb 2004 19:10:27 +0100 Date: Tue, 3 Feb 2004 19:10:23 +0100 (CET) From: Lukas Ertl To: Pawel Jakub Dawidek In-Reply-To: <20040203162253.GV4200@garage.freebsd.pl> Message-ID: <20040203190839.Y616@korben.in.tern> References: <20040203164816.X616@korben.in.tern> <20040203162253.GV4200@garage.freebsd.pl> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-DCC-ZID-Univie-Metrics: mailbox 4243; Body=0 Fuz1=0 Fuz2=0 cc: freebsd-geom@FreeBSD.org Subject: Re: vinum and GEOM deadlock situation X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Feb 2004 18:10:35 -0000 On Tue, 3 Feb 2004, Pawel Jakub Dawidek wrote: > On Tue, Feb 03, 2004 at 04:56:23PM +0100, Lukas Ertl wrote: > +> I'm running into a deadlock situation with the following scenario: > +> > +> Have a vinum RAID5 with several disks mounted, pull out one of the disks, > +> shortly thereafter all I/O hangs. > +> > +> I managed to identify the deadlock, but couldn't come up with a fix yet. > +> > +> Let's see. Here's the backtrace of the vinum process: > [...] > > Yes, the deadlock is obvious. > [...] > The problem here is, that dp->d_close() is called with the topology lock > and d_close() is calling disk_destroy() and there topology lock should > not be holded. I also think that the only place where we can drop and re-grab the topology lock is around the dp->d_close() call, but I'm not sure if there are any side effects. I'm gonna try it tomorrow. regards, le -- Lukas Ertl http://mailbox.univie.ac.at/~le/ le@FreeBSD.org http://people.freebsd.org/~le/ From owner-freebsd-geom@FreeBSD.ORG Tue Feb 3 11:12:40 2004 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2405B16A4CE; Tue, 3 Feb 2004 11:12:40 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id AD12243D48; Tue, 3 Feb 2004 11:12:37 -0800 (PST) (envelope-from phk@phk.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.10/8.12.10) with ESMTP id i13JCZDF013608; Tue, 3 Feb 2004 20:12:35 +0100 (CET) (envelope-from phk@phk.freebsd.dk) To: Lukas Ertl From: "Poul-Henning Kamp" In-Reply-To: Your message of "Tue, 03 Feb 2004 19:10:23 +0100." <20040203190839.Y616@korben.in.tern> Date: Tue, 03 Feb 2004 20:12:35 +0100 Message-ID: <13607.1075835555@critter.freebsd.dk> cc: Pawel Jakub Dawidek cc: freebsd-geom@freebsd.org Subject: Re: vinum and GEOM deadlock situation X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Feb 2004 19:12:40 -0000 In message <20040203190839.Y616@korben.in.tern>, Lukas Ertl writes: >On Tue, 3 Feb 2004, Pawel Jakub Dawidek wrote: > >> On Tue, Feb 03, 2004 at 04:56:23PM +0100, Lukas Ertl wrote: >> +> I'm running into a deadlock situation with the following scenario: >> +> >> +> Have a vinum RAID5 with several disks mounted, pull out one of the disks, >> +> shortly thereafter all I/O hangs. >> +> >> +> I managed to identify the deadlock, but couldn't come up with a fix yet. >> +> >> +> Let's see. Here's the backtrace of the vinum process: >> [...] >> >> Yes, the deadlock is obvious. >> [...] >> The problem here is, that dp->d_close() is called with the topology lock >> and d_close() is calling disk_destroy() and there topology lock should >> not be holded. > >I also think that the only place where we can drop and re-grab the >topology lock is around the dp->d_close() call, but I'm not sure if there >are any side effects. This is the kind of trouble I feared we would see if vinum was put in on the disk_*() API. The trouble is not only the g_topology() lock, but also Giant. And to make matter worse, the WITNESS order of those two are the "Giant is going away" rather than the more widespread "Giant is everywhere" order. I have no good suggestions for fixing it, most of the places I have had to deal with this (notably in the disk_* API) I have used the geom_event mechanism, but in this case you probably need an event mechanism which is "on the other side" where it does not hold the topology lock. Consider a task-queue. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. From owner-freebsd-geom@FreeBSD.ORG Tue Feb 3 14:46:25 2004 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CE6A316A4CE for ; Tue, 3 Feb 2004 14:46:25 -0800 (PST) Received: from mail.orangemail.sk (mail.orange.sk [213.151.200.4]) by mx1.FreeBSD.org (Postfix) with SMTP id 98DB143D3F for ; Tue, 3 Feb 2004 14:46:21 -0800 (PST) (envelope-from t0m1k@host.sk) Received: (qmail 5906 invoked from network); 3 Feb 2004 22:40:34 -0000 Received: from dial-221-1.orange.sk (HELO host.sk) ([213.151.221.1]) (envelope-sender ) by 0 (qmail-ldap-1.03) with SMTP for ; 3 Feb 2004 22:40:34 -0000 Message-ID: <402023CE.3090200@host.sk> Date: Tue, 03 Feb 2004 23:42:22 +0100 From: tommy User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.5) Gecko/20031208 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-geom@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on mail.orange.sk X-Spam-Level: ** X-Spam-Status: No, hits=2.3 required=5.0 tests=FROM_HAS_MIXED_NUMS, FROM_HAS_MIXED_NUMS3 autolearn=no version=2.60 Subject: Encrypting /usr/home X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Feb 2004 22:46:26 -0000 Hi guys! I'd like to encrypt the /home directory (separate partition) on my server using GBDE. I've found nothing on this topic (I've searched The Handbook, google.com and freebsd-geom@freebsd.org archive). Is there any (really ANY) tutorial how to do this? I would also like to have this filesystem auto-mounted on startup - I would type the password on the console... I've heard (or read) that it's possible to do this, but I can't find any information about it... Any suggestions are appreciated. Thanks in advance. Best regards, Tomas Kacmary - student From owner-freebsd-geom@FreeBSD.ORG Wed Feb 4 05:38:12 2004 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8CD5B16A4CE for ; Wed, 4 Feb 2004 05:38:12 -0800 (PST) Received: from milla.ask33.net (milla.ask33.net [217.197.166.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id 20B8F43D2F for ; Wed, 4 Feb 2004 05:38:09 -0800 (PST) (envelope-from nick@milla.ask33.net) Received: by milla.ask33.net (Postfix, from userid 1001) id 37F213ABB75; Wed, 4 Feb 2004 14:40:03 +0100 (CET) Date: Wed, 4 Feb 2004 14:40:03 +0100 From: Pawel Jakub Dawidek To: Poul-Henning Kamp Message-ID: <20040204134003.GG14639@garage.freebsd.pl> References: <20040126161300.GJ565@garage.freebsd.pl> <66984.1075133737@critter.freebsd.dk> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="+sHJum3is6Tsg7/J" Content-Disposition: inline In-Reply-To: <66984.1075133737@critter.freebsd.dk> X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 4.8-RELEASE-p13 i386 X-URL: http://garage.freebsd.pl User-Agent: Mutt/1.5.1i cc: Lukas Ertl cc: freebsd-geom@freebsd.org Subject: Re: Preventing deadlocks on the event queue. X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Feb 2004 13:38:12 -0000 --+sHJum3is6Tsg7/J Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jan 26, 2004 at 05:15:37PM +0100, Poul-Henning Kamp wrote: +> >+> > http://garage.freebsd.pl/patches/geom_event_deadlock.patch +> >+>=3D20 +> >+> Do you really want to make this a separate function? Since it's jus= t a +> >+> one-line comparison, wouldn't a macro suffice? +> > +> >I want to avoid exporting 'g_event_proc' from geom_kern.c (it is declar= eted +> >staticaly there). +>=20 +> Right, g_event_proc should stay local to geom_kern.c if at all possible. +>=20 +> I'm still trying to see if I can find a more elegant way to do it, but +> curproc/curthread is probably the trick. I think this is more elegant way: http://garage.freebsd.pl/patches/geom_event_deadlock.2.patch It will not be needed if we uncomment g_topology_assert_not(), but my previous patch will protect even from something like this: g_topology_unlock(); sx_xunlock(&g_eventstall); g_waitfor_event(); sx_xlock(&g_eventstall); g_topology_lock(); :) --=20 Pawel Jakub Dawidek http://www.FreeBSD.org pjd@FreeBSD.org http://garage.freebsd.pl FreeBSD committer Am I Evil? Yes, I Am! --+sHJum3is6Tsg7/J Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iD8DBQFAIPYzForvXbEpPzQRAjiTAJ9SjZzFclj6RTvwJzqFDftPI9FjoACgoLCl fwuqgXyRoDUrbjnCXY/woJ4= =zTN/ -----END PGP SIGNATURE----- --+sHJum3is6Tsg7/J-- From owner-freebsd-geom@FreeBSD.ORG Wed Feb 4 16:52:48 2004 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A61E716A546 for ; Wed, 4 Feb 2004 16:52:48 -0800 (PST) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9C82443D41 for ; Wed, 4 Feb 2004 16:52:47 -0800 (PST) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (IDENT:brdavis@localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.12.10/8.12.3) with ESMTP id i150qe2h025751 for ; Wed, 4 Feb 2004 16:52:40 -0800 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.12.10/8.12.3/Submit) id i150qee9025745 for freebsd-geom@freebsd.org; Wed, 4 Feb 2004 16:52:40 -0800 Date: Wed, 4 Feb 2004 16:52:40 -0800 From: Brooks Davis To: freebsd-geom@freebsd.org Message-ID: <20040205005240.GA31747@Odin.AC.HMC.Edu> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Qxx1br4bt0+wmkIi" Content-Disposition: inline User-Agent: Mutt/1.5.4i X-Virus-Scanned: by amavisd-milter (http://amavis.org/) on odin.ac.hmc.edu Subject: rc.d/gbde_swap problem X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Feb 2004 00:52:48 -0000 --Qxx1br4bt0+wmkIi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I'm doing to backing on the rc.d scripts to try and cleanup diskless booting and I noticed a problem with gbde_swap. It has a dependency on random which depends on mountcritlocal which depends on disks which gbde_swap provides thus creating a circular dependency. I think gbde_swap it too early do depend on random and should instead depend on initrandom. Users who need high-quality saved entropy this early will just have to be sure they set entropy_file to a location that is reachable early in the process so initrandom can use it. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --Qxx1br4bt0+wmkIi Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFAIZPWXY6L6fI4GtQRAlIhAKC526DYuWJPssBx76+43v9GD5/NmQCeOWfp u8t3Mz1LzhdS4n+fe0WIrNA= =hAMN -----END PGP SIGNATURE----- --Qxx1br4bt0+wmkIi-- From owner-freebsd-geom@FreeBSD.ORG Thu Feb 5 13:41:19 2004 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2C02816A4CE for ; Thu, 5 Feb 2004 13:41:19 -0800 (PST) Received: from smtp.des.no (flood.des.no [217.116.83.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6006B43D55 for ; Thu, 5 Feb 2004 13:41:15 -0800 (PST) (envelope-from des@des.no) Received: by smtp.des.no (Pony Express, from userid 666) id B92B75311; Thu, 5 Feb 2004 22:41:00 +0100 (CET) Received: from dwp.des.no (des.no [80.203.228.37]) by smtp.des.no (Pony Express) with ESMTP id 62EE65308; Thu, 5 Feb 2004 22:40:54 +0100 (CET) Received: by dwp.des.no (Postfix, from userid 2602) id 0B10D33C6F; Thu, 5 Feb 2004 22:40:54 +0100 (CET) To: Brooks Davis References: <20040205005240.GA31747@Odin.AC.HMC.Edu> From: des@des.no (Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?=) Date: Thu, 05 Feb 2004 22:40:54 +0100 In-Reply-To: <20040205005240.GA31747@Odin.AC.HMC.Edu> (Brooks Davis's message of "Wed, 4 Feb 2004 16:52:40 -0800") Message-ID: User-Agent: Gnus/5.090024 (Oort Gnus v0.24) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on flood.des.no X-Spam-Level: X-Spam-Status: No, hits=0.0 required=5.0 tests=AWL autolearn=no version=2.63 cc: freebsd-geom@freebsd.org Subject: Re: rc.d/gbde_swap problem X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Feb 2004 21:41:19 -0000 Brooks Davis writes: > I'm doing to backing on the rc.d scripts to try and cleanup diskless > booting and I noticed a problem with gbde_swap. It has a dependency on > random which depends on mountcritlocal which depends on disks which > gbde_swap provides thus creating a circular dependency. I think > gbde_swap it too early do depend on random and should instead depend on > initrandom. Users who need high-quality saved entropy this early will > just have to be sure they set entropy_file to a location that is > reachable early in the process so initrandom can use it. fixed, thanks. DES --=20 Dag-Erling Sm=F8rgrav - des@des.no From owner-freebsd-geom@FreeBSD.ORG Thu Feb 5 14:02:42 2004 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 92AE316A4CE for ; Thu, 5 Feb 2004 14:02:42 -0800 (PST) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4205543D41 for ; Thu, 5 Feb 2004 14:02:41 -0800 (PST) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (IDENT:brdavis@localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.12.10/8.12.3) with ESMTP id i15M2S2h023855; Thu, 5 Feb 2004 14:02:28 -0800 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.12.10/8.12.3/Submit) id i15M2Rmq023849; Thu, 5 Feb 2004 14:02:27 -0800 Date: Thu, 5 Feb 2004 14:02:27 -0800 From: Brooks Davis To: Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?= Message-ID: <20040205220227.GA4895@Odin.AC.HMC.Edu> References: <20040205005240.GA31747@Odin.AC.HMC.Edu> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="huq684BweRXVnRxX" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.4i X-Virus-Scanned: by amavisd-milter (http://amavis.org/) on odin.ac.hmc.edu cc: Brooks Davis cc: freebsd-geom@freebsd.org Subject: Re: rc.d/gbde_swap problem X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Feb 2004 22:02:42 -0000 --huq684BweRXVnRxX Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Feb 05, 2004 at 10:40:54PM +0100, Dag-Erling Sm=F8rgrav wrote: > Brooks Davis writes: > > I'm doing to backing on the rc.d scripts to try and cleanup diskless > > booting and I noticed a problem with gbde_swap. It has a dependency on > > random which depends on mountcritlocal which depends on disks which > > gbde_swap provides thus creating a circular dependency. I think > > gbde_swap it too early do depend on random and should instead depend on > > initrandom. Users who need high-quality saved entropy this early will > > just have to be sure they set entropy_file to a location that is > > reachable early in the process so initrandom can use it. >=20 > fixed, thanks. Thanks. It did occure to me last night that we do have another decent source of entropy at this point: the geom swap partitions themselves. If we just dd'd a small portion of the disk after an appropriate offset to avoid any metadata (is there any, I can't remember), we'd at least have something no worse then the ps, etc output we use as a default. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --huq684BweRXVnRxX Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFAIr1wXY6L6fI4GtQRArNVAJ0fXo9bU8eydUolJyICS0/MM72sVQCfe+Zn MJbwLNAh+Cwi70aSTK0WsLo= =t5ch -----END PGP SIGNATURE----- --huq684BweRXVnRxX-- From owner-freebsd-geom@FreeBSD.ORG Thu Feb 5 23:21:28 2004 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 28B3416A4CE for ; Thu, 5 Feb 2004 23:21:28 -0800 (PST) Received: from smtp.des.no (flood.des.no [217.116.83.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id F3B7743D46 for ; Thu, 5 Feb 2004 23:21:26 -0800 (PST) (envelope-from des@des.no) Received: by smtp.des.no (Pony Express, from userid 666) id 1883B5309; Fri, 6 Feb 2004 08:21:26 +0100 (CET) Received: from dwp.des.no (des.no [80.203.228.37]) by smtp.des.no (Pony Express) with ESMTP id BDDDA5308; Fri, 6 Feb 2004 08:21:19 +0100 (CET) Received: by dwp.des.no (Postfix, from userid 2602) id A287F33C68; Fri, 6 Feb 2004 08:21:19 +0100 (CET) To: Brooks Davis References: <20040205005240.GA31747@Odin.AC.HMC.Edu> <20040205220227.GA4895@Odin.AC.HMC.Edu> From: des@des.no (Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?=) Date: Fri, 06 Feb 2004 08:21:19 +0100 In-Reply-To: <20040205220227.GA4895@Odin.AC.HMC.Edu> (Brooks Davis's message of "Thu, 5 Feb 2004 14:02:27 -0800") Message-ID: User-Agent: Gnus/5.090024 (Oort Gnus v0.24) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on flood.des.no X-Spam-Level: X-Spam-Status: No, hits=0.0 required=5.0 tests=AWL autolearn=no version=2.63 cc: freebsd-geom@freebsd.org Subject: Re: rc.d/gbde_swap problem X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Feb 2004 07:21:28 -0000 Brooks Davis writes: > Thanks. It did occure to me last night that we do have another decent > source of entropy at this point: the geom swap partitions themselves. > If we just dd'd a small portion of the disk after an appropriate offset > to avoid any metadata (is there any, I can't remember), we'd at least > have something no worse then the ps, etc output we use as a default. on-disk data is subject to outside manipulation and therefore inherently unsafe. DES --=20 Dag-Erling Sm=F8rgrav - des@des.no From owner-freebsd-geom@FreeBSD.ORG Fri Feb 6 10:34:34 2004 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7CAE916A4CE for ; Fri, 6 Feb 2004 10:34:34 -0800 (PST) Received: from mail.orangemail.sk (mail.orange.sk [213.151.200.4]) by mx1.FreeBSD.org (Postfix) with SMTP id 01F7543D58 for ; Fri, 6 Feb 2004 10:34:30 -0800 (PST) (envelope-from t0m1k@host.sk) Received: (qmail 23620 invoked from network); 6 Feb 2004 18:28:23 -0000 Received: from dial-221-11.orange.sk (HELO host.sk) ([213.151.221.11]) (envelope-sender ) by 0 (qmail-ldap-1.03) with SMTP for ; 6 Feb 2004 18:28:23 -0000 Message-ID: <4023DE27.7050108@host.sk> Date: Fri, 06 Feb 2004 19:34:15 +0100 From: tommy User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.5) Gecko/20031208 X-Accept-Language: en-us, en MIME-Version: 1.0 To: paul@gromit.dlib.vt.edu Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on mail.orange.sk X-Spam-Level: ** X-Spam-Status: No, hits=2.3 required=5.0 tests=FROM_HAS_MIXED_NUMS, FROM_HAS_MIXED_NUMS3 autolearn=no version=2.60 cc: freebsd-geom@freebsd.org Subject: Re: Re: Encrypting /usr/home X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Feb 2004 18:34:34 -0000 Hi! I solved the problem the "quick and dirty" way. I've added gbde.sh into my /usr/local/etc/rc.d/: -----gbde.sh------- #!/bin/sh echo " gbde "; case "$1" in start) gbde attach /dev/ad0s1g -l /etc/gbde/ad0s1g && mount /dev/ad0s1g.bde /crypt; ;; stop) umount /crypt && gbde detach /dev/ad0s1g ;; esac exit 0 ------------------- And I've made a symlink /home -> /crypt I know it's not the brightest solution, but it works. Thanks again for your help. Regards, tommy From owner-freebsd-geom@FreeBSD.ORG Fri Feb 6 10:44:54 2004 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9951116A4CE for ; Fri, 6 Feb 2004 10:44:54 -0800 (PST) Received: from smtp.des.no (flood.des.no [217.116.83.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id B8D5843D46 for ; Fri, 6 Feb 2004 10:44:52 -0800 (PST) (envelope-from des@des.no) Received: by smtp.des.no (Pony Express, from userid 666) id B6763530D; Fri, 6 Feb 2004 19:44:51 +0100 (CET) Received: from dwp.des.no (des.no [80.203.228.37]) by smtp.des.no (Pony Express) with ESMTP id 7D0435309; Fri, 6 Feb 2004 19:44:45 +0100 (CET) Received: by dwp.des.no (Postfix, from userid 2602) id 623B033C68; Fri, 6 Feb 2004 19:44:45 +0100 (CET) To: tommy References: <4023DE27.7050108@host.sk> From: des@des.no (Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?=) Date: Fri, 06 Feb 2004 19:44:45 +0100 In-Reply-To: <4023DE27.7050108@host.sk> (t0m1k@host.sk's message of "Fri, 06 Feb 2004 19:34:15 +0100") Message-ID: User-Agent: Gnus/5.090024 (Oort Gnus v0.24) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on flood.des.no X-Spam-Level: X-Spam-Status: No, hits=0.0 required=5.0 tests=AWL autolearn=no version=2.63 cc: paul@gromit.dlib.vt.edu cc: freebsd-geom@freebsd.org Subject: Re: Encrypting /usr/home X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Feb 2004 18:44:54 -0000 tommy writes: > I solved the problem the "quick and dirty" way. I've added gbde.sh > into my /usr/local/etc/rc.d/: What does your script do that /etc/rc.d/gbde doesn't? DES --=20 Dag-Erling Sm=F8rgrav - des@des.no From owner-freebsd-geom@FreeBSD.ORG Sat Feb 7 02:49:34 2004 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D7E1816A4CE for ; Sat, 7 Feb 2004 02:49:34 -0800 (PST) Received: from mail.orangemail.sk (mail.orange.sk [213.151.200.4]) by mx1.FreeBSD.org (Postfix) with SMTP id 5092643D1D for ; Sat, 7 Feb 2004 02:49:34 -0800 (PST) (envelope-from t0m1k@host.sk) Received: (qmail 29126 invoked from network); 7 Feb 2004 10:43:27 -0000 Received: from dial-221-33.orange.sk (HELO host.sk) ([213.151.221.33]) (envelope-sender ) by 0 (qmail-ldap-1.03) with SMTP for ; 7 Feb 2004 10:43:27 -0000 Message-ID: <4024C28F.3010705@host.sk> Date: Sat, 07 Feb 2004 11:48:47 +0100 From: tommy User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.5) Gecko/20031208 X-Accept-Language: en-us, en MIME-Version: 1.0 To: des@des.no Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on mail.orange.sk X-Spam-Level: ** X-Spam-Status: No, hits=2.3 required=5.0 tests=FROM_HAS_MIXED_NUMS, FROM_HAS_MIXED_NUMS3 autolearn=no version=2.60 cc: freebsd-geom@freebsd.org Subject: Re: Encrypting /usr/home X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Feb 2004 10:49:35 -0000 > What does your script do that /etc/rc.d/gbde doesn't? Nothing. I've tried gbde_autoattach_all="YES" but it didn't work. I suppose, that I have to edit my /etc/fstab in order for this to work, but I don't know how. So that's why I did it that way. I've tried searching google, this mailing-list, freebsd handbook, but I couldn't find any information on how to edit /etc/fstab Thanks for your help. Best regards, Tomas Kacmary From owner-freebsd-geom@FreeBSD.ORG Sat Feb 7 03:07:19 2004 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 494F416A4CE for ; Sat, 7 Feb 2004 03:07:19 -0800 (PST) Received: from smtp.des.no (flood.des.no [217.116.83.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 186B743D1D for ; Sat, 7 Feb 2004 03:07:19 -0800 (PST) (envelope-from des@des.no) Received: by smtp.des.no (Pony Express, from userid 666) id 4CA215309; Sat, 7 Feb 2004 12:07:18 +0100 (CET) Received: from dwp.des.no (des.no [80.203.228.37]) by smtp.des.no (Pony Express) with ESMTP id EDD015308; Sat, 7 Feb 2004 12:07:11 +0100 (CET) Received: by dwp.des.no (Postfix, from userid 2602) id C887733C6F; Sat, 7 Feb 2004 12:07:11 +0100 (CET) To: tommy References: <4024C28F.3010705@host.sk> From: des@des.no (Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?=) Date: Sat, 07 Feb 2004 12:07:11 +0100 In-Reply-To: <4024C28F.3010705@host.sk> (t0m1k@host.sk's message of "Sat, 07 Feb 2004 11:48:47 +0100") Message-ID: User-Agent: Gnus/5.090024 (Oort Gnus v0.24) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on flood.des.no X-Spam-Level: X-Spam-Status: No, hits=0.0 required=5.0 tests=AWL autolearn=no version=2.63 cc: freebsd-geom@freebsd.org Subject: Re: Encrypting /usr/home X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Feb 2004 11:07:19 -0000 tommy writes: > Nothing. I've tried gbde_autoattach_all=3D"YES" but it didn't work. > I suppose, that I have to edit my /etc/fstab in order for this to > work, but I don't know how. Just add .bde to the device nodes that you want to have encrypted. > I've tried searching google, this mailing-list, freebsd handbook, > but I couldn't find any information on how to edit /etc/fstab Did you try reading rc.conf(5) or the script itself? DES --=20 Dag-Erling Sm=F8rgrav - des@des.no From owner-freebsd-geom@FreeBSD.ORG Sat Feb 7 14:33:05 2004 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DBA2516A4CE for ; Sat, 7 Feb 2004 14:33:05 -0800 (PST) Received: from mail.orangemail.sk (mail.orange.sk [213.151.200.4]) by mx1.FreeBSD.org (Postfix) with SMTP id 5412743EBD for ; Sat, 7 Feb 2004 14:33:05 -0800 (PST) (envelope-from t0m1k@host.sk) Received: (qmail 1010 invoked from network); 7 Feb 2004 22:26:55 -0000 Received: from dial-221-97.orange.sk (HELO host.sk) ([213.151.221.97]) (envelope-sender ) by 0 (qmail-ldap-1.03) with SMTP for ; 7 Feb 2004 22:26:55 -0000 Message-ID: <402567A3.4080904@host.sk> Date: Sat, 07 Feb 2004 23:33:07 +0100 From: tommy User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.5) Gecko/20031208 X-Accept-Language: en-us, en MIME-Version: 1.0 To: =?ISO-8859-1?Q?Dag-Erling_Sm=F8rgrav?= References: <4024C28F.3010705@host.sk> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on mail.orange.sk X-Spam-Level: ** X-Spam-Status: No, hits=2.3 required=5.0 tests=FROM_HAS_MIXED_NUMS, FROM_HAS_MIXED_NUMS3 autolearn=no version=2.60 cc: freebsd-geom@freebsd.org Subject: Re: Encrypting /usr/home X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Feb 2004 22:33:06 -0000 Dag-Erling Smørgrav wrote: >Just add .bde to the device nodes that you want to have encrypted. > > Thanks, I'll try this. >Did you try reading rc.conf(5) or the script itself? > > I've read rc.conf. I'll have a look on that script too. Thanks again. Best regards, Tomas Kacmary