summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2012-09-05 10:46:51 -0700
committerJeremy Allison <jra@samba.org>2012-09-05 20:43:31 +0200
commit43d619b2bb4f5fd02fc3d694cb7328fc69c71b5e (patch)
tree283b8b4781ea8232164f43f09fe3425a55240aaa
parentd7fb237810f10c7a7d44cf425163152811eba64c (diff)
downloadsamba-43d619b2bb4f5fd02fc3d694cb7328fc69c71b5e.tar.gz
samba-43d619b2bb4f5fd02fc3d694cb7328fc69c71b5e.tar.bz2
samba-43d619b2bb4f5fd02fc3d694cb7328fc69c71b5e.zip
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.
-rw-r--r--source3/include/vfs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/include/vfs.h b/source3/include/vfs.h
index f2cfd24cd3..45895e7d84 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. */