Add mfsymlinks support for SMB2.1/SMB3. Part 1 create symlink
authorSteve French <smfrench@gmail.com>
Mon, 15 Sep 2014 09:49:28 +0000 (04:49 -0500)
committerSteve French <smfrench@gmail.com>
Thu, 16 Oct 2014 20:20:20 +0000 (15:20 -0500)
commit5ab97578cbb3bf9a28dec4534cb86fbc35e600bb
tree1eaf7d9abbf28446519f3a4196fa4835da9286ec
parentdb8b631d4bc4eaa9f7e13a6b0a287306cac0cb72
Add mfsymlinks support for SMB2.1/SMB3. Part 1 create symlink

Adds support on SMB2.1 and SMB3 mounts for emulation of symlinks
via the "Minshall/French" symlink format already used for cifs
mounts when mfsymlinks mount option is used (and also used by Apple).
http://wiki.samba.org/index.php/UNIX_Extensions#Minshall.2BFrench_symlinks
This first patch adds support to create them.  The next patch will
add support for recognizing them and reading them.  Although CIFS/SMB3
have other types of symlinks, in the many use cases they aren't
practical (e.g. either require cifs only mounts with unix extensions
to Samba, or require the user to be Administrator to Windows for SMB3).
This also helps enable running additional xfstests over SMB3 (since some
xfstests directly or indirectly require symlink support).

Signed-off-by: Steve French <smfrench@gmail.com>
CC: Stefan Metzmacher <metze@samba.org>
fs/cifs/link.c
fs/cifs/smb2ops.c
fs/cifs/smb2proto.h