diff options
Diffstat (limited to 'source4/ntvfs')
-rw-r--r-- | source4/ntvfs/cifs/vfs_cifs.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/source4/ntvfs/cifs/vfs_cifs.c b/source4/ntvfs/cifs/vfs_cifs.c index e283e12f24..f263299cd7 100644 --- a/source4/ntvfs/cifs/vfs_cifs.c +++ b/source4/ntvfs/cifs/vfs_cifs.c @@ -548,6 +548,17 @@ static NTSTATUS cvfs_write(struct ntvfs_module_context *ntvfs, } /* + a handler for async seek replies + */ +static void async_seek(struct smbcli_request *c_req) +{ + struct async_info *async = c_req->async.private; + struct smbsrv_request *req = async->req; + req->async_states->status = smb_raw_seek_recv(c_req, async->parms); + req->async_states->send_fn(req); +} + +/* seek in a file */ static NTSTATUS cvfs_seek(struct ntvfs_module_context *ntvfs, @@ -564,7 +575,7 @@ static NTSTATUS cvfs_seek(struct ntvfs_module_context *ntvfs, c_req = smb_raw_seek_send(private->tree, io); - SIMPLE_ASYNC_TAIL; + ASYNC_RECV_TAIL(io, async_seek); } /* |