git.samba.org
/
bbaumbach
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6afb06d
)
r7931: fixed a bug in the cifs backend found with the new test code
author
Andrew Tridgell
<tridge@samba.org>
Sun, 26 Jun 2005 11:34:34 +0000
(11:34 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 18:18:52 +0000
(13:18 -0500)
(This used to be commit
447d5fcc1bdbdeaf2d96dbcace36b480b5a18c73
)
source4/ntvfs/cifs/vfs_cifs.c
patch
|
blob
|
history
diff --git
a/source4/ntvfs/cifs/vfs_cifs.c
b/source4/ntvfs/cifs/vfs_cifs.c
index e283e12f247881b5514b213cf9d73b1f61e5c8b9..f263299cd7a09d35f0812835efee3235f4c7f65d 100644
(file)
--- a/
source4/ntvfs/cifs/vfs_cifs.c
+++ b/
source4/ntvfs/cifs/vfs_cifs.c
@@
-547,6
+547,17
@@
static NTSTATUS cvfs_write(struct ntvfs_module_context *ntvfs,
ASYNC_RECV_TAIL(wr, async_write);
}
+/*
+ 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
*/
@@
-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)
;
}
/*