Skip to contentSkip to conversation

Add warning that NFS syntax is deprecated and will be removed in cifs-utils-6.0.

PATCH In review [email protected] 2 participants 6 messages Oct 17, 2012 – Oct 18, 2012 4 messages not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add warning that NFS syntax is deprecated and will be removed in cifs-utils-6.0.

From: Scott Lovenberg <[email protected]>

---
 mount.cifs.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
mount.cifs.c +4 -0
index 756fce2..061ce32 100644
@@ -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, "/\\");
Signature · 1 line
1.7.5.4
#2 lore raw
In reply to a message not in the archive
Quoted 20 lines · On Wed, 17 Oct 2012 12:29:49 -0400 scott.lovenberg-Re5JQEeQqe8AvxtiuMwx3w@publi…

From: Scott Lovenberg <[email protected]>

---
 mount.cifs.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
mount.cifs.c +1 -0
index 756fce2..061ce32 100644
@@ -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)

mount.cifs.c static int parse_unc(const char *unc_name, struct parsed_mount_info *parsed_info · line 1360

Quoted 9 lines
mount.cifs.c +3 -0
@@ -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...

Signature · 1 line
Jeff Layton <[email protected]>
#3 lore raw
In reply to a message not in the archive
Quoted 20 lines · On Wed, 17 Oct 2012 12:29:49 -0400 scott.lovenberg-Re5JQEeQqe8AvxtiuMwx3w@publi…

From: Scott Lovenberg <[email protected]>

---
 mount.cifs.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
mount.cifs.c +1 -0
index 756fce2..061ce32 100644
@@ -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)

mount.cifs.c static int parse_unc(const char *unc_name, struct parsed_mount_info *parsed_info · line 1360

Quoted 9 lines
mount.cifs.c +3 -0
@@ -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,

Signature · 1 line
Jeff Layton <[email protected]>
#5 lore raw
In reply to a message not in the archive
Quoted 4 lines · Jeff Layton

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.

Quoted 8 lines

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 <[email protected]>

Not a problem. I'll take care of it tomorrow.

Signature · 2 lines
Peace and Blessings,
-Scott.
#7 lore raw
In reply to a message not in the archive
Quoted 9 lines · Scott Lovenberg
Quoted 7 lines · Jeff Layton

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.

Quoted 7 lines
Quoted 5 lines

I think that's reasonable -- could you do that?

Thanks,
--
Jeff Layton<[email protected]>

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?

#9 lore raw
In reply to a message not in the archive
Quoted 12 lines · On Thu, 18 Oct 2012 15:20:06 -0400 Scott Lovenberg…
Quoted 11 lines · Scott Lovenberg
Quoted 9 lines · Jeff Layton

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?

Quoted 8 lines
Quoted 5 lines
Quoted 3 lines

Thanks,
--
Jeff Layton<[email protected]>

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...

Signature · 1 line
Jeff Layton <[email protected]>