diff options
author | Volker Lendecke <vl@samba.org> | 2014-02-18 09:49:28 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2014-02-18 10:28:47 +0100 |
commit | 90222dcdfd3de148e1f3da00d40427fee9a38d63 (patch) | |
tree | 5c57e18674deba08b6fc39e22926a381797f759e /source4/ntvfs | |
parent | d5e88c280c069ec8b8aaa3d5bee6bccbca9790b3 (diff) | |
download | samba-90222dcdfd3de148e1f3da00d40427fee9a38d63.tar.gz samba-90222dcdfd3de148e1f3da00d40427fee9a38d63.tar.xz samba-90222dcdfd3de148e1f3da00d40427fee9a38d63.zip |
Revert "ntvfs_posix: No wbc_context required"
This reverts commit 55dd08c4e80827ffc4fe423f3e67aec499af06df.
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'source4/ntvfs')
-rw-r--r-- | source4/ntvfs/posix/vfs_posix.c | 7 | ||||
-rw-r--r-- | source4/ntvfs/posix/vfs_posix.h | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/source4/ntvfs/posix/vfs_posix.c b/source4/ntvfs/posix/vfs_posix.c index 72d0767c658..2ca024b6187 100644 --- a/source4/ntvfs/posix/vfs_posix.c +++ b/source4/ntvfs/posix/vfs_posix.c @@ -271,6 +271,13 @@ static NTSTATUS pvfs_connect(struct ntvfs_module_context *ntvfs, pvfs->ntvfs->ctx->event_ctx, pvfs->ntvfs->ctx->config); + pvfs->wbc_ctx = wbc_init(pvfs, + pvfs->ntvfs->ctx->msg_ctx, + pvfs->ntvfs->ctx->event_ctx); + if (pvfs->wbc_ctx == NULL) { + return NT_STATUS_INTERNAL_DB_CORRUPTION; + } + /* allocate the search handle -> ptr tree */ pvfs->search.idtree = idr_init(pvfs); NT_STATUS_HAVE_NO_MEMORY(pvfs->search.idtree); diff --git a/source4/ntvfs/posix/vfs_posix.h b/source4/ntvfs/posix/vfs_posix.h index 04d78f29189..9a03658040f 100644 --- a/source4/ntvfs/posix/vfs_posix.h +++ b/source4/ntvfs/posix/vfs_posix.h @@ -47,6 +47,7 @@ struct pvfs_state { struct brl_context *brl_context; struct odb_context *odb_context; struct notify_context *notify_context; + struct wbc_context *wbc_ctx; /* a list of pending async requests. Needed to support ntcancel */ |