2007-02-28 23:49:40 +03:00
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE refentry PUBLIC "-//Samba-Team//DTD DocBook V4.2-Based Variant V1.0//EN" "http://www.samba.org/samba/DTD/samba-doc">
2007-03-01 02:14:41 +03:00
<refentry id= "vfs_catia.8" >
2007-02-28 23:49:40 +03:00
<refmeta >
2007-03-01 02:14:41 +03:00
<refentrytitle > vfs_catia</refentrytitle>
2007-02-28 23:49:40 +03:00
<manvolnum > 8</manvolnum>
2008-04-07 00:26:45 +04:00
<refmiscinfo class= "source" > Samba</refmiscinfo>
<refmiscinfo class= "manual" > System Administration tools</refmiscinfo>
2016-08-03 11:04:14 +03:00
<refmiscinfo class= "version" > 4.6</refmiscinfo>
2007-02-28 23:49:40 +03:00
</refmeta>
<refnamediv >
2007-03-01 02:14:41 +03:00
<refname > vfs_catia</refname>
2007-02-28 23:49:40 +03:00
<refpurpose > translate illegal characters in Catia filenames</refpurpose>
</refnamediv>
<refsynopsisdiv >
<cmdsynopsis >
<command > vfs objects = catia</command>
</cmdsynopsis>
</refsynopsisdiv>
<refsect1 >
<title > DESCRIPTION</title>
2007-03-01 02:14:41 +03:00
<para > This VFS module is part of the
<citerefentry > <refentrytitle > samba</refentrytitle>
2007-02-28 23:49:40 +03:00
<manvolnum > 7</manvolnum> </citerefentry> suite.</para>
<para > The Catia CAD package commonly creates filenames that
use characters that are illegal in CIFS filenames. The
2013-02-28 09:12:36 +04:00
<command > vfs_catia</command> VFS module implements a character
2007-02-28 23:49:40 +03:00
mapping so that these files can be shared with CIFS clients.
</para>
<para > This module is stackable.</para>
2013-06-17 21:43:34 +04:00
<para > The parameter "catia:mappings" specifies the mapping on a
per-character basis, see below.
2013-02-28 09:12:36 +04:00
</para>
2013-06-17 21:43:34 +04:00
</refsect1>
2013-02-28 09:12:36 +04:00
2013-06-17 21:43:34 +04:00
<refsect1 >
<title > OPTIONS</title>
<variablelist >
<varlistentry >
<term > catia:mappings = SERVER_HEX_CHAR:CLIENT_HEX_CHAR
</term>
<listitem >
<para > SERVER_HEX_CHAR specifies a 0x prefixed hexedecimal
character code that, when included in a Samba server-side
filename, will be mapped to CLIENT_HEX_CHAR for the CIFS
client.</para>
<para > The same mapping occurs in the opposite direction.
Multiple character mappings are separated by a comma.</para>
</listitem>
</varlistentry>
</variablelist>
2007-02-28 23:49:40 +03:00
</refsect1>
2013-06-17 21:43:34 +04:00
2007-02-28 23:49:40 +03:00
<refsect1 >
<title > EXAMPLES</title>
2013-06-17 21:43:34 +04:00
<para > Map server-side quotation-marks (") to client-side diaeresis
(¨ ) on filenames in the [CAD] share:</para>
2013-02-28 09:12:36 +04:00
<programlisting >
<smbconfsection name= "[CAD]" />
<smbconfoption name= "path" > /data/cad</smbconfoption>
<smbconfoption name= "vfs objects" > catia</smbconfoption>
<smbconfoption name= "catia:mappings" > 0x22:0xa8</smbconfoption>
</programlisting>
2013-06-17 21:43:34 +04:00
<para > Perform comprehensive mapping of common Catia filename characters:</para>
2013-02-28 09:12:36 +04:00
<programlisting >
<smbconfsection name= "[CAD]" />
<smbconfoption name= "path" > /data/cad</smbconfoption>
<smbconfoption name= "vfs objects" > catia</smbconfoption>
2013-06-17 21:43:33 +04:00
<smbconfoption name= "catia:mappings" > 0x22:0xa8,0x2a:0xa4,0x2f:0xf8,0x3a:0xf7,0x3c:0xab,0x3e:0xbb,0x3f:0xbf,0x5c:0xff,0x7c:0xa6</smbconfoption>
2013-02-28 09:12:36 +04:00
</programlisting>
2013-06-17 21:43:34 +04:00
<para > Server-side filename to be translated (Note that the path delimiter "/" is not used here):
2013-03-01 03:36:08 +04:00
</para>
2013-06-17 21:43:33 +04:00
<para > a\a:a*a?a"a< a> a|a</para>
2013-03-01 03:36:08 +04:00
2013-06-17 21:43:34 +04:00
<para > Resulting filename, as seen by the client:</para>
2013-03-01 03:36:08 +04:00
2013-06-17 21:43:33 +04:00
<para > aÿ a÷ a¤ a¿ a¨ a« a» a¦ a
2013-03-01 03:36:08 +04:00
</para>
2013-06-17 21:43:34 +04:00
</refsect1>
2013-03-01 03:36:08 +04:00
2013-06-17 21:43:34 +04:00
<refsect1 >
<title > CAVEATS</title>
<para > Character mapping must work in BOTH directions (server ->
client and client -> server) to get unique and existing file names!
2013-02-28 09:12:36 +04:00
</para>
<para > A NOT working example:</para>
<programlisting >
<smbconfsection name= "[CAD]" />
<smbconfoption name= "path" > /data/cad</smbconfoption>
<smbconfoption name= "vfs objects" > catia</smbconfoption>
<smbconfoption name= "catia:mappings" > 0x3a:0x5f</smbconfoption>
</programlisting>
2013-06-17 21:43:34 +04:00
<para > Here the colon ":" is mapped to the underscore "_".</para>
<para > Assuming a server-side filename "a:should_work", which is
translated to "a_should_work" for the client.</para>
<para > BUT the reverse mapping from client "a_should_work" to server
will result in "a:should:work" - something like "file not found"
will be returned.
</para>
2013-02-28 09:12:36 +04:00
2007-02-28 23:49:40 +03:00
</refsect1>
<refsect1 >
<title > VERSION</title>
2013-06-17 21:43:34 +04:00
<para > This man page is correct for Samba versions from 3.5.0 to 4.0.6.
2007-02-28 23:49:40 +03:00
</para>
</refsect1>
<refsect1 >
<title > AUTHOR</title>
<para > The original Samba software and related utilities
were created by Andrew Tridgell. Samba is now developed
by the Samba Team as an Open Source project similar
to the way the Linux kernel is developed.</para>
2013-03-01 03:36:08 +04:00
<para > New version written by Guenter Kukkukk kukks@samba.org</para>
2007-02-28 23:49:40 +03:00
</refsect1>
</refentry>