/*
- * $Id: db_param.h,v 1.5 2009-10-13 22:55:37 didg 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>
-enum identity {
- METAD,
- CNID_DBD
-};
+#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 {
char *dir;
int logfile_autoremove;
- int cachesize;
+ int cachesize; /* in KB */
+ int maxlocks;
+ int maxlockobjs;
int flush_interval;
int flush_frequency;
char usock_file[MAXPATHLEN + 1];
int max_vols;
};
-extern struct db_param * db_param_read (char *, enum identity);
-
+extern struct db_param *db_param_read (char *);
#endif /* CNID_DBD_DB_PARAM_H */