From 43d619b2bb4f5fd02fc3d694cb7328fc69c71b5e Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 5 Sep 2012 10:46:51 -0700 Subject: [PATCH] Add "backup_intent" bool to files_struct. 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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source3/include/vfs.h b/source3/include/vfs.h index f2cfd24cd39..45895e7d84c 100644 --- a/source3/include/vfs.h +++ b/source3/include/vfs.h @@ -141,6 +141,7 @@ /* 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. */ -- 2.34.1