netatalk  4.4.0dev
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) /* KB, so 8 MB */
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
22struct db_param {
23 char *dir;
25 int cachesize; /* in KB */
30 char usock_file[MAXPATHLEN + 1];
34};
35
36struct db_param *db_param_read(char *);
37
38#endif /* CNID_DBD_DB_PARAM_H */
39
struct db_param * db_param_read(char *)
Definition db_param.c:105
Definition db_param.h:22
int idle_timeout
Definition db_param.h:32
char * dir
Definition db_param.h:23
int flush_frequency
Definition db_param.h:29
int maxlocks
Definition db_param.h:26
int max_vols
Definition db_param.h:33
int maxlockobjs
Definition db_param.h:27
int cachesize
Definition db_param.h:25
int fd_table_size
Definition db_param.h:31
int flush_interval
Definition db_param.h:28
int logfile_autoremove
Definition db_param.h:24
char usock_file[MAXPATHLEN+1]
Definition db_param.h:30