X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=etc%2Fcnid_dbd%2Fdb_param.h;h=0d6e9b9eb7b2b28d0599886d3c71703defc3e569;hb=85d268c10175d1e8050188a3a4797b40519a285e;hp=2690673f684e715b338b6efd7abd95d7a125b735;hpb=347b337b27ec993fa438749c407c48f8b7a7c3b2;p=netatalk.git diff --git a/etc/cnid_dbd/db_param.h b/etc/cnid_dbd/db_param.h index 2690673f..0d6e9b9e 100644 --- a/etc/cnid_dbd/db_param.h +++ b/etc/cnid_dbd/db_param.h @@ -1,7 +1,6 @@ /* - * $Id: db_param.h,v 1.3 2009-04-21 08:55:44 franklahm Exp $ - * * Copyright (C) Joerg Lenneis 2003 + * Copyright (C) Frank Lahm 2010 * All Rights Reserved. See COPYING. */ @@ -9,17 +8,23 @@ #define CNID_DBD_DB_PARAM_H 1 #include -#include -enum identity { - METAD, - 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]; @@ -28,8 +33,7 @@ struct db_param { int max_vols; }; -extern struct db_param * db_param_read __P((char *, enum identity)); - +extern struct db_param *db_param_read (char *); #endif /* CNID_DBD_DB_PARAM_H */