mirror of
https://github.com/samba-team/samba.git
synced 2025-02-26 21:57:41 +03:00
s3-mdssvc: add new option 'spotlight'
Per share option: it reflects whether a share is indexed by Tracker or not. The global switch that controls whether Spotlight is enabled or not, are the mdsvc RPC switches. Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
parent
63dd793cde
commit
25f56f5f40
45
docs-xml/smbdotconf/misc/spotlight.xml
Normal file
45
docs-xml/smbdotconf/misc/spotlight.xml
Normal file
@ -0,0 +1,45 @@
|
||||
<samba:parameter name="spotlight"
|
||||
context="S"
|
||||
type="boolean"
|
||||
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
|
||||
<description>
|
||||
<para>
|
||||
This parameter controls whether Samba allows Spotlight
|
||||
queries on a share. For controlling indexing of filesystems
|
||||
you also have to use Tracker's own configuration system.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
Spotlight has several prerequisites:
|
||||
</para>
|
||||
|
||||
<itemizedlist>
|
||||
<listitem><para>
|
||||
Samba must be configured and built with Spotlight support.
|
||||
</para></listitem>
|
||||
|
||||
<listitem><para>
|
||||
The <emphasis>mdssvc</emphasis> RPC service must be
|
||||
enabled, see below.
|
||||
</para></listitem>
|
||||
|
||||
<listitem><para> Tracker intergration must be setup and the
|
||||
share must be indexed by Tracker.</para></listitem>
|
||||
</itemizedlist>
|
||||
|
||||
<para>For a detailed set of instructions please see <ulink
|
||||
url="https://wiki.samba.org/index.php/Spotlight">https://wiki.samba.org/index.php/Spotlight</ulink>.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
To enable the Spotlight RPC service:
|
||||
</para>
|
||||
|
||||
<programlisting>
|
||||
<smbconfsection name="[Global]"/>
|
||||
<smbconfoption name="rpc_server:mdsvc">embedded</smbconfoption>
|
||||
</programlisting>
|
||||
|
||||
</description>
|
||||
<value type="default">no</value>
|
||||
</samba:parameter>
|
@ -807,6 +807,14 @@ struct parm_struct parm_table[] = {
|
||||
.special = NULL,
|
||||
.enum_list = NULL,
|
||||
},
|
||||
{
|
||||
.label = "spotlight",
|
||||
.type = P_BOOL,
|
||||
.p_class = P_LOCAL,
|
||||
.offset = LOCAL_VAR(spotlight),
|
||||
.special = NULL,
|
||||
.enum_list = NULL,
|
||||
},
|
||||
{
|
||||
.label = "write ok",
|
||||
.type = P_BOOLREV,
|
||||
|
@ -185,6 +185,7 @@ static struct loadparm_service sDefault =
|
||||
.access_based_share_enum = false,
|
||||
.bAvailable = true,
|
||||
.read_only = true,
|
||||
.spotlight = false,
|
||||
.guest_only = false,
|
||||
.administrative_share = false,
|
||||
.guest_ok = false,
|
||||
|
Loading…
x
Reference in New Issue
Block a user