From owner-freebsd-current@FreeBSD.ORG Wed Aug 31 12:49:18 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AC26A16A420 for ; Wed, 31 Aug 2005 12:49:18 +0000 (GMT) (envelope-from anderson@centtech.com) Received: from mh1.centtech.com (moat3.centtech.com [207.200.51.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5197843D46 for ; Wed, 31 Aug 2005 12:49:18 +0000 (GMT) (envelope-from anderson@centtech.com) Received: from [10.177.171.220] (neutrino.centtech.com [10.177.171.220]) by mh1.centtech.com (8.13.1/8.13.1) with ESMTP id j7VCnDAP072497; Wed, 31 Aug 2005 07:49:17 -0500 (CDT) (envelope-from anderson@centtech.com) Message-ID: <4315A757.5020108@centtech.com> Date: Wed, 31 Aug 2005 07:49:27 -0500 From: Eric Anderson User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.10) Gecko/20050815 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Daniel O'Connor" References: <1125452228.740.3.camel@arbitor.homelinux.com> <47d0403c05083020044f6ac0be@mail.gmail.com> <200508311306.46876.doconnor@gsoft.com.au> In-Reply-To: <200508311306.46876.doconnor@gsoft.com.au> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.82/1049/Wed Aug 31 02:19:01 2005 on mh1.centtech.com X-Virus-Status: Clean Cc: freebsd-current@freebsd.org Subject: Re: panic after removing usb flash drive X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Aug 2005 12:49:18 -0000 Daniel O'Connor wrote: > On Wednesday 31 August 2005 12:34, Ben Kaduk wrote: > >>Of course, if you did unmount the filesystem before pulling the drive, then >>this shoule be looked into. > > > IMHO it would be really nice if you could tell the kernel that it should just > ditch the data (and whine to the log file) instead of panicing. > > For your "main" file systems the panic approach is sensible, but for removable > things it's more likely to cause data loss I think (because the panic could > eat data on your other drives). > > Although last time I saw this discussed I came away with the impression that > it wasn't possible for the kernel to do this..? (without substantial work > anyway) > Why not just use the automounter to mount/umount this for you? This probably won't get around umounting while in use, but you might be able to tell amd to use a umount -f on it. Eric -- ------------------------------------------------------------------------ Eric Anderson Sr. Systems Administrator Centaur Technology Anything that works is better than anything that doesn't. ------------------------------------------------------------------------