diff options
| author | Paulo Alcantara <pc@manguebit.org> | 2025-07-31 20:46:41 -0300 |
|---|---|---|
| committer | Steve French <stfrench@microsoft.com> | 2025-08-01 00:16:19 -0500 |
| commit | a967e758f8e9d8ce5ef096743393df5e6e51644b (patch) | |
| tree | 5ad5e09f804f12ce9c2cc55d74db7a1fce1a6d90 /fs/smb/client/reparse.c | |
| parent | db68e4c80d995b67a92460711038b9223166bda7 (diff) | |
| download | linux-next-a967e758f8e9d8ce5ef096743393df5e6e51644b.tar.gz linux-next-a967e758f8e9d8ce5ef096743393df5e6e51644b.zip | |
smb: client: set symlink type as native for POSIX mounts
SMB3.1.1 POSIX mounts require symlinks to be created natively with
IO_REPARSE_TAG_SYMLINK reparse point.
Cc: linux-cifs@vger.kernel.org
Cc: Ralph Boehme <slow@samba.org>
Cc: David Howells <dhowells@redhat.com>
Cc: <stable@vger.kernel.org>
Reported-by: Matthew Richardson <m.richardson@ed.ac.uk>
Closes: https://marc.info/?i=1124e7cd-6a46-40a6-9f44-b7664a66654b@ed.ac.uk
Signed-off-by: Paulo Alcantara (Red Hat) <pc@manguebit.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/smb/client/reparse.c')
| -rw-r--r-- | fs/smb/client/reparse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/smb/client/reparse.c b/fs/smb/client/reparse.c index 33c1d970747c..7869cec58f52 100644 --- a/fs/smb/client/reparse.c +++ b/fs/smb/client/reparse.c @@ -38,7 +38,7 @@ int create_reparse_symlink(const unsigned int xid, struct inode *inode, struct dentry *dentry, struct cifs_tcon *tcon, const char *full_path, const char *symname) { - switch (get_cifs_symlink_type(CIFS_SB(inode->i_sb))) { + switch (cifs_symlink_type(CIFS_SB(inode->i_sb))) { case CIFS_SYMLINK_TYPE_NATIVE: return create_native_symlink(xid, inode, dentry, tcon, full_path, symname); case CIFS_SYMLINK_TYPE_NFS: |
