From mboxrd@z Thu Jan 1 00:00:00 1970 From: Theodore Ts'o Subject: Re: [PATCH 0/3] Add O_DENY* flags to fcntl and cifs Date: Thu, 6 Dec 2012 16:31:33 -0500 Message-ID: <20121206213133.GB4821@thunk.org> References: <1354818391-7968-1-git-send-email-piastry@etersoft.ru> <20121206194949.7ab20d56@pyramind.ukuu.org.uk> <20121206195752.GA18585@samba2> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Alan Cox , Pavel Shilovsky , linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-fsdevel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, wine-devel-5vRYHf7vrtgdnm+yROfE0A@public.gmane.org, linux-nfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Jeremy Allison Return-path: Content-Disposition: inline In-Reply-To: <20121206195752.GA18585@samba2> Sender: linux-cifs-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-fsdevel.vger.kernel.org On Thu, Dec 06, 2012 at 11:57:52AM -0800, Jeremy Allison wrote: > > And this is where things get really ugly of course :-). > > For the CIFSFS client they're expecting to be able to > just ship them to a Windows server, where they'll > get the (insane) Windows semantics. These semantics > are not what would be wanted on a local filesystem. I'm confused; why would a userspace application need to be able to request this behavior? I can understand why an SMB client might depend on this so it can use Windows' insane cache coherency scheme. Are you trying to let Samba act as a middle man, where a remote file system is mounted on Linux, and then Samba will try to act as a SMB server, so you want to be able to pass through these semantics, i.e.: Windows SMB Server <---> Linux cifs remote file system <---> Linux Samba server <---> Windows SMB client Is this somewhat contrivuewd example the intended use case? Or something else? - Ted