* [PATCH] Add warning that NFS syntax is deprecated and will be removed in cifs-utils-6.0.
@ 2012-10-17 16:29 scott.lovenberg-Re5JQEeQqe8AvxtiuMwx3w
[not found] ` <1350491389-8895-1-git-send-email-scott.lovenberg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
0 siblings, 1 reply; 10+ messages in thread
From: scott.lovenberg-Re5JQEeQqe8AvxtiuMwx3w @ 2012-10-17 16:29 UTC (permalink / raw)
To: linux-cifs-u79uwXL29TY76Z2rM5mHXA
Cc: jlayton-H+wXaHxf7aLQT0dZR+AlfA, Scott Lovenberg
From: Scott Lovenberg <scott.lovenberg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Signed-off-by: Scott Lovenberg <scott.lovenberg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
---
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, "/\\");
--
1.7.5.4
^ permalink raw reply related [flat|nested] 10+ messages in thread[parent not found: <1350491389-8895-1-git-send-email-scott.lovenberg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>]
* Re: [PATCH] Add warning that NFS syntax is deprecated and will be removed in cifs-utils-6.0. [not found] ` <1350491389-8895-1-git-send-email-scott.lovenberg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> @ 2012-10-17 20:21 ` Jeff Layton 2012-10-17 21:05 ` Jeff Layton 1 sibling, 0 replies; 10+ messages in thread From: Jeff Layton @ 2012-10-17 20:21 UTC (permalink / raw) To: scott.lovenberg-Re5JQEeQqe8AvxtiuMwx3w; +Cc: linux-cifs-u79uwXL29TY76Z2rM5mHXA On Wed, 17 Oct 2012 12:29:49 -0400 scott.lovenberg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote: > From: Scott Lovenberg <scott.lovenberg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > > Signed-off-by: Scott Lovenberg <scott.lovenberg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > --- > 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, "/\\"); Thanks, looks reasonable. I'll plan to pull it in for the next release unless there is objection... -- Jeff Layton <jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH] Add warning that NFS syntax is deprecated and will be removed in cifs-utils-6.0. [not found] ` <1350491389-8895-1-git-send-email-scott.lovenberg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 2012-10-17 20:21 ` Jeff Layton @ 2012-10-17 21:05 ` Jeff Layton [not found] ` <20121017170513.0e4075c4-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org> 1 sibling, 1 reply; 10+ messages in thread From: Jeff Layton @ 2012-10-17 21:05 UTC (permalink / raw) To: scott.lovenberg-Re5JQEeQqe8AvxtiuMwx3w; +Cc: linux-cifs-u79uwXL29TY76Z2rM5mHXA On Wed, 17 Oct 2012 12:29:49 -0400 scott.lovenberg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote: > From: Scott Lovenberg <scott.lovenberg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > > Signed-off-by: Scott Lovenberg <scott.lovenberg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > --- > 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, "/\\"); Steve suggested resending this patch and cc'ing samba and samba-technical. Also, add a bit more explanation about why we're making this change so people are clear about why it's coming. You should also prefix the subject with something like "mount.cifs: " to make it clear what this patch is intended for. I think that's reasonable -- could you do that? Thanks, -- Jeff Layton <jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> ^ permalink raw reply [flat|nested] 10+ messages in thread
[parent not found: <20121017170513.0e4075c4-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org>]
* Re: [PATCH] Add warning that NFS syntax is deprecated and will be removed in cifs-utils-6.0. [not found] ` <20121017170513.0e4075c4-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org> @ 2012-10-18 3:45 ` Scott Lovenberg [not found] ` <CAFB9KM0x4-Jj9Bvxd0RdzbKqTCS5ecYEmqYDOHmNjzbC8PqZPg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 0 siblings, 1 reply; 10+ messages in thread From: Scott Lovenberg @ 2012-10-18 3:45 UTC (permalink / raw) To: Jeff Layton, Steve French; +Cc: linux-cifs-u79uwXL29TY76Z2rM5mHXA On Wed, Oct 17, 2012 at 5:05 PM, Jeff Layton <jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> wrote: > Steve suggested resending this patch and cc'ing samba and > samba-technical. Also, add a bit more explanation about why we're > making this change so people are clear about why it's coming. > > You should also prefix the subject with something like "mount.cifs: " > to make it clear what this patch is intended for. > > I think that's reasonable -- could you do that? > > Thanks, > -- > Jeff Layton <jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> Not a problem. I'll take care of it tomorrow. -- Peace and Blessings, -Scott. ^ permalink raw reply [flat|nested] 10+ messages in thread
[parent not found: <CAFB9KM0x4-Jj9Bvxd0RdzbKqTCS5ecYEmqYDOHmNjzbC8PqZPg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: [PATCH] Add warning that NFS syntax is deprecated and will be removed in cifs-utils-6.0. [not found] ` <CAFB9KM0x4-Jj9Bvxd0RdzbKqTCS5ecYEmqYDOHmNjzbC8PqZPg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2012-10-18 19:20 ` Scott Lovenberg [not found] ` <50805666.1030705-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 0 siblings, 1 reply; 10+ messages in thread From: Scott Lovenberg @ 2012-10-18 19:20 UTC (permalink / raw) To: Jeff Layton, Steve French; +Cc: linux-cifs-u79uwXL29TY76Z2rM5mHXA On 10/17/2012 11:45 PM, Scott Lovenberg wrote: > On Wed, Oct 17, 2012 at 5:05 PM, Jeff Layton<jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> wrote: > >> Steve suggested resending this patch and cc'ing samba and >> samba-technical. Also, add a bit more explanation about why we're >> making this change so people are clear about why it's coming. >> >> You should also prefix the subject with something like "mount.cifs: " >> to make it clear what this patch is intended for. >> >> I think that's reasonable -- could you do that? >> >> Thanks, >> -- >> Jeff Layton<jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> > > Not a problem. I'll take care of it tomorrow. Took care of that an hour or two ago. We'll see if anyone complains about the deprecation. If we don't hear anything in a day or so, I guess we can take that as an implicit ACK? ^ permalink raw reply [flat|nested] 10+ messages in thread
[parent not found: <50805666.1030705-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>]
* Re: [PATCH] Add warning that NFS syntax is deprecated and will be removed in cifs-utils-6.0. [not found] ` <50805666.1030705-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> @ 2012-10-18 19:22 ` Jeff Layton 0 siblings, 0 replies; 10+ messages in thread From: Jeff Layton @ 2012-10-18 19:22 UTC (permalink / raw) To: Scott Lovenberg; +Cc: Steve French, linux-cifs-u79uwXL29TY76Z2rM5mHXA On Thu, 18 Oct 2012 15:20:06 -0400 Scott Lovenberg <scott.lovenberg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > On 10/17/2012 11:45 PM, Scott Lovenberg wrote: > > On Wed, Oct 17, 2012 at 5:05 PM, Jeff Layton<jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> wrote: > > > >> Steve suggested resending this patch and cc'ing samba and > >> samba-technical. Also, add a bit more explanation about why we're > >> making this change so people are clear about why it's coming. > >> > >> You should also prefix the subject with something like "mount.cifs: " > >> to make it clear what this patch is intended for. > >> > >> I think that's reasonable -- could you do that? > >> > >> Thanks, > >> -- > >> Jeff Layton<jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> > > > > Not a problem. I'll take care of it tomorrow. > Took care of that an hour or two ago. We'll see if anyone complains > about the deprecation. If we don't hear anything in a day or so, I > guess we can take that as an implicit ACK? I'd think so, yes... -- Jeff Layton <jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> ^ permalink raw reply [flat|nested] 10+ messages in thread
* CIFS: Deprecating NFS mounting syntax in mount.cifs
@ 2012-10-18 17:50 scott.lovenberg-Re5JQEeQqe8AvxtiuMwx3w
[not found] ` <1350582614-11930-1-git-send-email-scott.lovenberg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
0 siblings, 1 reply; 10+ messages in thread
From: scott.lovenberg-Re5JQEeQqe8AvxtiuMwx3w @ 2012-10-18 17:50 UTC (permalink / raw)
To: linux-cifs-u79uwXL29TY76Z2rM5mHXA
Cc: jlayton-H+wXaHxf7aLQT0dZR+AlfA, smfrench-Re5JQEeQqe8AvxtiuMwx3w,
samba-w/Ol4Ecudpl8XjKLYN78aQ,
samba-technical-w/Ol4Ecudpl8XjKLYN78aQ
The following patch adds a warning when using NFS mounting syntax (server:/share), instead of the usual UNC syntax (//server/share || \\server\share), that support for NFS style mounts will be removed in version 6.0 of the mount.cifs utility.
The reasoning for this is simple. Support for NFS syntax is undocumented and increases maintenance overhead. This came up recently on the cifs-utils list when discussing how to handle mounting a share NFS style using an IPv6 address. Since the ':' character is valid in a POSIX file path or share name it is an ambiguous delimiter. Consider the following valid server share : "dead:beef::1:iSCSIExportedByIQN:storage".
Instead of adding complicated code to the parser to support an undocumented feature, we're optin
g to remove the feature in the mount utility in version 6.0 if there is no objection.
^ permalink raw reply [flat|nested] 10+ messages in thread[parent not found: <1350582614-11930-1-git-send-email-scott.lovenberg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>]
* [PATCH] Add warning that NFS syntax is deprecated and will be removed in cifs-utils-6.0. [not found] ` <1350582614-11930-1-git-send-email-scott.lovenberg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> @ 2012-10-18 17:50 ` scott.lovenberg-Re5JQEeQqe8AvxtiuMwx3w [not found] ` <1350582614-11930-2-git-send-email-scott.lovenberg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 0 siblings, 1 reply; 10+ messages in thread From: scott.lovenberg-Re5JQEeQqe8AvxtiuMwx3w @ 2012-10-18 17:50 UTC (permalink / raw) To: linux-cifs-u79uwXL29TY76Z2rM5mHXA Cc: jlayton-H+wXaHxf7aLQT0dZR+AlfA, smfrench-Re5JQEeQqe8AvxtiuMwx3w, samba-w/Ol4Ecudpl8XjKLYN78aQ, samba-technical-w/Ol4Ecudpl8XjKLYN78aQ, Scott Lovenberg From: Scott Lovenberg <scott.lovenberg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> Signed-off-by: Scott Lovenberg <scott.lovenberg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> --- 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, "/\\"); -- 1.7.5.4 ^ permalink raw reply related [flat|nested] 10+ messages in thread
[parent not found: <1350582614-11930-2-git-send-email-scott.lovenberg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>]
* Re: [PATCH] Add warning that NFS syntax is deprecated and will be removed in cifs-utils-6.0. [not found] ` <1350582614-11930-2-git-send-email-scott.lovenberg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> @ 2012-10-18 17:57 ` Scott Lovenberg 0 siblings, 0 replies; 10+ messages in thread From: Scott Lovenberg @ 2012-10-18 17:57 UTC (permalink / raw) To: scott.lovenberg-Re5JQEeQqe8AvxtiuMwx3w Cc: linux-cifs-u79uwXL29TY76Z2rM5mHXA, jlayton-H+wXaHxf7aLQT0dZR+AlfA, smfrench-Re5JQEeQqe8AvxtiuMwx3w, samba-w/Ol4Ecudpl8XjKLYN78aQ, samba-technical-w/Ol4Ecudpl8XjKLYN78aQ On 10/18/2012 1:50 PM, scott.lovenberg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote: > From: Scott Lovenberg<scott.lovenberg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > > Signed-off-by: Scott Lovenberg<scott.lovenberg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > --- > 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, "/\\"); Sorry, git send-email just blew up in my face. It was supposed to send a first email that explained the patch. Of course it worked perfectly when I tested it to my own email address. I'll figure out why the first message is missing and repost. Sorry for the noise. ^ permalink raw reply [flat|nested] 10+ messages in thread
* CIFS: Deprecating NFS mounting syntax in mount.cifs
@ 2012-10-18 18:07 scott.lovenberg-Re5JQEeQqe8AvxtiuMwx3w
[not found] ` <1350583669-12118-1-git-send-email-scott.lovenberg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
0 siblings, 1 reply; 10+ messages in thread
From: scott.lovenberg-Re5JQEeQqe8AvxtiuMwx3w @ 2012-10-18 18:07 UTC (permalink / raw)
To: linux-cifs-u79uwXL29TY76Z2rM5mHXA, jlayton-H+wXaHxf7aLQT0dZR+AlfA,
smfrench-Re5JQEeQqe8AvxtiuMwx3w, samba-w/Ol4Ecudpl8XjKLYN78aQ,
samba-technical-w/Ol4Ecudpl8XjKLYN78aQ
This patch adds a warning when using NFS mounting syntax (server:/share), instead of the usual UNC syntax (//server/share || \\server\share), that support for NFS style mounts will be removed in version 6.0 of the mount.cifs utility.
The reasoning for this is simple. Support for NFS syntax is undocumented and increases maintenance overhead. This came up recently on the cifs-utils list when discussing how to handle mounting a share NFS style using an IPv6 address. Since the ':' character is valid in a POSIX file path or share name it is an ambiguous delimiter. Consider the following valid server share : "dead:beef::1:iSCSIExportedByIQN:storage".
Instead of adding complicated code to the parser to support an undocumented feature, we're optin
g to remove the feature in the mount utility in version 6.0 if there is no objection.
^ permalink raw reply [flat|nested] 10+ messages in thread[parent not found: <1350583669-12118-1-git-send-email-scott.lovenberg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>]
* [PATCH] Add warning that NFS syntax is deprecated and will be removed in cifs-utils-6.0. [not found] ` <1350583669-12118-1-git-send-email-scott.lovenberg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> @ 2012-10-18 18:07 ` scott.lovenberg-Re5JQEeQqe8AvxtiuMwx3w [not found] ` <1350583669-12118-2-git-send-email-scott.lovenberg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 0 siblings, 1 reply; 10+ messages in thread From: scott.lovenberg-Re5JQEeQqe8AvxtiuMwx3w @ 2012-10-18 18:07 UTC (permalink / raw) To: linux-cifs-u79uwXL29TY76Z2rM5mHXA, jlayton-H+wXaHxf7aLQT0dZR+AlfA, smfrench-Re5JQEeQqe8AvxtiuMwx3w, samba-w/Ol4Ecudpl8XjKLYN78aQ, samba-technical-w/Ol4Ecudpl8XjKLYN78aQ Cc: Scott Lovenberg From: Scott Lovenberg <scott.lovenberg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> Signed-off-by: Scott Lovenberg <scott.lovenberg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> --- 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, "/\\"); -- 1.7.5.4 ^ permalink raw reply related [flat|nested] 10+ messages in thread
[parent not found: <1350583669-12118-2-git-send-email-scott.lovenberg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>]
* Re: [PATCH] Add warning that NFS syntax is deprecated and will be removed in cifs-utils-6.0. [not found] ` <1350583669-12118-2-git-send-email-scott.lovenberg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> @ 2012-10-23 19:40 ` Jeff Layton 0 siblings, 0 replies; 10+ messages in thread From: Jeff Layton @ 2012-10-23 19:40 UTC (permalink / raw) To: scott.lovenberg-Re5JQEeQqe8AvxtiuMwx3w Cc: linux-cifs-u79uwXL29TY76Z2rM5mHXA, smfrench-Re5JQEeQqe8AvxtiuMwx3w, samba-w/Ol4Ecudpl8XjKLYN78aQ, samba-technical-w/Ol4Ecudpl8XjKLYN78aQ On Thu, 18 Oct 2012 14:07:49 -0400 scott.lovenberg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote: > From: Scott Lovenberg <scott.lovenberg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > > Signed-off-by: Scott Lovenberg <scott.lovenberg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > --- > 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, "/\\"); Merged (with addition of a newline to the end of warning message)... -- Jeff Layton <jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> ^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2012-10-23 19:40 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-17 16:29 [PATCH] Add warning that NFS syntax is deprecated and will be removed in cifs-utils-6.0 scott.lovenberg-Re5JQEeQqe8AvxtiuMwx3w
[not found] ` <1350491389-8895-1-git-send-email-scott.lovenberg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2012-10-17 20:21 ` Jeff Layton
2012-10-17 21:05 ` Jeff Layton
[not found] ` <20121017170513.0e4075c4-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org>
2012-10-18 3:45 ` Scott Lovenberg
[not found] ` <CAFB9KM0x4-Jj9Bvxd0RdzbKqTCS5ecYEmqYDOHmNjzbC8PqZPg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-10-18 19:20 ` Scott Lovenberg
[not found] ` <50805666.1030705-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2012-10-18 19:22 ` Jeff Layton
-- strict thread matches above, loose matches on Subject: below --
2012-10-18 17:50 CIFS: Deprecating NFS mounting syntax in mount.cifs scott.lovenberg-Re5JQEeQqe8AvxtiuMwx3w
[not found] ` <1350582614-11930-1-git-send-email-scott.lovenberg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2012-10-18 17:50 ` [PATCH] Add warning that NFS syntax is deprecated and will be removed in cifs-utils-6.0 scott.lovenberg-Re5JQEeQqe8AvxtiuMwx3w
[not found] ` <1350582614-11930-2-git-send-email-scott.lovenberg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2012-10-18 17:57 ` Scott Lovenberg
2012-10-18 18:07 CIFS: Deprecating NFS mounting syntax in mount.cifs scott.lovenberg-Re5JQEeQqe8AvxtiuMwx3w
[not found] ` <1350583669-12118-1-git-send-email-scott.lovenberg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2012-10-18 18:07 ` [PATCH] Add warning that NFS syntax is deprecated and will be removed in cifs-utils-6.0 scott.lovenberg-Re5JQEeQqe8AvxtiuMwx3w
[not found] ` <1350583669-12118-2-git-send-email-scott.lovenberg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2012-10-23 19:40 ` Jeff Layton
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.