From mboxrd@z Thu Jan 1 00:00:00 1970 From: Oleg Drokin Subject: Re: FMODE_EXEC or alike? Date: Tue, 21 Feb 2006 16:21:59 +0200 Message-ID: <20060221142159.GI5733@linuxhacker.ru> References: <20060220221948.GC5733@linuxhacker.ru> <20060220215122.7aa8bbe5.akpm@osdl.org> <1140530396.7864.63.camel@lade.trondhjem.org> <69304d110602210615m491829ccx9ba84edc8dafe1f7@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Return-path: Received: from linuxhacker.ru ([217.76.32.60]:7357 "EHLO shrek.linuxhacker.ru") by vger.kernel.org with ESMTP id S932259AbWBUOUp (ORCPT ); Tue, 21 Feb 2006 09:20:45 -0500 To: Antonio Vargas Content-Disposition: inline In-Reply-To: <69304d110602210615m491829ccx9ba84edc8dafe1f7@mail.gmail.com> Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org Hello! On Tue, Feb 21, 2006 at 03:15:53PM +0100, Antonio Vargas wrote: > > > We would need to understand whether this is needed by other distributed > > > filesystems and if so, whether the proposed implementation is suitable and > > > sufficient. > > Hmm.... We might possibly want to use that for NFSv4 at some point in > > order to deny write access to the file to other clients while it is in > > use. > When done with regards to failing a write if anyone has mapped the > file for executing it, or failing the execute if it's open/mmaped for > write, I can't really see the difference between local, remote and > clustered filesystems... Currently this is only possible locally, when both execution and opening for writing is performed on the same node. Then VFS enforces ETXTBSY. But if you do exec on one node and open for writing on another, VFSes on those nodes have no idea on what happens on all other nodes. Bye, Oleg