/*
- * $Id: db_param.h,v 1.2 2005-04-28 20:49:47 bfernhomberg Exp $
- *
* Copyright (C) Joerg Lenneis 2003
+ * Copyright (C) Frank Lahm 2010
* All Rights Reserved. See COPYING.
*/
#define CNID_DBD_DB_PARAM_H 1
#include <sys/param.h>
-#include <sys/cdefs.h>
+#define DEFAULT_LOGFILE_AUTOREMOVE 1
+#define DEFAULT_CACHESIZE (8 * 1024) /* KB, so 8 MB */
+#define DEFAULT_MAXLOCKS 20000
+#define DEFAULT_MAXLOCKOBJS 20000
+#define DEFAULT_FLUSH_FREQUENCY 1000
+#define DEFAULT_FLUSH_INTERVAL 1800
+#define DEFAULT_USOCK_FILE "usock"
+#define DEFAULT_FD_TABLE_SIZE 512
+#define DEFAULT_IDLE_TIMEOUT (10 * 60)
struct db_param {
- int check;
+ char *dir;
int logfile_autoremove;
- int cachesize;
- int nosync;
- int flush_frequency;
+ int cachesize; /* in KB */
+ int maxlocks;
+ int maxlockobjs;
int flush_interval;
+ int flush_frequency;
char usock_file[MAXPATHLEN + 1];
int fd_table_size;
int idle_timeout;
+ int max_vols;
};
-extern struct db_param * db_param_read __P((char *));
-
+extern struct db_param *db_param_read (char *);
#endif /* CNID_DBD_DB_PARAM_H */