From: Ralph Boehme Date: Wed, 22 Aug 2018 13:22:57 +0000 (+0200) Subject: vfs_fruit: prepare struct fio for fake-fd and on-demand opening X-Git-Tag: samba-4.8.8~49 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a3cc00f7187a59bd2bb2c7bdd572456e70494804;p=thirdparty%2Fsamba.git vfs_fruit: prepare struct fio for fake-fd and on-demand opening 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 Reviewed-by: Jeremy Allison (cherry picked from commit 96320eccc9a63b793ff8d05842bce54f120286f9) --- diff --git a/source3/modules/vfs_fruit.c b/source3/modules/vfs_fruit.c index bbfacad7811..4062b930254 100644 --- a/source3/modules/vfs_fruit.c +++ b/source3/modules/vfs_fruit.c @@ -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; }; /*