From f6b6e963f65c39a0b34b5d23919c0c50e3e81168 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Sat, 3 Mar 2012 05:43:31 +0100 Subject: s3:smbd: keep 'num_connections' and 'connections' directly under smbd_server_connection The plan is to have connection_struct as some kind of low level abstraction for a smb1/smb2 tree connects, that can be used by SMB_VFS modules. metze --- source3/smbd/globals.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'source3/smbd/globals.h') diff --git a/source3/smbd/globals.h b/source3/smbd/globals.h index b927e16053..a47879fb0e 100644 --- a/source3/smbd/globals.h +++ b/source3/smbd/globals.h @@ -455,6 +455,9 @@ struct smbd_server_connection { size_t num_users; struct user_struct *users; + size_t num_connections; + struct connection_struct *connections; + struct files_struct *files; struct bitmap *file_bmap; int real_max_open_files; @@ -463,9 +466,6 @@ struct smbd_server_connection { unsigned long file_gen_counter; int first_file; - /* number of open connections (tcons) */ - int num_tcons_open; - struct pending_message_list *deferred_open_queue; @@ -541,7 +541,6 @@ struct smbd_server_connection { uint16_t next_vuid; } sessions; struct { - connection_struct *Connections; /* number of open connections */ struct bitmap *bmap; } tcons; -- cgit