Skip to contentSkip to conversation

cifs: Expand max share name length to 256

PATCH Steve French 1 participant 1 message Aug 19, 2013 3 messages not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): 1376052439-32441-3-git-send-email-scott.lovenberg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org

#3 lore raw

This and following patch merged into cifs-2.6.git for-next (and for-3.12)

Quoted 28 lines · On Fri, Aug 9, 2013 at 7:47 AM, <scott.lovenberg-Re5JQEeQqe8AvxtiuMwx3w@public…

From: Scott Lovenberg <[email protected]>

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.

---
 include/uapi/linux/cifs/cifs_mount.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
include/uapi/linux/cifs/cifs_mount.h +2 -2
index 19063fe..5ac43f0 100644
@@ -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 */
--

1.8.1.4

Signature · 3 lines
Thanks,

Steve