]> git.karo-electronics.de Git - linux-beck.git/commitdiff
cifs: Expand max share name length to 256
authorScott Lovenberg <scott.lovenberg@gmail.com>
Fri, 9 Aug 2013 12:47:18 +0000 (08:47 -0400)
committerSteve French <smfrench@gmail.com>
Sun, 8 Sep 2013 19:34:17 +0000 (14:34 -0500)
The old max share name length limit was 80 due to Windows NET SHARE
command not allowing more than that.  However, share names can be much
longer.  This is a more reasonable maximum share name length.

Signed-off-by: Scott Lovenberg <scott.lovenberg@gmail.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <smfrench@gmail.com>
include/uapi/linux/cifs/cifs_mount.h

index 19063fef62196f1f44b40106d31143d87595e43a..5ac43f04f74af2423c8584adbf7d2c55d476e3b5 100644 (file)
@@ -20,6 +20,7 @@
 #define CIFS_MAX_DOMAINNAME_LEN 256 /* max fully qualified domain name */
 #define CIFS_MAX_USERNAME_LEN   256 /* reasonable max for current servers */
 #define CIFS_MAX_PASSWORD_LEN   512 /* Windows max seems to be 256 wide chars */
-#define CIFS_MAX_SHARE_LEN       80
+#define CIFS_MAX_SHARE_LEN      256 /* reasonable max share name length */
+
 
 #endif /* _CIFS_MOUNT_H */