From patchwork Wed Oct 17 16:29:49 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Scott Lovenberg X-Patchwork-Id: 1606941 Return-Path: X-Original-To: patchwork-cifs-client@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 588F03FD4F for ; Wed, 17 Oct 2012 16:30:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757387Ab2JQQaB (ORCPT ); Wed, 17 Oct 2012 12:30:01 -0400 Received: from mail-qa0-f53.google.com ([209.85.216.53]:50650 "EHLO mail-qa0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754035Ab2JQQaA (ORCPT ); Wed, 17 Oct 2012 12:30:00 -0400 Received: by mail-qa0-f53.google.com with SMTP id s11so629937qaa.19 for ; Wed, 17 Oct 2012 09:30:00 -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; bh=035200783D40rWxOJm3JX278fBhJzDAIwU0MemQLIV8=; b=ouX7g5Imzvv7A3J1pcBtwfSLTjeL4MAwoPoSlFxVRPx8tgPnSWJuW+JuxIac0tx8Zg d6+PobjwpajXRKJ8Nt/VBEATFTdg38mDgslfMAqChGCWQ0cG7tW0b0Y2U4IMjEUs5MZ2 JU/mfb0l4D6iibVV8UvdOrKNnZb8Om03Nj4niiNIvr7CbffBLMYUjvWLL21U2EVSU2A0 X2revDZ5RxDDtKWti3QMeuh5tHA6/F+NewUniX6A5kDwO8IGVfJP8JfCIqwbg6EiFT0x QxvfbsjUd+RsYhqyM65MGaJm++ZzA9w+2wYK9bMDVAnEL2Vv46FFBLMF1w6Siu2TjtEI ioQA== Received: by 10.224.27.3 with SMTP id g3mr28605216qac.44.1350491399965; Wed, 17 Oct 2012 09:29:59 -0700 (PDT) Received: from localhost.localdomain ([64.9.42.184]) by mx.google.com with ESMTPS id o10sm21758041qaj.14.2012.10.17.09.29.59 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 17 Oct 2012 09:29:59 -0700 (PDT) From: scott.lovenberg@gmail.com To: linux-cifs@vger.kernel.org Cc: jlayton@redhat.com, Scott Lovenberg Subject: [PATCH] Add warning that NFS syntax is deprecated and will be removed in cifs-utils-6.0. Date: Wed, 17 Oct 2012 12:29:49 -0400 Message-Id: <1350491389-8895-1-git-send-email-scott.lovenberg@gmail.com> X-Mailer: git-send-email 1.7.5.4 Sender: linux-cifs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-cifs@vger.kernel.org From: Scott Lovenberg Signed-off-by: Scott Lovenberg --- mount.cifs.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/mount.cifs.c b/mount.cifs.c index 756fce2..061ce32 100644 --- a/mount.cifs.c +++ b/mount.cifs.c @@ -1335,6 +1335,7 @@ static int parse_unc(const char *unc_name, struct parsed_mount_info *parsed_info } /* Set up "host" and "share" pointers based on UNC format. */ + /* TODO: Remove support for NFS syntax as of cifs-utils-6.0. */ if (strncmp(unc_name, "//", 2) && strncmp(unc_name, "\\\\", 2)) { /* * check for nfs syntax (server:/share/prepath) @@ -1351,6 +1352,9 @@ static int parse_unc(const char *unc_name, struct parsed_mount_info *parsed_info share++; if (*share == '/') ++share; + fprintf(stderr, "WARNING: using NFS syntax for mounting CIFS " + "shares is deprecated and will be removed in cifs-utils" + "-6.0. Please migrate to UNC syntax."); } else { host = unc_name + 2; hostlen = strcspn(host, "/\\");