vfs_fruit: return fake pipe fd in fruit_open_meta_netatalk()
authorRalph Boehme <slow@samba.org>
Tue, 23 May 2017 15:44:16 +0000 (17:44 +0200)
committerVolker Lendecke <vl@samba.org>
Wed, 9 Aug 2017 16:41:06 +0000 (18:41 +0200)
commit7583ee6e1c558067e4c7a7351085fcc0e4240366
tree119d49e8918a377beedbae1e7dc13f3d3a3b46bf
parente92a39255e66f655e2758f0a71a01eaf258cf711
vfs_fruit: return fake pipe fd in fruit_open_meta_netatalk()

Do not open the basefile, that conflict with "kernel oplocks = yes". We
just return a fake file fd based on dup'ing a pipe fd and ensure all VFS
functions that go through vfs_fruit and work on the metadata stream can
deal with it.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=12791

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Richard Sharpe <realrichardsharpe@gmail.com>
Reviewed-by: Volker Lendecke <vl@samba.org>
source3/modules/vfs_fruit.c