]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
vfs_fruit: prepare struct fio for fake-fd and on-demand opening
authorRalph Boehme <slow@samba.org>
Wed, 22 Aug 2018 13:22:57 +0000 (15:22 +0200)
committerKarolin Seeger <kseeger@samba.org>
Tue, 6 Nov 2018 08:10:25 +0000 (09:10 +0100)
Not used for now, that comes in the subsequent commits.

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>
(cherry picked from commit 96320eccc9a63b793ff8d05842bce54f120286f9)

source3/modules/vfs_fruit.c

index bbfacad7811e7798b3d5147333faf907c462c6fc..4062b9302545bb43462260fecc12a79661116b54 100644 (file)
@@ -517,6 +517,17 @@ struct fio {
 
        /* Whether the create created the stream */
        bool created;
+
+       /*
+        * AFP_AfpInfo stream created, but not written yet, thus still a fake
+        * pipe fd. This is set to true in fruit_open_meta if there was no
+        * exisiting stream but the caller requested O_CREAT. It is later set to
+        * false when we get a write on the stream that then does open and
+        * create the stream.
+        */
+       bool fake_fd;
+       int flags;
+       int mode;
 };
 
 /*