summaryrefslogtreecommitdiff
path: root/source3/smbd/server.c
diff options
context:
space:
mode:
authorJames Peach <jpeach@samba.org>2006-03-22 23:49:09 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:15:42 -0500
commit40d0707827ee154bcb03013abe6f72f1026a70c9 (patch)
treeb465d32e79fc65a682aa55dd96e4a665109bfc15 /source3/smbd/server.c
parente836508704dd964e22e8bfc0f8e9ec520a2c94f2 (diff)
downloadsamba-40d0707827ee154bcb03013abe6f72f1026a70c9.tar.gz
samba-40d0707827ee154bcb03013abe6f72f1026a70c9.tar.bz2
samba-40d0707827ee154bcb03013abe6f72f1026a70c9.zip
r14668: Set the FILE_STATUS_OFFLINE bit by observing the events a DMAPI-based
HSM is interested in. Tested on both IRIX and SLES9. (This used to be commit 514a767c57f8194547e5b708ad2573ab9a0719c6)
Diffstat (limited to 'source3/smbd/server.c')
-rw-r--r--source3/smbd/server.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/smbd/server.c b/source3/smbd/server.c
index 46ab191530..5da73046a1 100644
--- a/source3/smbd/server.c
+++ b/source3/smbd/server.c
@@ -930,6 +930,12 @@ void build_options(BOOL screen);
if ( is_daemon && !interactive )
start_background_queue();
+ /* Always attempt to initialize DMAPI. We will only use it later if
+ * lp_dmapi_support is set on the share, but we need a single global
+ * session to work with.
+ */
+ dmapi_init_session();
+
if (!open_sockets_smbd(is_daemon, interactive, ports))
exit(1);