From patchwork Thu Jul 25 17:35:21 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Scott Lovenberg X-Patchwork-Id: 2833532 Return-Path: X-Original-To: patchwork-cifs-client@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 932B89F4D4 for ; Thu, 25 Jul 2013 17:36:01 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AE23320374 for ; Thu, 25 Jul 2013 17:36:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id AEBF120354 for ; Thu, 25 Jul 2013 17:35:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756882Ab3GYRf6 (ORCPT ); Thu, 25 Jul 2013 13:35:58 -0400 Received: from mail-vc0-f170.google.com ([209.85.220.170]:33590 "EHLO mail-vc0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756751Ab3GYRf6 (ORCPT ); Thu, 25 Jul 2013 13:35:58 -0400 Received: by mail-vc0-f170.google.com with SMTP id kw10so298596vcb.1 for ; Thu, 25 Jul 2013 10:35:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=IoxnrRNGBkQKcd9BRXnrPtvXETeAhHiZrQ1t1k6051k=; b=jWPFy8gJmFXb/fy4pWjffeZu6zXWseZWt5ElV8NPRrSGRUOSqRdzvjtbV8CdxMBecH RNSdcLEyYrwpb/zFHi69seHVhmQxuNiDr9gJbDMGOrRNeRdKfcepxXmjgWCSZxtIrpR1 wLMvPWIAJdWCO+pPaeVVMhZJpsR7UW9l0Ee134TxgofANtZDcSWzMtQs7DFtrJWYBGyq k4l1IYHv0lrUeqXOluyT8lD9f63ZvwGnBSv22QnZ/CUtqGtpMBLt+robMQvG54Q2Bxed u+fnmSRY+2lB72a5R6xC3sm7N5+nFF7IGZta3zEQhKGXB4ZqSJCTTIBBVL6L0J4BP6xm GUEQ== X-Received: by 10.52.163.139 with SMTP id yi11mr15603943vdb.96.1374773757490; Thu, 25 Jul 2013 10:35:57 -0700 (PDT) Received: from nix.cleftstone.net ([64.9.42.64]) by mx.google.com with ESMTPSA id aw3sm18786784vdc.2.2013.07.25.10.35.55 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 25 Jul 2013 10:35:56 -0700 (PDT) From: scott.lovenberg@gmail.com To: sfrench@samba.org Cc: Scott Lovenberg , jlayton@redhat.com, linux-cifs@vger.kernel.org, gang.chen@asianux.com, samba-technical@lists.samba.org Subject: [PATCH 2/2] cifs: Expand max share name length to 256 Date: Thu, 25 Jul 2013 13:35:21 -0400 Message-Id: <1374773721-24394-2-git-send-email-scott.lovenberg@gmail.com> X-Mailer: git-send-email 1.8.1.4 In-Reply-To: <1374773721-24394-1-git-send-email-scott.lovenberg@gmail.com> References: <1374773721-24394-1-git-send-email-scott.lovenberg@gmail.com> Sender: linux-cifs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-cifs@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Scott Lovenberg 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 Reviewed-by: Jeff Layton --- include/uapi/linux/cifs/cifs_mount.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/uapi/linux/cifs/cifs_mount.h b/include/uapi/linux/cifs/cifs_mount.h index 1485781..f7e4aee 100644 --- a/include/uapi/linux/cifs/cifs_mount.h +++ b/include/uapi/linux/cifs/cifs_mount.h @@ -20,6 +20,6 @@ #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 */