git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1867153
)
s3: VFS: vfs_glusterfs: Add tevent_req pointer to state struct in vfs_gluster_pread_s...
author
Jeremy Allison
<jra@samba.org>
Fri, 28 Feb 2020 23:33:35 +0000
(15:33 -0800)
committer
Jeremy Allison
<jra@samba.org>
Sun, 8 Mar 2020 18:07:43 +0000
(18:07 +0000)
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>
source3/modules/vfs_glusterfs.c
patch
|
blob
|
history
diff --git
a/source3/modules/vfs_glusterfs.c
b/source3/modules/vfs_glusterfs.c
index d4b68fba37671892f6634eb283f314568410b746..6598aadad17413a88f32f520ae5f343d04d9285c 100644
(file)
--- a/
source3/modules/vfs_glusterfs.c
+++ b/
source3/modules/vfs_glusterfs.c
@@
-713,6
+713,7
@@
static ssize_t vfs_gluster_pread(struct vfs_handle_struct *handle,
}
struct vfs_gluster_pread_state {
+ struct tevent_req *req;
ssize_t ret;
glfs_fd_t *fd;
void *buf;
@@
-748,6
+749,7
@@
static struct tevent_req *vfs_gluster_pread_send(struct vfs_handle_struct
return NULL;
}
+ state->req = req;
state->ret = -1;
state->fd = glfd;
state->buf = data;