summaryrefslogtreecommitdiff
path: root/source4/ntvfs
diff options
context:
space:
mode:
authorSam Liddicott <sam@liddicott.com>2008-12-05 09:04:55 +0000
committerStefan Metzmacher <metze@samba.org>2008-12-05 12:52:13 +0100
commit7d8f3cdbfc741aa680f23018a434ae9409b69ef0 (patch)
treefe0bbd983a5fab006c58da93707b95b759ad2c3f /source4/ntvfs
parent0e723d8f7d918d2d1a1e9e26d976f016d5d97c94 (diff)
downloadsamba-7d8f3cdbfc741aa680f23018a434ae9409b69ef0.tar.gz
samba-7d8f3cdbfc741aa680f23018a434ae9409b69ef0.tar.bz2
samba-7d8f3cdbfc741aa680f23018a434ae9409b69ef0.zip
Let ntvfs request transport close via ntvfs_request state
[I can't swear that this covers all the smb2 cases, there are some reply functions that I can't trace properly] Add NTVFS_ASYNC_STATE_CLOSE bit to ntvfs_request->async_states->state so that the ntvfs layer can signify that the client transport should be closed, most useful for proxy servies, and most likely due to a forwarding transport having been closed. Signed-off-by: Sam Liddicott <sam@liddicott.com> Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source4/ntvfs')
-rw-r--r--source4/ntvfs/ntvfs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/ntvfs/ntvfs.h b/source4/ntvfs/ntvfs.h
index 0d5738d9f0..fc04d976f4 100644
--- a/source4/ntvfs/ntvfs.h
+++ b/source4/ntvfs/ntvfs.h
@@ -226,6 +226,7 @@ struct ntvfs_context {
/* a set of flags to control handling of request structures */
#define NTVFS_ASYNC_STATE_ASYNC (1<<1) /* the backend will answer this one later */
#define NTVFS_ASYNC_STATE_MAY_ASYNC (1<<2) /* the backend is allowed to answer async */
+#define NTVFS_ASYNC_STATE_CLOSE (1<<3) /* the backend session should be closed */
/* the ntvfs_async_state structure allows backend functions to
delay replying to requests. To use this, the front end must