From patchwork Thu Oct 18 17:50:14 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Scott Lovenberg X-Patchwork-Id: 1612611 Return-Path: X-Original-To: patchwork-cifs-client@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 6AD78DFB34 for ; Thu, 18 Oct 2012 17:50:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932593Ab2JRRub (ORCPT ); Thu, 18 Oct 2012 13:50:31 -0400 Received: from mail-vb0-f46.google.com ([209.85.212.46]:35889 "EHLO mail-vb0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932443Ab2JRRua (ORCPT ); Thu, 18 Oct 2012 13:50:30 -0400 Received: by mail-vb0-f46.google.com with SMTP id ff1so9148446vbb.19 for ; Thu, 18 Oct 2012 10:50:30 -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=035200783D40rWxOJm3JX278fBhJzDAIwU0MemQLIV8=; b=aDPPs5j8skXkK9Ebma2zKC6VywNecjpTyr/Ep4cAlbI1bxdIXp2549NCHOQPIMV2qU Omz8dvABiy8L108OONDJEEo68/mRV9wVikzlyCYf8heQBz3Zzcb9De80PvqB1vfonagp 4vl7VCQh+x/u8GisxxOXm3tJLZ/AN0apJDIpleh7+A3EcV0yYyd4SaC2LBko8cAECLZj vZZbg5N/zsvNrbXvkl8v01gJfGwjy7zB2j6IMLsgrVhYlO09v+exR894/AJ9FqP+2kZk 9p2G7Vh9HCENVH6FVNwhKVmLNsAlSpm+WG1Z6QCwGZmnH59Iq1h3JA1kXjag8JwaYDyu WXZQ== Received: by 10.220.220.203 with SMTP id hz11mr6688128vcb.50.1350582630097; Thu, 18 Oct 2012 10:50:30 -0700 (PDT) Received: from localhost.localdomain ([64.9.42.184]) by mx.google.com with ESMTPS id y15sm4877342vdt.9.2012.10.18.10.50.28 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 18 Oct 2012 10:50:29 -0700 (PDT) From: scott.lovenberg@gmail.com To: linux-cifs@vger.kernel.org Cc: jlayton@redhat.com, smfrench@gmail.com, samba@lists.samba.org, samba-technical@lists.samba.org, Scott Lovenberg Subject: [PATCH] Add warning that NFS syntax is deprecated and will be removed in cifs-utils-6.0. Date: Thu, 18 Oct 2012 13:50:14 -0400 Message-Id: <1350582614-11930-2-git-send-email-scott.lovenberg@gmail.com> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <1350582614-11930-1-git-send-email-scott.lovenberg@gmail.com> References: <1350582614-11930-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 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, "/\\");