From owner-freebsd-stable@FreeBSD.ORG Thu Jul 19 14:52:47 2007 Return-Path: X-Original-To: freebsd-stable@FreeBSD.org Delivered-To: freebsd-stable@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 03A5016A406 for ; Thu, 19 Jul 2007 14:52:47 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id B61B113C4BC for ; Thu, 19 Jul 2007 14:52:46 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.13.8/8.13.4) with ESMTP id l6JEotFt085347; Thu, 19 Jul 2007 08:50:56 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Thu, 19 Jul 2007 08:51:01 -0600 (MDT) Message-Id: <20070719.085101.-1860900987.imp@bsdimp.com> To: idiotbg@gmail.com From: "M. Warner Losh" In-Reply-To: <200707181942.45045.idiotbg@gmail.com> References: <20070718170559.GA11915@eos.sc1.parodius.com> <20070718173406.GA16748@soaustin.net> <200707181942.45045.idiotbg@gmail.com> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Thu, 19 Jul 2007 08:50:56 -0600 (MDT) Cc: josh@tcbug.org, linimon@lonesome.com, freebsd-stable@FreeBSD.org, LoN_Kamikaze@gmx.de Subject: Re: removing external usb hdd without unmounting causes reboot? 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: Thu, 19 Jul 2007 14:52:47 -0000 In message: <200707181942.45045.idiotbg@gmail.com> Momchil Ivanov writes: : On Wednesday 18 July 2007 19:34:06 Mark Linimon wrote: : > On Wed, Jul 18, 2007 at 10:05:59AM -0700, Jeremy Chadwick wrote: : > > Bottom line here is that the kernel panics when removing a USB device : > > that has filesystems mounted. : > : > s/USB // : : Just a dumb question: what does "umount -f" does? And doing something like : that when a fs goes away shouldn`t fix it? It won't fix it. The problem is dangling pointers to devices that no longer exist. And like all dangling references after 'free' you get bad thing happening. : If the problem is in general with a file system, regardless of the provider, : then what does one do when a mounted smbfs becomes unavailable due to remote : host down, no route to host or some other network related problems? Same : question for NFS mounted filesystems? In those cases, the device doesn't go away. Just the remote host. This is a big difference. Believe me, if it were easy, it would have been fixed. If it was moderate to fix, it would have been fixed. It is a hard problem that people have put lots of hours into to try to resolve. To imply otherwise is really insulting to all those people (myself include) that have tried to fix this. Warner