]> www.infradead.org Git - users/hch/misc.git/commit
cifs: Add support for creating NFS-style symlinks
authorPali Rohár <pali@kernel.org>
Fri, 13 Sep 2024 09:42:59 +0000 (11:42 +0200)
committerSteve French <stfrench@microsoft.com>
Fri, 31 Jan 2025 18:51:44 +0000 (12:51 -0600)
commit071b8a67a8b2e611e837dfa342a883183a19c190
treeffc5f333eb391692e5bce161e13e04d4e8bd0823
parent45a99d5d117300eb84eceaa312bb3c3262f8c85b
cifs: Add support for creating NFS-style symlinks

CIFS client is currently able to parse NFS-style symlinks, but is not able
to create them. This functionality is useful when the mounted SMB share is
used also by Windows NFS server (on Windows Server 2012 or new). It allows
interop of symlinks between SMB share mounted by Linux CIFS client and same
export from Windows NFS server mounted by some NFS client.

New symlinks would be created in NFS-style only in case the mount option
-o reparse=nfs is specified, which is not by default. So default CIFS
mounts are not affected by this change.

Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/reparse.c