]> arthur.barton.de Git - netatalk.git/blob - etc/cnid_dbd/db_param.h
Merge master
[netatalk.git] / etc / cnid_dbd / db_param.h
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) /* KB, so 8 MB */
14 #define DEFAULT_MAXLOCKS           5000
15 #define DEFAULT_MAXLOCKOBJS        5000
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;              /* in KB */
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 extern struct db_param *db_param_read  (char *);
37
38 #endif /* CNID_DBD_DB_PARAM_H */
39