<emphasis>no</emphasis>) <type>(G)/(V)</type></term>
<listitem>
- <para>Whether to enable Spotlight searches. Enable this global option
- and then also add "spotlight = yes" to any volume you want to be able
- to search with Spotlight. Note: once the global option is enabled, any
- volume that is not enabled won't be searchable at all.</para>
+ <para>Whether to enable Spotlight searches. Note: once the global
+ option is enabled, any volume that is not enabled won't be
+ searchable at all.</para>
</listitem>
</varlistentry>
users are advised to install Tracker from OpenCSW as this is at least
version 0.15 and thus supports SPARQL</para>
- <para>To enable Spotlight put this in your afp.conf:</para>
+ <para>You can enable Spotlight and indexing either globally or on a per
+ volume basis using the <option>spotlight</option>.</para>
- <screen>[Global]
-...
-spotlight = yes
-...</screen>
-
- <para>This will enable Spotlight functionality. For Solaris with Tracker
- from OpenCSW also add:<screen>dbus daemon = /opt/csw/bin/dbus-daemon</screen></para>
-
- <sect3>
- <title>Tracker SPARQL</title>
+ <para>For Solaris with Tracker from OpenCSW also add:
+ <screen>dbus daemon = /opt/csw/bin/dbus-daemon</screen></para>
- <para>Next you must enbale Spotlight indexing on a per volume
- basis:</para>
-
- <screen>[foo]
-path = /bar
-spotlight = yes
-...</screen>
-
- <para>Only volumes with a setting of spotlight = yes will be
- searchable with Spotlight.</para>
-
- <warning>
- <para>All other volumes won't be searchable at all</para>
- </warning>
- </sect3>
+ <warning>
+ <para>Once Spotlight is enable for a single volume, all other volumes
+ won't be searchable at all.</para>
+ </warning>
<sect3>
<title>Tracker RDF</title>
#define OPTION_ACL2MODE (1 << 10)
#define OPTION_SHARE_RESERV (1 << 11) /* whether to use Solaris fcntl F_SHARE locks */
#define OPTION_DBUS_AFPSTATS (1 << 12) /* whether to run dbus thread for afpstats */
-#define OPTION_SPOTLIGHT (1 << 13) /* whether to enable Spotlight support */
+#define OPTION_SPOTLIGHT (1 << 13) /* whether to initialize Spotlight support */
+#define OPTION_SPOTLIGHT_VOL (1 << 14) /* whether spotlight shall be enabled by default for volumes */
#define PASSWD_NONE 0
#define PASSWD_SET (1 << 0)
volume->v_flags |= AFPVOL_NOV2TOEACONV;
if (getoption_bool(obj->iniconfig, section, "follow symlinks", preset, 0))
volume->v_flags |= AFPVOL_FOLLOWSYM;
- if (getoption_bool(obj->iniconfig, section, "spotlight", preset, 0))
+ if (getoption_bool(obj->iniconfig, section, "spotlight", preset, obj->options.flags & OPTION_SPOTLIGHT_VOL)) {
volume->v_flags |= AFPVOL_SPOTLIGHT;
+ obj->options.flags |= OPTION_SPOTLIGHT;
+ }
if (getoption_bool(obj->iniconfig, section, "preexec close", preset, 0))
volume->v_preexec_close = 1;
if (iniparser_getboolean(config, INISEC_GLOBAL, "afp read locks", 0))
options->flags |= OPTION_AFP_READ_LOCK;
if (iniparser_getboolean(config, INISEC_GLOBAL, "spotlight", 0))
- options->flags |= OPTION_SPOTLIGHT;
+ options->flags |= OPTION_SPOTLIGHT_VOL;
if (!iniparser_getboolean(config, INISEC_GLOBAL, "save password", 1))
options->passwdbits |= PASSWD_NOSAVE;
if (iniparser_getboolean(config, INISEC_GLOBAL, "set password", 0))