vfs_fruit: make use of adouble_open_from_base_fsp(ADOUBLE_RSRC) in fruit_open_rsrc_ad...
authorStefan Metzmacher <metze@samba.org>
Tue, 8 Dec 2020 15:29:10 +0000 (16:29 +0100)
committerRalph Boehme <slow@samba.org>
Thu, 21 Jan 2021 14:47:53 +0000 (14:47 +0000)
commit480516e3b850035d188b8dab8490c63e0a7afe80
tree151caeea85dcea473de27551d58c902edb56df1c
parent0b8c6e736afbec7ea1f69219c54a33031db3b8d9
vfs_fruit: make use of adouble_open_from_base_fsp(ADOUBLE_RSRC) in fruit_open_rsrc_adouble()

The key is that we return a fake_fd to the caller and only open
the '._' file in the background.

The next vfs backend should only see the fsp from
adouble_open_from_base_fsp, while the vfs backends above
should only see the fake_fd.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Thu Jan 21 14:47:53 UTC 2021 on sn-devel-184
source3/modules/vfs_fruit.c