diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-10-22 01:19:07 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:02:24 -0500 |
commit | 1cd1b172d52a1fb336cd001ac0ca2fbf7e26a9a3 (patch) | |
tree | 83c4a7af22683e7d2cd0c3bad9655173ecf89c43 /source4/ntvfs/posix | |
parent | 1ec644619d9607758cf090ea904eb2d84500481c (diff) | |
download | samba-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')
-rw-r--r-- | source4/ntvfs/posix/config.mk | 1 | ||||
-rw-r--r-- | source4/ntvfs/posix/vfs_posix.c | 8 | ||||
-rw-r--r-- | source4/ntvfs/posix/vfs_posix.h | 1 |
3 files changed, 10 insertions, 0 deletions
diff --git a/source4/ntvfs/posix/config.mk b/source4/ntvfs/posix/config.mk index b6ba073a99..0d6f295097 100644 --- a/source4/ntvfs/posix/config.mk +++ b/source4/ntvfs/posix/config.mk @@ -22,6 +22,7 @@ ADD_OBJ_FILES = \ ntvfs/posix/pvfs_shortname.o \ ntvfs/posix/pvfs_lock.o \ ntvfs/posix/pvfs_wait.o \ + ntvfs/common/opendb.o \ ntvfs/common/brlock.o # End MODULE ntvfs_posix ################################################ 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) { diff --git a/source4/ntvfs/posix/vfs_posix.h b/source4/ntvfs/posix/vfs_posix.h index a0aacf3786..5b6685b753 100644 --- a/source4/ntvfs/posix/vfs_posix.h +++ b/source4/ntvfs/posix/vfs_posix.h @@ -37,6 +37,7 @@ struct pvfs_state { struct pvfs_mangle_context *mangle_ctx; struct brl_context *brl_context; + struct odb_context *odb_context; /* an id tree mapping open search ID to a pvfs_search_state structure */ void *idtree_search; |