summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2020-02-28 15:47:52 -0800
committerJeremy Allison <jra@samba.org>2020-03-08 18:07:44 +0000
commit058a7effd00b47e4778f7d680cc9c2a7d40d5fa8 (patch)
tree08acdf6780f940aca5348433bf34343c8a44335f /source3
parent99283871c5230e640a8102943ebed685459ed9af (diff)
downloadsamba-058a7effd00b47e4778f7d680cc9c2a7d40d5fa8.tar.gz
s3: VFS: vfs_glusterfs: Add tevent_req pointer to state struct in vfs_gluster_pwrite_state.
We will need this to detect when this request is outstanding but has been destroyed in a SHUTDOWN_CLOSE on this file. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14301 Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/modules/vfs_glusterfs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/modules/vfs_glusterfs.c b/source3/modules/vfs_glusterfs.c
index 7924f123cca..456e0c8a498 100644
--- a/source3/modules/vfs_glusterfs.c
+++ b/source3/modules/vfs_glusterfs.c
@@ -873,6 +873,7 @@ static ssize_t vfs_gluster_pread_recv(struct tevent_req *req,
}
struct vfs_gluster_pwrite_state {
+ struct tevent_req *req;
ssize_t ret;
glfs_fd_t *fd;
const void *buf;
@@ -908,6 +909,7 @@ static struct tevent_req *vfs_gluster_pwrite_send(struct vfs_handle_struct
return NULL;
}
+ state->req = req;
state->ret = -1;
state->fd = glfd;
state->buf = data;