Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965594AbXHaPiZ (ORCPT ); Fri, 31 Aug 2007 11:38:25 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758175AbXHaPiR (ORCPT ); Fri, 31 Aug 2007 11:38:17 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:54174 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757790AbXHaPiR (ORCPT ); Fri, 31 Aug 2007 11:38:17 -0400 Date: Fri, 31 Aug 2007 16:38:15 +0100 From: Al Viro To: Eduard-Gabriel Munteanu Cc: linux-kernel@vger.kernel.org Subject: Re: Forced unmounting for removable devices Message-ID: <20070831153815.GM21089@ftp.linux.org.uk> References: <46D622A5.2000205@aladin.ro> <46D83528.8090204@aladin.ro> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <46D83528.8090204@aladin.ro> User-Agent: Mutt/1.4.1i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1136 Lines: 22 On Fri, Aug 31, 2007 at 06:35:04PM +0300, Eduard-Gabriel Munteanu wrote: > *This message was transferred with a trial version of CommuniGate(r) Pro* > Salah Coronya wrote: > >There are patches in -mm for revokeat()/frevoke(), which can be used to > >implement exactly that. If a device "vanishes" (CD is removed in the > >middle of loading, USB pend rive yanked out the middle of I/O, NFS > >server thats gone MIA), A user-space program (maybe HAL) could iterate > >over the open files and revoke() them, at which point the system can be > >cleanly unmounted. Bull. It will not help you at all if a syscall is stuck. > Sounds promising. Is there any glibc version that implements these > syscalls (googling for 'glibc' and 'frevoke' didn't help)? I'd like to > implement and test this on my Linux box with HAL. Implementation that is there in -mm is broken; see discussion on the list. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/