diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-10-18 13:27:22 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:00:01 -0500 |
commit | 142d295aa8e70477c85d1835f2907f81c4c3c519 (patch) | |
tree | f7914d649c4d89e1845637d187eb9e29aef2faf2 /source4/ntvfs/cifs | |
parent | 3406ac309252fc978fcfcbf39f85d7e9483b2758 (diff) | |
download | samba-142d295aa8e70477c85d1835f2907f81c4c3c519.tar.gz samba-142d295aa8e70477c85d1835f2907f81c4c3c519.tar.bz2 samba-142d295aa8e70477c85d1835f2907f81c4c3c519.zip |
r3039: This solves the problem of async handlers in ntvfs backends not being
in the right state when called. For example, when we use the unixuid
handler in the chain of handlers, and a backend decides to continue a
call asynchronously then we need to ensure that the continuation
happens with the right security context.
The solution is to add a new ntvfs operation ntvfs_async_setup(),
which calls all the way down through the layers, setting up anything
that is required, and takes a private pointer. The backend wanting to
make a async calls can use ntvfs_async_setup() to ensure that the
modules above it are called when doing async processing.
(This used to be commit a256e71029727fa1659ade6257085df537308c7d)
Diffstat (limited to 'source4/ntvfs/cifs')
-rw-r--r-- | source4/ntvfs/cifs/vfs_cifs.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/source4/ntvfs/cifs/vfs_cifs.c b/source4/ntvfs/cifs/vfs_cifs.c index 7c4a1d79d6..5b10e72411 100644 --- a/source4/ntvfs/cifs/vfs_cifs.c +++ b/source4/ntvfs/cifs/vfs_cifs.c @@ -564,6 +564,16 @@ static NTSTATUS cvfs_logoff(struct ntvfs_module_context *ntvfs, } /* + setup for an async call - nothing to do yet +*/ +static NTSTATUS cvfs_async_setup(struct ntvfs_module_context *ntvfs, + struct smbsrv_request *req, + void *private) +{ + return NT_STATUS_OK; +} + +/* lock a byte range */ static NTSTATUS cvfs_lock(struct ntvfs_module_context *ntvfs, @@ -748,6 +758,7 @@ NTSTATUS ntvfs_cifs_init(void) ops.search_close = cvfs_search_close; ops.trans = cvfs_trans; ops.logoff = cvfs_logoff; + ops.async_setup = cvfs_async_setup; if (lp_parm_bool(-1, "cifs", "maptrans2", False)) { ops.trans2 = cvfs_trans2; |