Add "backup_intent" bool to files_struct.
authorJeremy Allison <jra@samba.org>
Wed, 5 Sep 2012 17:46:51 +0000 (10:46 -0700)
committerJeremy Allison <jra@samba.org>
Wed, 5 Sep 2012 18:43:31 +0000 (20:43 +0200)
Not used right now but I need this in the VFS to implement open for
backup/restore later and don't want to break the ABI once 4.0.0
ships.

source3/include/vfs.h

index f2cfd24cd39c0458951b43170b7c7091c5da102f..45895e7d84c250b85928c44e9803db9905a59a6b 100644 (file)
 /* Leave at 29 - not yet released. Remove l{list,get,set,remove}xattr - abartlet */
 /* Leave at 29 - not yet released. move to plain off_t - abartlet */
 /* Leave at 29 - not yet released. Remove sys_acl functions other than set and get - abartlet */
+/* Leave at 29 - not yet released. Added backup_intent bool to files_struct - JRA */
 #define SMB_VFS_INTERFACE_VERSION 29
 
 /*
@@ -226,6 +227,8 @@ typedef struct files_struct {
        bool delete_on_close;
        bool posix_open;
        bool is_sparse;
+       bool backup_intent; /* Handle was successfully opened with backup intent
+                               and opener has privilege to do so. */
        struct smb_filename *fsp_name;
        uint32_t name_hash;             /* Jenkins hash of full pathname. */
        uint64_t mid;                   /* Mid of the operation that created us. */