summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2019-08-08 19:26:28 +0200
committerStefan Metzmacher <metze@samba.org>2019-09-09 14:23:41 +0000
commit66d92f37c3a643d97489a59bb6d1e75e91528c20 (patch)
treef67d670b6a73097cf4f969c4650a53dfb071d597 /source3/include
parent7471b0f63276e707784c98b832992ff08b1898ef (diff)
downloadsamba-66d92f37c3a643d97489a59bb6d1e75e91528c20.tar.gz
s3:locking: add brl_req_guid() and brl_req_mem_ctx() helper functions
This allows the vfs backend to detect a retry and keep state between the retries. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14113 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/locking.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/include/locking.h b/source3/include/locking.h
index 3e7560bef9e..0175db2dd47 100644
--- a/source3/include/locking.h
+++ b/source3/include/locking.h
@@ -30,6 +30,7 @@ enum brl_type {READ_LOCK, WRITE_LOCK, UNLOCK_LOCK};
enum brl_flavour {WINDOWS_LOCK = 0, POSIX_LOCK = 1};
#include "librpc/gen_ndr/server_id.h"
+#include "librpc/gen_ndr/misc.h"
/* This contains elements that differentiate locks. The smbpid is a
client supplied pid, and is essentially the locking context for
@@ -62,6 +63,7 @@ struct lock_struct {
};
struct smbd_lock_element {
+ struct GUID req_guid;
uint64_t smblctx;
enum brl_type brltype;
uint64_t offset;