vfs_fruit: prepare fruit_pwrite_meta() for on-demand opening and writing
authorRalph Boehme <slow@samba.org>
Wed, 22 Aug 2018 13:21:08 +0000 (15:21 +0200)
committerJeremy Allison <jra@samba.org>
Wed, 31 Oct 2018 20:27:22 +0000 (21:27 +0100)
commit4a5c9a9e73230f640eb045a3c47af75b5be9f1d6
tree8f9f030f90e965eae8ee6f41f998dd9cb3476cf0
parent96320eccc9a63b793ff8d05842bce54f120286f9
vfs_fruit: prepare fruit_pwrite_meta() for on-demand opening and writing

This avoid creating files or blobs in our streams backend when a client
creates a stream but hasn't written anything yet. This is the only sane
way to implement the following semantics:

* client 1: create stream "file:foo"

* client 2: open stream "file:foo"

The second operation of client 2 must fail with NT_STATUS_NOT_FOUND.

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

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/vfs_fruit.c