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)
committerJeremy Allison <jra@samba.org>
Wed, 31 Oct 2018 20:27:21 +0000 (21:27 +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>
source3/modules/vfs_fruit.c

index f638d2b00472adc09cfbe8e2886d11ea6e63b2e0..60b74b48b6a44c23c3e479e5b9bf3d0234112c3e 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;
 };
 
 /*