From patchwork Tue Jul 1 17:05:29 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?R8ODwrxudGVyIEt1a2t1a2s=?= X-Patchwork-Id: 4460881 Return-Path: X-Original-To: patchwork-cifs-client@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id B0C4CBEEAA for ; Tue, 1 Jul 2014 17:05:35 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1D7FA2037A for ; Tue, 1 Jul 2014 17:05:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1769720379 for ; Tue, 1 Jul 2014 17:05:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758115AbaGARFc (ORCPT ); Tue, 1 Jul 2014 13:05:32 -0400 Received: from mout.kundenserver.de ([212.227.126.130]:64976 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757720AbaGARFc (ORCPT ); Tue, 1 Jul 2014 13:05:32 -0400 Received: from linux4771.addlz.kukkukk.com (91-64-206-36-dynip.superkabel.de [91.64.206.36]) by mrelayeu.kundenserver.de (node=mreue004) with ESMTP (Nemesis) id 0M1CM0-1WmPS621qy-00tCoW; Tue, 01 Jul 2014 19:05:30 +0200 Message-ID: <53B2EA59.8090404@kukkukk.com> Date: Tue, 01 Jul 2014 19:05:29 +0200 From: =?ISO-8859-15?Q?G=FCnter_Kukkukk?= Organization: =?ISO-8859-15?Q?Entwicklungsb=FCro_f=FCr_Informationste?= =?ISO-8859-15?Q?chnologien?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: Jeff Layton CC: linux-cifs@vger.kernel.org Subject: [PATCH] on 2nd try mount.cifs must also uppercase "orig_dev" - recent kernels now ignore "unc=..." mount option X-Provags-ID: V02:K0:uTb702b45LTPsG3oX91vjmAhlIUYxiKmTSdXKd5jlFD +Y66OB9oczKSxqwqt043cbnsSjdu2tSb+Krh8JqRWvameT3DzL qX2lDZFGGuURJxCyRQUJDe99cXg9DusLEkp5DBXGg+HMwNBENL 7lxyTj/+fopF22cL4HWE5EgjXcw9Vv6Y7nKb8h4IIsT2akKBLv OUy41nd9OEe1pDaHAC4evEQ0tSIGrr/1ngwE8H9JgFJf/Q64wi /y0cmEviaaOrb7BuWSkBhR1tMLSQaN71kDkj6qWivwbkXsrqQM hEONwctvzKIuPi7o9Y12nzvO0d0M/pTH6LMe6qxBE4i1sULGH3 z0tENs08an86s/0AUco62ehEliBsHaZlaO/sCE0O/ 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.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, T_TVD_MIME_EPI, 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 userland mount helper mount.cifs. Also uppercase the now used (kernel) "orig_dev" parameter, to get the mount retry working again. Cheers, Günter From 5b6633b93b4df19b6c2863b8c9cf11d622132b60 Mon Sep 17 00:00:00 2001 From: Guenter Kukkukk Date: Tue, 1 Jul 2014 17:43:55 +0200 Subject: [PATCH] on 2nd try mount.cifs must also uppercase "orig_dev" - recent kernels now ignore "unc=..." mount option mount.cifs.c, when getting errno=ENXIO, retries the mount with uppercased hostname, sharename and prefixpath in the "unc=..." mount option, which is ignored now in the kernel. Used e.g. during OS/2 mounts, which fail now. Also uppercase the now used "orig_dev" parameter. Signed-off-by: Guenter Kukkukk --- mount.cifs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mount.cifs.c b/mount.cifs.c index 497665d..3535096 100644 --- a/mount.cifs.c +++ b/mount.cifs.c @@ -2097,7 +2097,8 @@ mount_retry: if (!already_uppercased && uppercase_string(parsed_info->host) && uppercase_string(parsed_info->share) && - uppercase_string(parsed_info->prefix)) { + uppercase_string(parsed_info->prefix) && + uppercase_string(orig_dev)) { fprintf(stderr, "Retrying with upper case share name\n"); already_uppercased = 1; -- 1.8.4.5