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 | 5b4d94e20fdb5888da1b71a7b6a30ebede6cb06a (patch) | |
tree | b4f9513c1c829ee874b53e7c4f45d9acadc079d7 /source3/include | |
parent | 5a8458c377b6901b67a039eafbd5727ed1207cf3 (diff) | |
download | samba-5b4d94e20fdb5888da1b71a7b6a30ebede6cb06a.tar.gz samba-5b4d94e20fdb5888da1b71a7b6a30ebede6cb06a.tar.bz2 samba-5b4d94e20fdb5888da1b71a7b6a30ebede6cb06a.zip |
(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.
(This used to be commit eca24bd24352c688cdf48c1ef14adb8ac353468f)
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/local.h | 11 | ||||
-rw-r--r-- | source3/include/proto.h | 4 |
2 files changed, 14 insertions, 1 deletions
diff --git a/source3/include/local.h b/source3/include/local.h index 6903e5854f..a31c5c35b4 100644 --- a/source3/include/local.h +++ b/source3/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/source3/include/proto.h b/source3/include/proto.h index 4f29b3ae20..c706cbd2c5 100644 --- a/source3/include/proto.h +++ b/source3/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, |