]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
Revert "ntvfs_posix: No wbc_context required"
authorVolker Lendecke <vl@samba.org>
Tue, 18 Feb 2014 08:49:28 +0000 (09:49 +0100)
committerVolker Lendecke <vl@samba.org>
Tue, 18 Feb 2014 09:28:47 +0000 (10:28 +0100)
This reverts commit 55dd08c4e80827ffc4fe423f3e67aec499af06df.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source4/ntvfs/posix/vfs_posix.c
source4/ntvfs/posix/vfs_posix.h

index 72d0767c658def89d450b9e5d95a36c6543006dd..2ca024b6187e8dc23f0a8da9cb65deec6f332533 100644 (file)
@@ -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);
index 04d78f291892305d1b60d0ea15c0650157c7b688..9a03658040fbf6336654fae1c42d2634fe5fd86c 100644 (file)
@@ -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 */