From owner-freebsd-current@FreeBSD.ORG Thu Aug 14 07:34:49 2003 Return-Path: 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 288A737B401 for ; Thu, 14 Aug 2003 07:34:49 -0700 (PDT) Received: from discrete.rycks.com (rycks.nfrance.com [80.247.227.63]) by mx1.FreeBSD.org (Postfix) with ESMTP id DF13243F75 for ; Thu, 14 Aug 2003 07:34:47 -0700 (PDT) (envelope-from olive@deep-ocean.org) Received: from [192.168.0.23] (ocortes.net1.nerim.net [213.41.136.105]) by discrete.rycks.com (Postfix) with ESMTP id 5D0AC1BD0D; Thu, 14 Aug 2003 16:34:46 +0200 (CEST) From: Olivier Cortes To: Jan Stocker In-Reply-To: <1060185309.676.1.camel@Twoflower.liebende.de> References: <1059835661.1198.7.camel@Twoflower.liebende.de> <1060185309.676.1.camel@Twoflower.liebende.de> Content-Type: text/plain; charset=UTF-8 Message-Id: <1060504397.777.15.camel@syrenna.deep-ocean.local> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.4 Date: Thu, 14 Aug 2003 14:30:06 +0000 Content-Transfer-Encoding: 8bit cc: Mailing-List FreeBSD Current Subject: Re: usbd does not use detach X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Thu, 14 Aug 2003 14:34:49 -0000 Le Mer 06/08/2003 à 17:55, Jan Stocker a écrit : > Does nobody has this problem or does noone use this feature? the problem i see with detach is the "utility" of the command. example: my digital photo recorder. i have an attach script to mount automatically the partition on the cooresponding umass/da device. works great, and this helps. but when detaching, the umount part should be done BEFORE detaching, not after. i can't find any good use for the detach hook. most of things should have been done before detaching, and i can't see how to do it without user interactivity, thus avoiding use of the detach hook. i once included a umount -f in the detach hook. after unplugin' the device, it resulted in a panic. i don't remember if the umount was causing it or if it was right after, when accessing the mount point or repluging the digital recorder. anyway, i learned that umount -f is not meant to be used often... perhaps not on top of usb. for now. i manually umount the device before unpluging it. my 2 cents... olivier