[patch]

Shirish Pargaonkar <[email protected]>
Newsgroups gmane.linux.file-systems.cifs
Message-ID <[email protected]>
This patch disables mapchars mount option if the CIFS/SMB server
honours unix extension
since then rempaing of special characters such as : in strings such as
path name are
not necessary.

Regards,

Shirish

_______________________________________________
linux-cifs-client mailing list
[email protected]
https://lists.samba.org/mailman/listinfo/linux-cifs-client
mapchar.posix.patch (application/octet-stream, 484 B)
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c
index 01e280c..3c4cd7d 100644
--- a/fs/cifs/connect.c
+++ b/fs/cifs/connect.c
@@ -2393,8 +2393,11 @@ try_mount_again:
 		down(&pSesInfo->sesSem);
 
 		/* BB FIXME need to pass vol->secFlgs BB */
-		rc = cifs_setup_session(xid, pSesInfo,
-					cifs_sb->local_nls);
+		rc = cifs_setup_session(xid, pSesInfo, cifs_sb->local_nls);
+
+		if (pSesInfo->capabilities & CAP_UNIX)
+			volume_info->remap = 0;
+
 		up(&pSesInfo->sesSem);
 	}
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.