]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
vfs: add fsp flag "have_proc_fds"
authorRalph Boehme <slow@samba.org>
Tue, 24 Nov 2020 11:20:23 +0000 (12:20 +0100)
committerRalph Boehme <slow@samba.org>
Wed, 16 Dec 2020 09:08:30 +0000 (09:08 +0000)
This flag is used by the VFS layer to tell the FSA layer that it is allowed to
reopen an fsp by using an exisiting pathref fd with /proc/PID/fd/FD to open a
full fd.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/include/vfs.h

index 3a0b77fc928b327f6288fc294286ce2771bf2f28..d46fe096aa1d6f8c597bafb1b5d762152ce9a540 100644 (file)
  * Version 44 - Add a flag 'is_pathref' to struct files_struct.
  * Version 44 - Add 'is_fsa' flag to struct files_struct.
  * Version 44 - Add 'have_proc_fds' flag to struct connection_struct.
+ * Version 44 - Add 'have_proc_fds' flag to struct files_struct.
  */
 
 #define SMB_VFS_INTERFACE_VERSION 44
@@ -389,6 +390,7 @@ typedef struct files_struct {
        struct {
                bool is_pathref : 1; /* See below */
                bool is_fsa : 1;     /* See below */
+               bool have_proc_fds : 1;
                bool kernel_share_modes_taken : 1;
                bool update_write_time_triggered : 1;
                bool update_write_time_on_close : 1;