netatalk 4.5.0
Free and Open Source Apple Filing Protocol (AFP) Server
Loading...
Searching...
No Matches
db_param.h
Go to the documentation of this file.
1/*
2 * Copyright (C) Joerg Lenneis 2003
3 * Copyright (C) Frank Lahm 2010
4 * All Rights Reserved. See COPYING.
5 */
6
7#ifndef CNID_DBD_DB_PARAM_H
8#define CNID_DBD_DB_PARAM_H 1
9
10#include <sys/param.h>
11
12#define DEFAULT_LOGFILE_AUTOREMOVE 1
13#define DEFAULT_CACHESIZE (8 * 1024)
14#define DEFAULT_MAXLOCKS 20000
15#define DEFAULT_MAXLOCKOBJS 20000
16#define DEFAULT_FLUSH_FREQUENCY 1000
17#define DEFAULT_FLUSH_INTERVAL 1800
18#define DEFAULT_USOCK_FILE "usock"
19#define DEFAULT_FD_TABLE_SIZE 512
20#define DEFAULT_IDLE_TIMEOUT (10 * 60)
21
22 struct db_param {
23 char *dir;
24 int logfile_autoremove;
25 int cachesize;
26 int maxlocks;
27 int maxlockobjs;
28 int flush_interval;
29 int flush_frequency;
30 char usock_file[MAXPATHLEN + 1];
31 int fd_table_size;
32 int idle_timeout;
33 int max_vols;
34};
35
36 struct db_param *db_param_read(char *);
37
38#endif /* CNID_DBD_DB_PARAM_H */
39
db_param_read
struct db_param * db_param_read(char *)
Definition db_param.c:105
db_param
Definition db_param.h:22
db_param::idle_timeout
int idle_timeout
Definition db_param.h:32
db_param::dir
char * dir
Definition db_param.h:23
db_param::flush_frequency
int flush_frequency
Definition db_param.h:29
db_param::maxlocks
int maxlocks
Definition db_param.h:26
db_param::max_vols
int max_vols
Definition db_param.h:33
db_param::maxlockobjs
int maxlockobjs
Definition db_param.h:27
db_param::cachesize
int cachesize
Definition db_param.h:25
db_param::fd_table_size
int fd_table_size
Definition db_param.h:31
db_param::flush_interval
int flush_interval
Definition db_param.h:28
db_param::logfile_autoremove
int logfile_autoremove
Definition db_param.h:24
db_param::usock_file
char usock_file[MAXPATHLEN+1]
Definition db_param.h:30