]> arthur.barton.de Git - netatalk.git/commitdiff
Option for specifying path to CNID database is now a global opion named 'vol dbpath'
authorFrank Lahm <franklahm@googlemail.com>
Thu, 15 Mar 2012 10:02:21 +0000 (11:02 +0100)
committerFrank Lahm <franklahm@googlemail.com>
Thu, 15 Mar 2012 10:02:21 +0000 (11:02 +0100)
libatalk/util/netatalk_conf.c
man/man5/afp.conf.5.tmpl

index 3425c741bf4b46cec209f80674de187ad163821f..1e5c64dd56f605bba2343121a021d506c6d7de43 100644 (file)
@@ -610,8 +610,7 @@ static struct vol *creatvol(AFPObj *obj,
         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);
index 09e93f44c5ceec07b7d90a455bb03188fd32d94a..7add8ccd4c77eb7f2521eea0a962271d8067d917 100644 (file)
@@ -500,6 +500,13 @@ Try to set TCP send buffer using setsockpt()\&. Often OSes impose restrictions o
 .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
@@ -818,11 +825,6 @@ cnidscheme = \fIbackend\fR \fB(V)\fR
 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: