summaryrefslogtreecommitdiff
path: root/source4/ntvfs/cifs
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-06-26 11:34:34 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:18:52 -0500
commit173909efd5dd475d5951a98d753fdb6186b66ffb (patch)
tree5250c2a1d3f1c2c80b623c51324be850059dcc89 /source4/ntvfs/cifs
parent6afb06d8e1b2be5d72ddeaad4c87ce9bdca3922a (diff)
downloadsamba-173909efd5dd475d5951a98d753fdb6186b66ffb.tar.gz
samba-173909efd5dd475d5951a98d753fdb6186b66ffb.tar.bz2
samba-173909efd5dd475d5951a98d753fdb6186b66ffb.zip
r7931: fixed a bug in the cifs backend found with the new test code
(This used to be commit 447d5fcc1bdbdeaf2d96dbcace36b480b5a18c73)
Diffstat (limited to 'source4/ntvfs/cifs')
-rw-r--r--source4/ntvfs/cifs/vfs_cifs.c13
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);
}
/*