From owner-freebsd-hackers@FreeBSD.ORG Thu May 7 11:34:02 2015 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A70B8C10 for ; Thu, 7 May 2015 11:34:02 +0000 (UTC) Received: from mail.turbocat.net (mail.turbocat.net [IPv6:2a01:4f8:d16:4514::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 68FCA177A for ; Thu, 7 May 2015 11:34:02 +0000 (UTC) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 1AF1A1FE023; Thu, 7 May 2015 13:34:00 +0200 (CEST) Message-ID: <554B4DD5.9090006@selasky.org> Date: Thu, 07 May 2015 13:34:45 +0200 From: Hans Petter Selasky User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Wojciech Puchar , "Julian H. Stacey" CC: "freebsd-hackers@freebsd.org" , Ryan Stone , NGie Cooper Subject: Re: What's required to make removal of a mounted USB stick safe? References: <201505062159.t46Lx0iZ028607@fire.js.berklix.net> In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 May 2015 11:34:02 -0000 On 05/07/15 13:21, Wojciech Puchar wrote: >> - Deep kernel work (dont hold your breath, see 30 above, & don't look >> at me :-) >> - Cobble up some C to run from user space, not as root, >> so that your UFS is not mounted, but accessed by user level >> programs (much like mwrite & mread for accessing DOS media of old) >> - man 8 amd : set a short timeout to auto unmount, >> it wont total solve your problem, but should lessen the frequency of >> panics. >> - Mount the USB media on a spare laptop running as an NFS+ AMD server, >> then access the FS via NFS from your real client big PC. When >> you pull the stick by accident forgetting its mounted, just the >> laptop crashes afte a bit, the AMD access on the other PC just >> hangs but doesnt crash. >> - Encourage A SOC (google summer of code) student to look at it, >> probably wont come to a solution though, see 30 above. >> - Toss money at the problem :-) If your company can afford some cash, >> either: >> - help fund FreeBSD Foundation & ask them to solve it, >> - Or pay some consultant somewhere to look at it, Here's a globaly >> geographicaly indexed list http://berklix.com/consultants/ >> maybe there's one near your company ? > - mount using fuse Hi, I'm very happy you understand this is not a USB problem ;-) --HPS