Windows vs POSIX directory rename with open files behaviour

Ralph Böhme rb at sernet.de
Thu Jan 29 11:18:02 MST 2015


On Thu, Jan 29, 2015 at 09:24:34AM -0800, Jeremy Allison wrote:
> On Thu, Jan 29, 2015 at 02:55:01PM +0100, Ralph Böhme wrote:
> > On Mon, Jan 26, 2015 at 11:49:37AM -0800, Jeremy Allison wrote:
> > > On Mon, Jan 26, 2015 at 09:34:41PM +0200, Jussi Uosukainen wrote:
> > > > For what it's worth, I would really like for samba (or vfs_fruit) to
> > > > be bug compatible with OS X Server. It makes it easier to implement
> > > > samba environments to replace mac server environments.
> > > 
> > > OK, but we already have a problem with this.
> > > 
> > > OS X server allows open file rename over SMB1 with
> > > no AAPL create context or UNIX extensions. Windows
> > > doesn't.
> > > 
> > > Who should we be bug compatible with here ?
> > 
> > 
> > With both! :) With my change to vfs_fruit every OS get's its desired
> > behaviour, not for SMB1, but at least for SMB2.
> 
> OK, post it again :-).

Attached. git:
<https://git.samba.org/?p=slow/samba.git;a=log;h=refs/heads/posix_rename>

> But as I recall you did something to the fsp struct, which would be
> a VFS ABI change :-(.

hm, yes. I'm adding a flag "posix_dir_rename". I could try to reuse
posix_open, but I'm thinking that setting this to true for a create
open in vfs_fruit will trigger to much other stuff, at least according
to cscope->posix_open.

Thanks!
-Ralph

-- 
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de,mailto:kontakt@sernet.de


More information about the samba-technical mailing list