From: Jeremy Allison Date: Fri, 28 Feb 2020 23:57:20 +0000 (-0800) Subject: s3: VFS: vfs_glusterfs: Add tevent_req pointer to state struct in vfs_gluster_fsync_s... X-Git-Tag: ldb-2.2.0~1495 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c0c088b1b786f0ba248960114191277e91bbba2f;p=thirdparty%2Fsamba.git s3: VFS: vfs_glusterfs: Add tevent_req pointer to state struct in vfs_gluster_fsync_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 Reviewed-by: Volker Lendecke --- diff --git a/source3/modules/vfs_glusterfs.c b/source3/modules/vfs_glusterfs.c index 4e978f168d6..d5d402d72ab 100644 --- a/source3/modules/vfs_glusterfs.c +++ b/source3/modules/vfs_glusterfs.c @@ -1114,6 +1114,7 @@ static int vfs_gluster_renameat(struct vfs_handle_struct *handle, } struct vfs_gluster_fsync_state { + struct tevent_req *req; ssize_t ret; glfs_fd_t *fd; @@ -1144,6 +1145,7 @@ static struct tevent_req *vfs_gluster_fsync_send(struct vfs_handle_struct return NULL; } + state->req = req; state->ret = -1; state->fd = glfd;