diff options
author | Jeremy Allison <jra@samba.org> | 1998-09-30 01:49:24 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 1998-09-30 01:49:24 +0000 |
commit | eca24bd24352c688cdf48c1ef14adb8ac353468f (patch) | |
tree | 227fe292ac09752d517de6f4a4b5aef74425d048 /source/include | |
parent | 6a261517a09b005f502a37941431308fa8bf2c5c (diff) | |
download | samba-eca24bd24352c688cdf48c1ef14adb8ac353468f.tar.gz |
(Finally) implemented "max open files" as a global smb.conf parameter.
Sets up the files array correctly - limited by the smb.conf parameter
and by the max fd's per process as found by getrlimit().
Jeremy.
Diffstat (limited to 'source/include')
-rw-r--r-- | source/include/local.h | 11 | ||||
-rw-r--r-- | source/include/proto.h | 4 |
2 files changed, 14 insertions, 1 deletions
diff --git a/source/include/local.h b/source/include/local.h index 6903e5854f6..a31c5c35b4e 100644 --- a/source/include/local.h +++ b/source/include/local.h @@ -44,6 +44,17 @@ #define SHMEM_SIZE (1024*1024) #endif +/* + * Default number of maximum open files per smbd. This is + * also limited by the maximum available file descriptors + * per process and can also be set in smb.conf as "max open files" + * in the [global] section. + */ + +#ifndef MAX_OPEN_FILES +#define MAX_OPEN_FILES 4096 +#endif + /* the max number of simultanous connections to the server by all clients */ #define MAXSTATUS 100000 diff --git a/source/include/proto.h b/source/include/proto.h index 4f29b3ae20c..c706cbd2c59 100644 --- a/source/include/proto.h +++ b/source/include/proto.h @@ -958,12 +958,12 @@ BOOL lp_passwd_chat_debug(void); BOOL lp_ole_locking_compat(void); BOOL lp_nt_smb_support(void); BOOL lp_stat_cache(void); -BOOL lp_kernel_oplocks(void); int lp_os_level(void); int lp_max_ttl(void); int lp_max_wins_ttl(void); int lp_min_wins_ttl(void); int lp_max_log_size(void); +int lp_max_open_files(void); int lp_maxxmit(void); int lp_maxmux(void); int lp_passwordlevel(void); @@ -1086,6 +1086,7 @@ int lp_major_announce_version(void); int lp_minor_announce_version(void); void lp_set_name_resolve_order(char *new_order); void lp_set_kernel_oplocks(BOOL val); +BOOL lp_kernel_oplocks(void); /*The following definitions come from param/params.c */ @@ -1733,6 +1734,7 @@ BOOL api_netlog_rpc(pipes_struct *p, prs_struct *data); /*The following definitions come from rpc_server/srv_pipe_hnd.c */ +void set_pipe_handle_offset(int max_open_files); void reset_chain_p(void); void init_rpc_pipe_hnd(void); pipes_struct *open_rpc_pipe_p(char *pipe_name, |