diff options
Diffstat (limited to 'source4/ntvfs')
-rw-r--r-- | source4/ntvfs/config.mk | 1 | ||||
-rw-r--r-- | source4/ntvfs/ntvfs_base.c | 13 |
2 files changed, 14 insertions, 0 deletions
diff --git a/source4/ntvfs/config.mk b/source4/ntvfs/config.mk index 95f0886d06..a600a9a9a0 100644 --- a/source4/ntvfs/config.mk +++ b/source4/ntvfs/config.mk @@ -77,6 +77,7 @@ ADD_OBJ_FILES = \ PUBLIC_HEADERS = ntvfs.h MAJOR_VERSION = 0 MINOR_VERSION = 0 +INIT_FUNCTION = ntvfs_init DESCRIPTION = Virtual File System with NTFS semantics RELEASE_VERSION = 1 INIT_OBJ_FILES = \ diff --git a/source4/ntvfs/ntvfs_base.c b/source4/ntvfs/ntvfs_base.c index b8aeed419c..9cb8293cbc 100644 --- a/source4/ntvfs/ntvfs_base.c +++ b/source4/ntvfs/ntvfs_base.c @@ -158,3 +158,16 @@ NTSTATUS ntvfs_init_connection(struct smbsrv_request *req, enum ntvfs_type type) return NT_STATUS_OK; } + +NTSTATUS ntvfs_init(void) +{ + init_module_fn static_init[] = STATIC_NTVFS_MODULES; + init_module_fn *shared_init = load_samba_modules(NULL, "ntvfs"); + + run_init_functions(static_init); + run_init_functions(shared_init); + + talloc_free(shared_init); + + return NT_STATUS_OK; +} |