vfs_fruit: proper VFS-stackable conversion of FinderInfo
commit3679be1eae506f88cb845fe845fa069cd9258b25
authorRalph Boehme <slow@samba.org>
Wed, 15 Nov 2017 15:52:48 +0000 (15 16:52 +0100)
committerKarolin Seeger <kseeger@samba.org>
Tue, 5 Dec 2017 09:32:11 +0000 (5 10:32 +0100)
tree407728d1561fd8da4908c20755e5a3e99d22be5c
parent0282d52e6905eb0e7e3a01bb5328bff89e84c227
vfs_fruit: proper VFS-stackable conversion of FinderInfo

This fixes the problem that conversion failed with
fruit:metadata=stream. Before we were calling ad_set() which stores the
metadata in the Netatalk compatible format.

Rewrite to fully go through the VFS by calling SMB_VFS_CREATE_FILE() and
SMB_VFS_PWRITE().

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

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Wed Nov 29 08:38:06 CET 2017 on sn-devel-144

(backported from commit 1da17204344a99a3bfa289355a996027a21814b8)
selftest/knownfail
source3/modules/vfs_fruit.c