1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

vfs_cifs - Use ntvfs request transport close to close downstream session

When upstream session closes, close the downstream session

Signed-off-by: Sam Liddicott <sam@liddicott.com>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
Sam Liddicott 2008-12-05 09:05:47 +00:00 committed by Stefan Metzmacher
parent 7d8f3cdbfc
commit 39e468f558

View File

@ -63,7 +63,17 @@ struct async_info {
void *parms;
};
#define SETUP_PID private->tree->session->pid = req->smbpid
#define CHECK_UPSTREAM_OPEN do { \
if (! private->transport->socket->sock) { \
req->async_states->state|=NTVFS_ASYNC_STATE_CLOSE; \
return NT_STATUS_CONNECTION_DISCONNECTED; \
} \
} while(0)
#define SETUP_PID do { \
private->tree->session->pid = req->smbpid; \
CHECK_UPSTREAM_OPEN; \
} while(0)
#define SETUP_FILE_HERE(f) do { \
f = ntvfs_handle_get_backend_data(io->generic.in.file.ntvfs, ntvfs); \