From owner-freebsd-stable@FreeBSD.ORG Fri Nov 7 17:24:15 2008 Return-Path: Delivered-To: freebsd-stable@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A52DE1065686; Fri, 7 Nov 2008 17:24:15 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 66ABD8FC0C; Fri, 7 Nov 2008 17:24:14 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id TAA21675; Fri, 07 Nov 2008 19:24:11 +0200 (EET) (envelope-from avg@icyb.net.ua) Message-ID: <491479BB.10404@icyb.net.ua> Date: Fri, 07 Nov 2008 19:24:11 +0200 From: Andriy Gapon User-Agent: Thunderbird 2.0.0.17 (X11/20081106) MIME-Version: 1.0 To: Gavin Atkinson References: <49142861.6020304@icyb.net.ua> <1226072532.69416.4.camel@buffy.york.ac.uk> In-Reply-To: <1226072532.69416.4.camel@buffy.york.ac.uk> Content-Type: text/plain; charset=KOI8-U Content-Transfer-Encoding: 7bit Cc: freebsd-firewire@FreeBSD.org, FreeBSD Stable Subject: Re: firewire disk disconnected but da* remains? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Nov 2008 17:24:15 -0000 on 07/11/2008 17:42 Gavin Atkinson said the following: > On Fri, 2008-11-07 at 13:37 +0200, Andriy Gapon wrote: >> I am a firewire newbie, so forgive me the following question. >> I disconnect external firewire HDD, firewire subsystem notices this but >> da0 device entry persists. Is this correct/expected behavior? > > Yes. From sbp(4): > > Some users familiar with umass(4) might wonder why the device is not > detached at the CAM layer when the device is unplugged. It is detached > only if the device has not been plugged again during several bus resets. > This is for preventing to detach an active file system even when the > device cannot be probed correctly for some reason after a bus reset or > when the device is temporary disconnected because the user changes the > bus topology. If you want to force to detach the device, run ``fwcontrol > -r'' several times or set hw.firewire.hold_count=0 by sysctl(1). Thanks a lot! I should have RTFM. -- Andriy Gapon