EC_NULL( volume->v_maccodepage = strdup(obj->options.maccodepage) );
bstring dbpath;
- if ((val = getoption(obj->iniconfig, section, "dbpath", preset)) == NULL)
- val = _PATH_STATEDIR "CNID/";
+ EC_NULL_LOG( val = iniparser_getstring(obj->iniconfig, INISEC_GLOBAL, "vol dbpath", _PATH_STATEDIR "CNID/") );
EC_NULL_LOG( dbpath = bformat("%s/%s/", val, name) );
volume->v_dbpath = strdup(bdata(dbpath));
bdestroy(dbpath);
.RE
.SS "Miscellaneous Options"
.PP
+vol dbpath = \fIpath\fR \fB(G)\fR
+.RS 4
+Sets the database information to be stored in path\&. You have to specifiy a writable location, even if the volume is read only\&. The default is
+$localstatedir/netatalk/CNID/, where $localstatedir defaults to
+/var\&.
+.RE
+.PP
basedir regex = \fIregex\fR \fB(H)\fR
.RS 4
Regular expression which matches the parent directory of the user homes\&. In the simple case this is just a path ie
set the CNID backend to be used for the volume, default is [:DEFAULT_CNID_SCHEME:] available schemes: [:COMPILED_BACKENDS:]
.RE
.PP
-dbpath = \fIpath\fR \fB(V)\fR
-.RS 4
-Sets the database information to be stored in path\&. You have to specifiy a writable location, even if the volume is read only\&.
-.RE
-.PP
cnidserver = \fIhost[:port]\fR \fB(V)\fR
.RS 4
Query this servername or IP address (default:\fIlocalhost\fR) and port (default: