From patchwork Thu Oct 18 18:07: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: 1612681 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 8F7CB3FE36 for ; Thu, 18 Oct 2012 18:08:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932727Ab2JRSIR (ORCPT ); Thu, 18 Oct 2012 14:08:17 -0400 Received: from mail-vc0-f174.google.com ([209.85.220.174]:55415 "EHLO mail-vc0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932725Ab2JRSIQ (ORCPT ); Thu, 18 Oct 2012 14:08:16 -0400 Received: by mail-vc0-f174.google.com with SMTP id fk26so5807076vcb.19 for ; Thu, 18 Oct 2012 11:08:16 -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=yb7PK1ZnEowKK5y/vtO1JAnNt4/JUjmgLDH9l9N5PbaZiB/FjrORKxUKr3m4lG1ElP sXuTN3EGF7kspPS/ZwdRglMhFHX1F4nP5ZT6eagijOyYHav+SUR9bDo5d7jWU0fpgFAB Vv5a8Geg2+7+7T54E49MuvmHFuwJaItYoY8zFC/Q5ccfQ44/B3aW7qK5YDgLIcBNnp89 GgfTBvPCOYiYLLtmRuAnqE8Wmlqw9ymBEy8y0hgB34zZE/wfgYgJ5MMa7lcGGKLIiK2D K1bNdah5OSOYkNovW6h86y5LGEbJTtM1X4xBnmli5TtjnjyhZ3IhUVmxmpVx+4QidV6k 0e9A== Received: by 10.220.107.146 with SMTP id b18mr6734510vcp.48.1350583695917; Thu, 18 Oct 2012 11:08:15 -0700 (PDT) Received: from localhost.localdomain ([64.9.42.184]) by mx.google.com with ESMTPS id u2sm5528426vdt.11.2012.10.18.11.08.14 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 18 Oct 2012 11:08:15 -0700 (PDT) From: scott.lovenberg@gmail.com To: linux-cifs@vger.kernel.org, jlayton@redhat.com, smfrench@gmail.com, samba@lists.samba.org, samba-technical@lists.samba.org Cc: 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 14:07:49 -0400 Message-Id: <1350583669-12118-2-git-send-email-scott.lovenberg@gmail.com> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <1350583669-12118-1-git-send-email-scott.lovenberg@gmail.com> References: <1350583669-12118-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, "/\\");