From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lo.gmane.org ([80.91.229.12]) by linuxtogo.org with esmtp (Exim 4.69) (envelope-from ) id 1OR4Yf-0002nA-Ho for openembedded-devel@lists.openembedded.org; Tue, 22 Jun 2010 16:34:38 +0200 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OR4UF-0005tF-Tp for openembedded-devel@lists.openembedded.org; Tue, 22 Jun 2010 16:30:03 +0200 Received: from s55917625.adsl.wanadoo.nl ([85.145.118.37]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 22 Jun 2010 16:30:03 +0200 Received: from k.kooi by s55917625.adsl.wanadoo.nl with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 22 Jun 2010 16:30:03 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: openembedded-devel@lists.openembedded.org From: Koen Kooi Date: Tue, 22 Jun 2010 16:29:04 +0200 Message-ID: References: <1277201329-1339-1-git-send-email-sledz@dresearch.de> <4C20A60D.40102@dresearch.de> Mime-Version: 1.0 X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: s55917625.adsl.wanadoo.nl User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.10) Gecko/20100524 Shredder/3.0.6pre In-Reply-To: <4C20A60D.40102@dresearch.de> X-Enigmail-Version: 1.0.1 X-SA-Exim-Connect-IP: 80.91.229.12 X-SA-Exim-Mail-From: gcho-openembedded-devel@m.gmane.org X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on discovery X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS, SPF_PASS autolearn=ham version=3.2.5 X-SA-Exim-Version: 4.2.1 (built Wed, 25 Jun 2008 17:20:07 +0000) X-SA-Exim-Scanned: Yes (on linuxtogo.org) Subject: Re: [PATCH] udev/mount.sh: try to kill active processes before umount X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: openembedded-devel@lists.openembedded.org List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Jun 2010 14:34:38 -0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 22-06-10 14:01, Steffen Sledz wrote: > Am 22.06.2010 13:02, schrieb Koen Kooi: >> Wouldn't a umount -l be a lot better in this case? > > I'm not sure if this would do the right things. > > mount.sh is called with REMOVE action when the device *is > disconnected* i.e. the filesystem is no longer available. > So i believe it is not possible to "cleanup all references > to the filesystem as soon as it is not busy anymore". > > I think killing all the processes is the only way here. I don't like the idea of killing random processes, especially is that process is smart enough to "move on" after a timeout. regards, Koen -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (Darwin) iD8DBQFMIMiwMkyGM64RGpERAiFVAKCzGeqyIx8Mh+EHcXz8/w3uK20D0ACfXR++ x3OaWYcazQ9Wc1/cObARf2E= =xOUQ -----END PGP SIGNATURE-----