Windows vs POSIX directory rename with open files behaviour

Jussi Uosukainen jussi at mcare.pro
Mon Jan 26 12:34:41 MST 2015


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.

On 26 January 2015 at 19:07, Ralph Böhme <rb at sernet.de> wrote:
> On Fri, Jan 23, 2015 at 10:20:44AM -0800, Jeremy Allison wrote:
>> On Fri, Jan 23, 2015 at 05:47:44PM +0100, Ralph Böhme wrote:
>> > > > I'd say it's not a bug, but Apple is trying to squeeze out POSIX
>> > > > semantics.
>> > >
>> > > Well that's what the POSIX capability bit is for.
>> >
>> > We don't have that in an SMB2 context. :) I'm piggy packing POSIX
>> > behaviour on top of vfs_fruit, probably just like Apple is piggy
>> > packing it left and right as needed in order to make their POSIX
>> > client system happy.
>> >
>> > > > The original bug report that shoved me into investigating this was
>> > > > saying that the OS X Finder occasionally wasn't able to rename folder
>> > > > on a Samba 4.1.16 server, for the reason that there were open files
>> > > > (.DS_Store, used by the Finder itself to store directory appearance
>> > > > properties).
>> > >
>> > > Interesting. I think we need to know *exactly* what semantics
>> > > this requires before we try and emulate it.
>> >
>> > Not sure to what *this* refers to here, but if I thing for the
>> > *rename* semantics we need exactly this: in an SMB2 context with AAPL
>> > extension allow directory renames without checking for open files in
>> > the filesystem tree rooted in directory.
>> >
>> > > Sounds like a server bug to me.
>> >
>> > I don't think so. Sounds like poor-mans SMB2 POSIX extensions to me. :)
>> >
>> > > After all, those clients would fail against Windows in the same way.
>> >
>> > Definitely.
>> >
>> > > Unless it's the addition of the AAPL create context switch that
>> > > changes the behavior.
>> >
>> > The behaviour is the same irrespective of AAPL create contexts.
>> >
>> > Thanks for taking time and looking into this!
>>
>> Well thanks for doing the work to track it down.
>>
>> It's certainly an Apple server bug though.
>
> A feature, I swear! :)
>
>> Now question is, who are we bug-compatible with ? :-) :-).
>
> I'd like vfs_fruit to be as bug compatible as possible to Apple's
> implementation.
>
> 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



-- 
Jussi Uosukainen
+358500968036
jussi at mcare.pro


More information about the samba-technical mailing list