From owner-freebsd-mobile@FreeBSD.ORG Tue Mar 29 08:57:43 2005 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7B5CB16A4CE; Tue, 29 Mar 2005 08:57:43 +0000 (GMT) Received: from critter.freebsd.dk (f170.freebsd.dk [212.242.86.170]) by mx1.FreeBSD.org (Postfix) with ESMTP id BD2FB43D31; Tue, 29 Mar 2005 08:57:42 +0000 (GMT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.13.3/8.13.1) with ESMTP id j2T8vSm2040327; Tue, 29 Mar 2005 10:57:28 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: "M. Warner Losh" From: "Poul-Henning Kamp" In-Reply-To: Your message of "Tue, 29 Mar 2005 01:46:02 PDT." <20050329.014602.66168889.imp@bsdimp.com> Date: Tue, 29 Mar 2005 10:57:28 +0200 Message-ID: <40326.1112086648@critter.freebsd.dk> Sender: phk@critter.freebsd.dk cc: current@freebsd.org cc: vova@fbsd.ru cc: mdodd@freebsd.org cc: freebsd-mobile@freebsd.org cc: julian@elischer.org cc: ticso@cicely.de Subject: Re: Reattach/redetect allways connected umass device - is it possible ? X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Mar 2005 08:57:43 -0000 In message <20050329.014602.66168889.imp@bsdimp.com>, "M. Warner Losh" writes: >Then we'd have to poll every second in a sane way to accomplish that. >And finding the sane way that doesn't interfere with other bus usage >may be tricky. > >Unless we're going to give events to the actual user (meaning userland >entities that inform the user in a friendly way), I'd maintain that >there's no difference between knowing that the media is ejected >immediately, and the time of next use. The user experience will be >the same either way. The filesystems could get an upcall now when the disk disappears, but I have not had time to try to implement this sensibly in any filesystems yet. >In the short run, however, adding a few checks to critical parts of >the path, like daopen, would make the user experience much better. Absolutely, I just get uncomfortable when I see too much "...we can get away with...", I want us to stay the UNIX that solves problems the right way. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.