From owner-freebsd-geom@FreeBSD.ORG Thu Jun 17 11:33:39 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 A15E916A4CE for ; Thu, 17 Jun 2004 11:33:39 +0000 (GMT) Received: from imap.univie.ac.at (mailbox-lmtp.univie.ac.at [131.130.1.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 407D743D5A for ; Thu, 17 Jun 2004 11:33:38 +0000 (GMT) (envelope-from l.ertl@univie.ac.at) Received: from pcle2.cc.univie.ac.at (pcle2.cc.univie.ac.at [131.130.2.177]) by imap.univie.ac.at (8.12.10/8.12.10) with ESMTP id i5HBXVWj1160710 for ; Thu, 17 Jun 2004 13:33:33 +0200 Date: Thu, 17 Jun 2004 13:33:31 +0200 (CEST) From: Lukas Ertl To: geom@freebsd.org Message-ID: <20040617132625.A58154@pcle2.cc.univie.ac.at> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-DCC-ZID-Univie-Metrics: imap 4247; Body=1 Fuz1=1 Fuz2=1 Subject: GEOM: orphaning open devices 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, 17 Jun 2004 11:33:39 -0000 Hi GEOM hackers, I have the following scenario: a mirrored setup with two disks and a filesystem on top of it. Now, if I yank one disk while the fs is not mounted, everything works as expected: disk_destroy is called and the orphaning events make their way up. However, if the fs is mounted and I yank the disk, I don't see an orphaning event until the fs is unmounted again, so it seems disk_destroy is blocked or rather g_wither_geom waits until the device is closed, which makes it rather useless in a production area. Is this the intended behaviour? pjd@ suggested calling g_destroy_provider before g_wither_geom in g_destroy_disk. cheers, 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://homepage.univie.ac.at/l.ertl/