All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] cifs: Move and expand MAX_SERVER_SIZE
@ 2013-07-25 18:34 scott.lovenberg
       [not found] ` <1374777285-25639-1-git-send-email-scott.lovenberg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 12+ messages in thread
From: scott.lovenberg @ 2013-07-25 18:34 UTC (permalink / raw)
  To: sfrench; +Cc: linux-cifs, gang.chen, samba-technical, jlayton

From: Scott Lovenberg <scott.lovenberg@gmail.com>

MAX_SERVER_SIZE has been moved to cifs_mount.h and renamed
CIFS_NI_MAXHOST for clarity.  It has been expanded to 1024 as the
previous value of 16 was very short.

Signed-off-by: Scott Lovenberg <scott.lovenberg@gmail.com>
---
 fs/cifs/cifsglob.h                   | 3 +--
 include/uapi/linux/cifs/cifs_mount.h | 1 +
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h
index b07b122..2227699 100644
--- a/fs/cifs/cifsglob.h
+++ b/fs/cifs/cifsglob.h
@@ -42,8 +42,7 @@
 #define MAX_SES_INFO 2
 #define MAX_TCON_INFO 4
 
-#define MAX_TREE_SIZE (2 + MAX_SERVER_SIZE + 1 + CIFS_MAX_SHARE_LEN + 1)
-#define MAX_SERVER_SIZE 15
+#define MAX_TREE_SIZE (2 + CIFS_NI_MAXHOST + 1 + CIFS_MAX_SHARE_LEN + 1)
 
 #define CIFS_MIN_RCV_POOL 4
 
diff --git a/include/uapi/linux/cifs/cifs_mount.h b/include/uapi/linux/cifs/cifs_mount.h
index f7e4aee..a58fc6e 100644
--- a/include/uapi/linux/cifs/cifs_mount.h
+++ b/include/uapi/linux/cifs/cifs_mount.h
@@ -21,5 +21,6 @@
 #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      256 /* reasonable max share name length */
+#define CIFS_NI_MAXHOST        1024 /* max host name length */
 
 #endif /* _CIFS_MOUNT_H */
-- 
1.8.1.4

^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2013-07-30  0:31 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-25 18:34 [PATCH 1/2] cifs: Move and expand MAX_SERVER_SIZE scott.lovenberg
     [not found] ` <1374777285-25639-1-git-send-email-scott.lovenberg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2013-07-25 18:34   ` [PATCH 2/2] cifs: Correct comment about domainname length scott.lovenberg-Re5JQEeQqe8AvxtiuMwx3w
     [not found]     ` <1374777285-25639-2-git-send-email-scott.lovenberg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2013-07-26  0:40       ` Chen Gang
     [not found]         ` <51F1C564.5070006-bOixZGp5f+dBDgjK7y7TUQ@public.gmane.org>
2013-07-26 18:12           ` Scott Lovenberg
     [not found]             ` <CAFB9KM2zF9m4Y4vcDRkZpMfvWP8NQWYKQTeJTiwgVVVu=4M6Cw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-07-29  0:27               ` Chen Gang
2013-07-29  0:36                 ` Richard Sharpe
     [not found]                   ` <CACyXjPxffbb8VQ55mCWTCP-GDivijXVkHNwtkVTwgAmi1XMyQQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-07-29 18:05                     ` Scott Lovenberg
2013-07-29 20:17                     ` Jeff Layton
     [not found]                       ` <20130729161709.19c52e0f-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org>
2013-07-29 21:10                         ` Scott Lovenberg
     [not found]                           ` <CAFB9KM3CxJcHdFPrGTW595hjNzvYnLgVA6F8J3EMdddz3n0ivw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-07-30  0:09                             ` Chen Gang
2013-07-30  0:31                               ` Chen Gang
2013-07-25 18:55   ` [PATCH 1/2] cifs: Move and expand MAX_SERVER_SIZE Jeff Layton

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.