smbd: move files_struct.backup_intent to a bitfield
authorRalph Boehme <slow@samba.org>
Fri, 3 Apr 2020 06:01:45 +0000 (08:01 +0200)
committerJeremy Allison <jra@samba.org>
Fri, 3 Apr 2020 19:05:44 +0000 (19:05 +0000)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/include/vfs.h

index f3810736ba9359bc7e3391a6b44d1827186efbe5..ec3bbb4446597ebcf0e11e53b34808f2d0b77ec2 100644 (file)
@@ -371,6 +371,7 @@ typedef struct files_struct {
                bool initial_delete_on_close : 1;
                bool delete_on_close : 1;
                bool is_sparse : 1;
+               bool backup_intent : 1;
        } fsp_flags;
 
        struct tevent_timer *update_write_time_event;
@@ -392,8 +393,6 @@ typedef struct files_struct {
        int current_lock_count; /* Count the number of outstanding locks and pending locks. */
 
        uint64_t posix_flags;
-       bool backup_intent; /* Handle was successfully opened with backup intent
-                               and opener has privilege to do so. */
        bool use_ofd_locks; /* Are we using open file description locks ? */
        struct smb_filename *fsp_name;
        uint32_t name_hash;             /* Jenkins hash of full pathname. */