Return-Path: linux-nfs-owner@vger.kernel.org Received: from lxorguk.ukuu.org.uk ([81.2.110.251]:37018 "EHLO lxorguk.ukuu.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755955Ab2LNPYw (ORCPT ); Fri, 14 Dec 2012 10:24:52 -0500 Date: Fri, 14 Dec 2012 15:30:00 +0000 From: Alan Cox To: Pavel Shilovsky Cc: David Laight , Christoph Hellwig , linux-fsdevel@vger.kernel.org, linux-cifs@vger.kernel.org, linux-nfs@vger.kernel.org, linux-kernel@vger.kernel.org, wine-devel@winehq.org Subject: Re: [PATCH 0/3] Add O_DENY* flags to fcntl and cifs Message-ID: <20121214153000.62af6cbc@pyramind.ukuu.org.uk> In-Reply-To: References: <1354818391-7968-1-git-send-email-piastry@etersoft.ru> <20121207161602.GA17710@infradead.org> <495d17310e0a687d446afc86def0f058@office.etersoft.ru> <20121212083401.GW5010@snowdrop.l8s.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-nfs-owner@vger.kernel.org List-ID: > We can make this feature (passing O_DENY* flags received from clients > to filesystem) can be turned on/off on Samba/NFS server to let this > particular use case work. In general, I think we really need to be > sure that nobody has a read access for files that a Windows process > opened with O_DENYREAD (because there can be important reasons for the > Windows process to do so). It should only affect windows emulated tasks, nothing else. If you want to do locking friendly behaviour you could also take lockf locks so that Linux domain code that *wishes* to be nice in this area behaves the way you want. Without that you break so much stuff its a horrible idea (eg backups, ubuntu one sync etc). Alan