summaryrefslogtreecommitdiff
path: root/source4/ntvfs/posix/vfs_posix.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-10-22 01:19:07 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:02:24 -0500
commit1cd1b172d52a1fb336cd001ac0ca2fbf7e26a9a3 (patch)
tree83c4a7af22683e7d2cd0c3bad9655173ecf89c43 /source4/ntvfs/posix/vfs_posix.c
parent1ec644619d9607758cf090ea904eb2d84500481c (diff)
downloadsamba-1cd1b172d52a1fb336cd001ac0ca2fbf7e26a9a3.tar.gz
samba-1cd1b172d52a1fb336cd001ac0ca2fbf7e26a9a3.tar.bz2
samba-1cd1b172d52a1fb336cd001ac0ca2fbf7e26a9a3.zip
r3127: added the initial code for the open files database. Doesn't do
anything yet, but will soon be the core of the shares modes code. (This used to be commit ad1edabf95c6c331aac4f0caa7d31193e26bc176)
Diffstat (limited to 'source4/ntvfs/posix/vfs_posix.c')
-rw-r--r--source4/ntvfs/posix/vfs_posix.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source4/ntvfs/posix/vfs_posix.c b/source4/ntvfs/posix/vfs_posix.c
index 8aa028919c..383dbf7a16 100644
--- a/source4/ntvfs/posix/vfs_posix.c
+++ b/source4/ntvfs/posix/vfs_posix.c
@@ -94,6 +94,14 @@ static NTSTATUS pvfs_connect(struct ntvfs_module_context *ntvfs,
return NT_STATUS_INTERNAL_DB_CORRUPTION;
}
+ pvfs->odb_context = odb_init(pvfs,
+ pvfs->tcon->smb_conn->connection->server_id,
+ pvfs->tcon->service,
+ pvfs->tcon->smb_conn->connection->messaging_ctx);
+ if (pvfs->odb_context == NULL) {
+ return NT_STATUS_INTERNAL_DB_CORRUPTION;
+ }
+
/* allocate the fnum id -> ptr tree */
pvfs->idtree_fnum = idr_init(pvfs);
if (pvfs->idtree_fnum == NULL) {