Debian Codegraph @

docs-xml/smbdotconf/filename/manglednames.xml

raw
1 <samba:parameter name="mangled names"
2 type="enum"
3 enumlist="enum_mangled_names"
4 context="S"
5 parm="1"
6 xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
7 <description>
8 <para>This controls whether non-DOS names under UNIX
9 should be mapped to DOS-compatible names (&quot;mangled&quot;) and made visible,
10 or whether non-DOS names should simply be ignored.</para>
11
12 <para>See the section on <link linkend="NAMEMANGLINGSECT">name mangling</link> for
13 details on how to control the mangling process.</para>
14
15 <para>Possible option settings are</para>
16
17 <itemizedlist>
18 <listitem><para><emphasis>yes</emphasis> -
19 enables name mangling for all not DOS 8.3 conforming
20 names.</para></listitem>
21
22 <listitem><para><emphasis>no</emphasis> - disables any
23 name mangling.</para></listitem>
24
25 <listitem><para><emphasis>illegal (default)</emphasis> - does
26 mangling for names with illegal NTFS characters. This
27 is the most sensible setting for modern clients that
28 don't use the shortname anymore.</para></listitem>
29 </itemizedlist>
30
31 <para>If mangling is used then the mangling method is as follows:</para>
32
33 <itemizedlist>
34 <listitem>
35 <para>The first (up to) five alphanumeric characters
36 before the rightmost dot of the filename are preserved, forced
37 to upper case, and appear as the first (up to) five characters
38 of the mangled name.</para>
39 </listitem>
40
41 <listitem>
42 <para>A tilde &quot;~&quot; is appended to the first part of the mangled
43 name, followed by a two-character unique sequence, based on the
44 original root name (i.e., the original filename minus its final
45 extension). The final extension is included in the hash calculation
46 only if it contains any upper case characters or is longer than three
47 characters.</para>
48
49 <para>Note that the character to use may be specified using
50 the <smbconfoption name="mangling char"/>
51 option, if you don't like '~'.</para>
52 </listitem>
53
54 <listitem>
55 <para>Files whose UNIX name begins with a dot will be
56 presented as DOS hidden files. The mangled name will be created as
57 for other filenames, but with the leading dot removed and &quot;___&quot; as
58 its extension regardless of actual original extension (that's three
59 underscores).</para>
60 </listitem>
61 </itemizedlist>
62
63 <para>The two-digit hash value consists of upper case alphanumeric characters.</para>
64
65 <para>This algorithm can cause name collisions only if files
66 in a directory share the same first five alphanumeric characters.
67 The probability of such a clash is 1/1300.</para>
68
69 <para>The name mangling (if enabled) allows a file to be
70 copied between UNIX directories from Windows/DOS while retaining
71 the long UNIX filename. UNIX files can be renamed to a new extension
72 from Windows/DOS and will retain the same basename. Mangled names
73 do not change between sessions.</para>
74 </description>
75 <value type="default">illegal</value>
76 <value type="example">no</value>
77 </samba:parameter>