|
|
5eee7b |
From e1e36b41e779d241cc1ff0e2f6f90b630b1e3d14 Mon Sep 17 00:00:00 2001
|
|
|
5eee7b |
From: =?UTF-8?q?Aur=C3=A9lien=20Aptel?= <aaptel@suse.com>
|
|
|
5eee7b |
Date: Tue, 10 Jul 2018 17:50:43 +0200
|
|
|
5eee7b |
Subject: [PATCH 05/36] mount.cifs.rst: document missing options, correct wrong
|
|
|
5eee7b |
ones
|
|
|
5eee7b |
|
|
|
5eee7b |
Signed-off-by: Aurelien Aptel <aaptel@suse.com>
|
|
|
5eee7b |
(cherry picked from commit 7325a01abc529d68756bae90cf23233392626939)
|
|
|
5eee7b |
Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
|
|
|
5eee7b |
---
|
|
|
5eee7b |
mount.cifs.rst | 111 ++++++++++++++++++++++++++++++++++++++++-----------------
|
|
|
5eee7b |
1 file changed, 79 insertions(+), 32 deletions(-)
|
|
|
5eee7b |
|
|
|
5eee7b |
diff --git a/mount.cifs.rst b/mount.cifs.rst
|
|
|
5eee7b |
index 56c1bf9..13b3a1e 100644
|
|
|
5eee7b |
--- a/mount.cifs.rst
|
|
|
5eee7b |
+++ b/mount.cifs.rst
|
|
|
5eee7b |
@@ -123,6 +123,11 @@ forcegid
|
|
|
5eee7b |
of the gid= option. See the section on `FILE AND DIRECTORY OWNERSHIP
|
|
|
5eee7b |
AND PERMISSIONS`_ below for more information.
|
|
|
5eee7b |
|
|
|
5eee7b |
+idsfromsid
|
|
|
5eee7b |
+ Extract uid/gid from special SID instead of mapping it. See the
|
|
|
5eee7b |
+ section on `FILE AND DIRECTORY OWNERSHIP AND PERMISSIONS`_ below for
|
|
|
5eee7b |
+ more information.
|
|
|
5eee7b |
+
|
|
|
5eee7b |
port=arg
|
|
|
5eee7b |
sets the port number on which the client will attempt to contact the
|
|
|
5eee7b |
CIFS server. If this value is specified, look for an existing
|
|
|
5eee7b |
@@ -133,8 +138,9 @@ port=arg
|
|
|
5eee7b |
try to connect on port 445 first and then port 139 if that
|
|
|
5eee7b |
fails. Return an error if both fail.
|
|
|
5eee7b |
|
|
|
5eee7b |
-servernetbiosname=arg
|
|
|
5eee7b |
- Specify the server netbios name (RFC1001 name) to use when attempting
|
|
|
5eee7b |
+
|
|
|
5eee7b |
+netbiosname=arg
|
|
|
5eee7b |
+ Specify the client netbios name (RFC1001 name) to use when attempting
|
|
|
5eee7b |
to setup a session to the server. Although rarely needed for mounting
|
|
|
5eee7b |
to newer servers, this option is needed for mounting to some older
|
|
|
5eee7b |
servers (such as OS/2 or Windows 98 and Windows ME) since when
|
|
|
5eee7b |
@@ -143,7 +149,8 @@ servernetbiosname=arg
|
|
|
5eee7b |
characters long and is usually uppercased.
|
|
|
5eee7b |
|
|
|
5eee7b |
servern=arg
|
|
|
5eee7b |
- Synonym for ``servernetbiosname``
|
|
|
5eee7b |
+ Similarl to ``netbiosname`` except it specifies the netbios name of
|
|
|
5eee7b |
+ the server instead of the client.
|
|
|
5eee7b |
|
|
|
5eee7b |
netbiosname=arg
|
|
|
5eee7b |
When mounting to servers via port 139, specifies the RFC1001 source
|
|
|
5eee7b |
@@ -166,6 +173,10 @@ ip=arg|addr=arg
|
|
|
5eee7b |
domain=arg|dom=arg|workgroup=arg
|
|
|
5eee7b |
sets the domain (workgroup) of the user.
|
|
|
5eee7b |
|
|
|
5eee7b |
+domainauto
|
|
|
5eee7b |
+ When using NTLMv2 authentification and not providing a domain via
|
|
|
5eee7b |
+ ``domain``, guess the domain from the server NTLM challenge.
|
|
|
5eee7b |
+
|
|
|
5eee7b |
guest
|
|
|
5eee7b |
don't prompt for a password.
|
|
|
5eee7b |
|
|
|
5eee7b |
@@ -237,6 +248,9 @@ cache=arg
|
|
|
5eee7b |
The default in kernels prior to 3.7 was ``loose``. As of kernel 3.7 the
|
|
|
5eee7b |
default is ``strict``.
|
|
|
5eee7b |
|
|
|
5eee7b |
+nostrictsync
|
|
|
5eee7b |
+ Do not flush to the server on fsync().
|
|
|
5eee7b |
+
|
|
|
5eee7b |
handlecache
|
|
|
5eee7b |
(default) In SMB2 and above, the client often has to open the root
|
|
|
5eee7b |
of the share (empty path) in various places during mount, path
|
|
|
5eee7b |
@@ -247,32 +261,6 @@ handlecache
|
|
|
5eee7b |
nohandlecache
|
|
|
5eee7b |
Disable caching of the share root directory handle.
|
|
|
5eee7b |
|
|
|
5eee7b |
-directio
|
|
|
5eee7b |
- Do not do inode data caching on files opened on this mount. This
|
|
|
5eee7b |
- precludes mmaping files on this mount. In some cases with fast
|
|
|
5eee7b |
- networks and little or no caching benefits on the client (e.g. when
|
|
|
5eee7b |
- the application is doing large sequential reads bigger than page size
|
|
|
5eee7b |
- without rereading the same data) this can provide better performance
|
|
|
5eee7b |
- than the default behavior which caches reads (readahead) and writes
|
|
|
5eee7b |
- (writebehind) through the local Linux client pagecache if oplock
|
|
|
5eee7b |
- (caching token) is granted and held. Note that direct allows write
|
|
|
5eee7b |
- operations larger than page size to be sent to the server. On some
|
|
|
5eee7b |
- kernels this requires the cifs.ko module to be built with the
|
|
|
5eee7b |
- ``CIFS_EXPERIMENTAL`` configure option.
|
|
|
5eee7b |
-
|
|
|
5eee7b |
- This option is will be deprecated in 3.7. Users should use
|
|
|
5eee7b |
- ``cache=none`` instead on more recent kernels.
|
|
|
5eee7b |
-
|
|
|
5eee7b |
-strictcache
|
|
|
5eee7b |
- Use for switching on strict cache mode. In this mode the client reads
|
|
|
5eee7b |
- from the cache all the time it has *Oplock Level II* , otherwise -
|
|
|
5eee7b |
- read from the server. As for write - the client stores a data in the
|
|
|
5eee7b |
- cache in *Exclusive Oplock* case, otherwise - write directly to the
|
|
|
5eee7b |
- server.
|
|
|
5eee7b |
-
|
|
|
5eee7b |
- This option is will be deprecated in 3.7. Users should use
|
|
|
5eee7b |
- ``cache=strict`` instead on more recent kernels.
|
|
|
5eee7b |
-
|
|
|
5eee7b |
rwpidforward
|
|
|
5eee7b |
Forward pid of a process who opened a file to any read or write
|
|
|
5eee7b |
operation on that file. This prevent applications like wine(1) from
|
|
|
5eee7b |
@@ -283,7 +271,7 @@ mapchars
|
|
|
5eee7b |
including the colon, question mark, pipe, asterik, greater than and
|
|
|
5eee7b |
less than characters) to the remap range (above 0xF000), which also
|
|
|
5eee7b |
allows the CIFS client to recognize files created with such characters
|
|
|
5eee7b |
- by Windows's POSIX emulation. This can also be useful when mounting to
|
|
|
5eee7b |
+ by Windows's Services for Mac. This can also be useful when mounting to
|
|
|
5eee7b |
most versions of Samba (which also forbids creating and opening files
|
|
|
5eee7b |
whose names contain any of these seven characters). This has no effect
|
|
|
5eee7b |
if the server does not support Unicode on the wire. Please note that
|
|
|
5eee7b |
@@ -293,6 +281,10 @@ mapchars
|
|
|
5eee7b |
nomapchars
|
|
|
5eee7b |
(default) Do not translate any of these seven characters.
|
|
|
5eee7b |
|
|
|
5eee7b |
+mapposix
|
|
|
5eee7b |
+ Translate reserved characters similarly to ``mapchars`` but use the
|
|
|
5eee7b |
+ mapping from Microsoft "Services For Unix".
|
|
|
5eee7b |
+
|
|
|
5eee7b |
intr
|
|
|
5eee7b |
currently unimplemented.
|
|
|
5eee7b |
|
|
|
5eee7b |
@@ -370,12 +362,42 @@ seal
|
|
|
5eee7b |
Request encryption at the SMB layer. Encryption is only supported in
|
|
|
5eee7b |
SMBv3 and above. The encryption algorithm used is AES-128-CCM.
|
|
|
5eee7b |
|
|
|
5eee7b |
+rdma
|
|
|
5eee7b |
+ Connect directly to the server using SMB Direct via a RDMA adapter.
|
|
|
5eee7b |
+
|
|
|
5eee7b |
+resilienthandles
|
|
|
5eee7b |
+ Enable resilient handles. If the server supports it, keep opened
|
|
|
5eee7b |
+ files across reconenctions. Requires SMB2.1.
|
|
|
5eee7b |
+
|
|
|
5eee7b |
+noresilienthandles
|
|
|
5eee7b |
+ (default) Disable resilient handles.
|
|
|
5eee7b |
+
|
|
|
5eee7b |
+persistenthandles
|
|
|
5eee7b |
+ Enable persistent handles. If the server supports it, keep opened
|
|
|
5eee7b |
+ files across reconnections. Persistent handles are also valid across
|
|
|
5eee7b |
+ servers in a cluser and have stronger guarantees than resilient
|
|
|
5eee7b |
+ handles. Requires SMB3 or above.
|
|
|
5eee7b |
+
|
|
|
5eee7b |
+nopersistenthandles
|
|
|
5eee7b |
+ (default) Disable persistent handles.
|
|
|
5eee7b |
+
|
|
|
5eee7b |
+snapshot=time
|
|
|
5eee7b |
+ Mount a specific snapshot of the remote share. ``time`` must be a
|
|
|
5eee7b |
+ positive integer identifying the snapshot requested.
|
|
|
5eee7b |
+
|
|
|
5eee7b |
nobrl
|
|
|
5eee7b |
Do not send byte range lock requests to the server. This is necessary
|
|
|
5eee7b |
for certain applications that break with cifs style mandatory byte
|
|
|
5eee7b |
range locks (and most cifs servers do not yet support requesting
|
|
|
5eee7b |
advisory byte range locks).
|
|
|
5eee7b |
|
|
|
5eee7b |
+forcemandatorylock
|
|
|
5eee7b |
+ Do not use POSIX locks even when available via unix
|
|
|
5eee7b |
+ extensions. Always use cifs style mandatory locks.
|
|
|
5eee7b |
+
|
|
|
5eee7b |
+locallease
|
|
|
5eee7b |
+ Check cache leases locally instead of querying the server.
|
|
|
5eee7b |
+
|
|
|
5eee7b |
sfu
|
|
|
5eee7b |
When the CIFS Unix Extensions are not negotiated, attempt to create
|
|
|
5eee7b |
device files and fifos in a format compatible with Services for Unix
|
|
|
5eee7b |
@@ -431,8 +453,12 @@ noserverino
|
|
|
5eee7b |
|
|
|
5eee7b |
See section `INODE NUMBERS`_ for more information.
|
|
|
5eee7b |
|
|
|
5eee7b |
-nounix
|
|
|
5eee7b |
- Disable the CIFS Unix Extensions for this mount. This can be useful in
|
|
|
5eee7b |
+unix|linux
|
|
|
5eee7b |
+ (default) Enable Unix Extensions for this mount. Requires CIFS
|
|
|
5eee7b |
+ (vers=1.0) or SMB3.1.1 (vers=3.1.1) and a server supporting them.
|
|
|
5eee7b |
+
|
|
|
5eee7b |
+nounix|nolinux
|
|
|
5eee7b |
+ Disable the Unix Extensions for this mount. This can be useful in
|
|
|
5eee7b |
order to turn off multiple settings at once. This includes POSIX acls,
|
|
|
5eee7b |
POSIX locks, POSIX paths, symlink support and retrieving
|
|
|
5eee7b |
uids/gids/mode from the server. This can also be useful to work around
|
|
|
5eee7b |
@@ -444,6 +470,23 @@ nouser_xattr
|
|
|
5eee7b |
Do not allow getfattr/setfattr to get/set xattrs, even if server would
|
|
|
5eee7b |
support it otherwise. The default is for xattr support to be enabled.
|
|
|
5eee7b |
|
|
|
5eee7b |
+nodfs
|
|
|
5eee7b |
+ Do not follow Distributed FileSystem referals. IO on a file not
|
|
|
5eee7b |
+ stored on the server will fail instead of connecting to the target
|
|
|
5eee7b |
+ server transparently.
|
|
|
5eee7b |
+
|
|
|
5eee7b |
+noautotune
|
|
|
5eee7b |
+ Use fixed size for kernel recv/send socket buffers.
|
|
|
5eee7b |
+
|
|
|
5eee7b |
+nosharesock
|
|
|
5eee7b |
+ Do not try to reuse sockets if the system is already connected to
|
|
|
5eee7b |
+ the server via an existing mount point. This will make the client
|
|
|
5eee7b |
+ always make a new connection to the server no matter what he is
|
|
|
5eee7b |
+ already connected to.
|
|
|
5eee7b |
+
|
|
|
5eee7b |
+noblocksend
|
|
|
5eee7b |
+ Send data on the socket using non blocking operations (MSG_DONTWAIT flag).
|
|
|
5eee7b |
+
|
|
|
5eee7b |
rsize=bytes
|
|
|
5eee7b |
Maximum amount of data that the kernel will request in a read request
|
|
|
5eee7b |
in bytes. Prior to kernel 3.2.0, the default was 16k, and the maximum
|
|
|
5eee7b |
@@ -472,6 +515,10 @@ wsize=bytes
|
|
|
5eee7b |
this value isn't specified or it's greater or equal than the existing
|
|
|
5eee7b |
one.
|
|
|
5eee7b |
|
|
|
5eee7b |
+max_credits=n
|
|
|
5eee7b |
+ Maximum credits the SMB2 client can have. Default is 32000. Must be
|
|
|
5eee7b |
+ set to a number between 20 and 60000.
|
|
|
5eee7b |
+
|
|
|
5eee7b |
fsc
|
|
|
5eee7b |
Enable local disk caching using FS-Cache for CIFS. This option could
|
|
|
5eee7b |
be useful to improve performance on a slow link, heavily loaded server
|
|
|
5eee7b |
--
|
|
|
5eee7b |
1.8.3.1
|
|
|
5eee7b |
|